Disable Comments – Remove Comments & Stop Spam [Multi-Site Support]

Allows administrators to globally disable comments on their site. Comments can be disabled according to post type. Multisite friendly.

v2.7.0WPDeveloperUpdated Added 1m+ installs94% rating
53
Score
15
Errors
46
Warnings
+0
Change

Category Scores

Security21
Repo100
Performance100
Maintainability82

Audit Overview

Open findings

61

15 errors, 46 warnings

Main area

Maintainability

39 grouped findings

Last scanned

4s runtime

Audit stack

Plugin Check 2.0.0

Model 2026.06-mvp-static-v2

Most repeated findings are in Maintainability, led by Non Prefixed Variable Found.

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

61 findings

Maintainability

39

6 issue groups

Security

22

5 issue groups

WARNINGMaintainabilityNon Prefixed Variable FoundGlobal variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$allowed_types".20
Category
Maintainability
Occurrences
20
Severity
warning

Sample message

Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$allowed_types".

WARNINGSecurityInterpolated Not PreparedUse placeholders and $wpdb->prepare(); found interpolated variable $placeholders at "DELETE FROM $wpdb->comments WHERE comment_type NOT IN ($placeholders)"7
Category
Security
Occurrences
7
Severity
warning

Sample message

Use placeholders and $wpdb->prepare(); found interpolated variable $placeholders at "DELETE FROM $wpdb->comments WHERE comment_type NOT IN ($placeholders)"

ERRORSecurityNot PreparedUse placeholders and $wpdb->prepare(); found $query7
Category
Security
Occurrences
7
Severity
error

Sample message

Use placeholders and $wpdb->prepare(); found $query

ERRORMaintainabilitymissing direct file access protectionPHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;7
Category
Maintainability
Occurrences
7
Severity
error

Sample message

PHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;

WARNINGMaintainabilityNon Prefixed Constant FoundGlobal constants defined by a theme/plugin should start with the theme/plugin prefix. Found: "DC_ASSETS_URI".6
Category
Maintainability
Occurrences
6
Severity
warning

Sample message

Global constants defined by a theme/plugin should start with the theme/plugin prefix. Found: "DC_ASSETS_URI".

WARNINGSecurityRecommendedProcessing form data without nonce verification.4
Category
Security
Occurrences
4
Severity
warning

Sample message

Processing form data without nonce verification.

WARNINGSecurityUnfinished PrepareReplacement variables found, but no valid placeholders found in the query.3
Category
Security
Occurrences
3
Severity
warning

Sample message

Replacement variables found, but no valid placeholders found in the query.

WARNINGMaintainabilityNon Prefixed Class FoundClasses declared by a theme/plugin should start with the theme/plugin prefix. Found: "DisableComments_Plugin_Tracker".3
Category
Maintainability
Occurrences
3
Severity
warning

Sample message

Classes declared by a theme/plugin should start with the theme/plugin prefix. Found: "DisableComments_Plugin_Tracker".

WARNINGMaintainabilityNon Prefixed Hookname FoundHook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "disable_comments_known_comment_types".2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "disable_comments_known_comment_types".

ERRORSecurityOutput Not EscapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$names_escaped'.1
Category
Security
Occurrences
1
Severity
error

Sample message

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$names_escaped'.

Show 1 more issue group
WARNINGMaintainabilitymismatched plugin name1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

Plugin name "Disable Comments - Remove Comments & Stop Spam [Multi-Site Support]" is different from the name declared in plugin header "Disable Comments".

Score History

First score snapshot

First scan
Jun 19, 2026, 09:32 PM UTC
Plugin version
v2.7.0
Plugin Check
2.0.0
Scoring model
2026.06-mvp-static-v2
Scan records1

v2.7.0

53

Latest

Findings
61
Errors
15
Warnings
46
Plugin Check
2.0.0
Model
2026.06-mvp-static-v2

Related Plugins