Disable Post Comments Security & Risk Analysis

wordpress.org/plugins/disable-post-comments

This plugin allows administrators can disable wordpress all post type comments on their site and also can be disabled specific post type.

0 active installs v1.0.3 PHP + WP 5.0+ Updated May 25, 2023
commentsdisableglobalspecific-post
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is Disable Post Comments Safe to Use in 2026?

Generally Safe

Score 85/100

Disable Post Comments has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 2yr ago
Risk Assessment

The "disable-post-comments" v1.0.3 plugin exhibits a generally positive security posture based on the provided static analysis. The absence of an attack surface through AJAX, REST API, shortcodes, or cron events is a significant strength, indicating that there are no direct entry points for external manipulation. Furthermore, the plugin does not perform file operations or external HTTP requests, reducing potential attack vectors. The presence of nonce and capability checks, while not exhaustive, demonstrates an awareness of basic WordPress security practices.

However, a notable concern arises from the handling of SQL queries. All 12 detected SQL queries are executed without prepared statements. This is a significant risk, as it leaves the plugin vulnerable to SQL injection attacks if any user-supplied data is incorporated into these queries. The low percentage of properly escaped output (17%) also suggests a potential for Cross-Site Scripting (XSS) vulnerabilities, although the absence of taint flows with unsanitized paths offers some reassurance in this regard. The plugin's vulnerability history is clean, with no recorded CVEs, which is a positive indicator, but this should not overshadow the inherent risks identified in the code itself.

In conclusion, while the plugin has a small attack surface and a clean vulnerability history, the lack of prepared statements for all SQL queries and the poor output escaping are critical security weaknesses that need immediate attention. Addressing these issues would significantly improve the plugin's overall security.

Key Concerns

  • 100% of SQL queries use raw statements
  • Only 17% of output is properly escaped
Vulnerabilities
None known

Disable Post Comments Security Vulnerabilities

No known vulnerabilities — this is a good sign.
Version History

Disable Post Comments Release Timeline

No version history available.
Code Analysis
Analyzed Mar 17, 2026

Disable Post Comments Code Analysis

Dangerous Functions
0
Raw SQL Queries
12
0 prepared
Unescaped Output
15
3 escaped
Nonce Checks
2
Capability Checks
3
File Operations
0
External Requests
0
Bundled Libraries
0

SQL Query Safety

0% prepared12 total queries

Output Escaping

17% escaped18 total outputs
Attack Surface

Disable Post Comments Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 32
actionwidgets_initdisable-post-comments.php:141
filterwp_headersdisable-post-comments.php:142
actiontemplate_redirectdisable-post-comments.php:143
actiontemplate_redirectdisable-post-comments.php:146
actionadmin_initdisable-post-comments.php:147
actionplugins_loadeddisable-post-comments.php:151
actionwp_loadeddisable-post-comments.php:152
actionenqueue_block_editor_assetsdisable-post-comments.php:155
filtercomments_arraydisable-post-comments.php:173
filtercomments_opendisable-post-comments.php:174
filterpings_opendisable-post-comments.php:175
filterget_comments_numberdisable-post-comments.php:176
actionall_admin_noticesdisable-post-comments.php:182
actionnetwork_admin_menudisable-post-comments.php:188
actionnetwork_admin_menudisable-post-comments.php:189
filternetwork_admin_plugin_action_linksdisable-post-comments.php:190
actionadmin_menudisable-post-comments.php:192
actionadmin_menudisable-post-comments.php:193
filterplugin_action_linksdisable-post-comments.php:194
actionadmin_noticesdisable-post-comments.php:200
filterplugin_row_metadisable-post-comments.php:201
actionadmin_menudisable-post-comments.php:204
actionadmin_print_styles-index.phpdisable-post-comments.php:205
actionadmin_print_styles-profile.phpdisable-post-comments.php:206
actionwp_dashboard_setupdisable-post-comments.php:207
filterpre_option_default_pingback_flagdisable-post-comments.php:208
actiontemplate_redirectdisable-post-comments.php:213
filterfeed_links_show_comments_feeddisable-post-comments.php:216
filtercomments_templatedisable-post-comments.php:230
actionadmin_bar_menudisable-post-comments.php:269
filtershow_recent_comments_widget_styledisable-post-comments.php:404
actionadmin_enqueue_scriptsdisable-post-comments.php:473
Maintenance & Trust

Disable Post Comments Maintenance & Trust

Maintenance Signals

WordPress version tested6.0.11
Last updatedMay 25, 2023
PHP min version
Downloads1K

Community Trust

Rating0/100
Number of ratings0
Active installs0
Developer Profile

Disable Post Comments Developer Profile

Sumit Singh

3 plugins · 40 total installs

87
trust score
Avg Security Score
90/100
Avg Patch Time
30 days
View full developer profile
Detection Fingerprints

How We Detect Disable Post Comments

Patterns used to identify this plugin on WordPress sites during automated security audits and web crawling.

Asset Fingerprints

Asset Paths
/wp-content/plugins/disable-post-comments/assets/css/disable-post-comments-admin.css/wp-content/plugins/disable-post-comments/assets/js/disable-post-comments-admin.js
Script Paths
/wp-content/plugins/disable-post-comments/assets/js/disable-post-comments-admin.js
Version Parameters
disable-post-comments/assets/css/disable-post-comments-admin.css?ver=disable-post-comments/assets/js/disable-post-comments-admin.js?ver=

HTML / DOM Fingerprints

CSS Classes
disable-post-comments-settings
Data Attributes
data-dpc-plugin-url
JS Globals
dpc_admin_options
FAQ

Frequently Asked Questions about Disable Post Comments