Disable Custom Post Types Security & Risk Analysis

wordpress.org/plugins/disable-custom-post-types

This is a simple plugin to disable unwanted Custom Post Types.

10 active installs v1.0 PHP + WP 4+ Updated Mar 19, 2018
cptcustom-postdisablepost-typeunwanted
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Download
Safety Verdict

Is Disable Custom Post Types Safe to Use in 2026?

Generally Safe

Score 85/100

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

No known CVEs Updated 8yr ago
Risk Assessment

The "disable-custom-post-types" v1.0 plugin presents a mixed security picture. On the positive side, the plugin has a remarkably small attack surface with no identified AJAX handlers, REST API routes, shortcodes, or cron events, which significantly limits potential entry points for attackers. Furthermore, all SQL queries are properly prepared, and there are no external HTTP requests or file operations, reducing risks associated with database manipulation and external compromises. The complete absence of known CVEs and historical vulnerabilities is also a strong indicator of a generally secure development history.

However, there are notable concerns within the static analysis. The presence of the `create_function` function is a significant red flag, as it is deprecated and can lead to security vulnerabilities if not handled with extreme care, potentially allowing for arbitrary code execution under certain circumstances. Additionally, the output escaping is quite low, with only 36% of outputs properly escaped, leaving the plugin susceptible to cross-site scripting (XSS) vulnerabilities if user-supplied data is outputted without sanitization. The lack of nonce checks and capability checks, while potentially less critical due to the limited attack surface, still represent missed opportunities for hardening the plugin against unauthorized actions.

In conclusion, while the plugin benefits from a minimal attack surface and a clean vulnerability history, the identified code quality issues, particularly the use of `create_function` and insufficient output escaping, introduce tangible risks. These risks, though not historically realized, require attention to improve the plugin's overall security posture.

Key Concerns

  • Use of dangerous function: create_function
  • Low percentage of properly escaped outputs
  • Missing nonce checks
  • Missing capability checks
Vulnerabilities
None known

Disable Custom Post Types Security Vulnerabilities

No known vulnerabilities — this is a good sign.
Code Analysis
Analyzed Mar 16, 2026

Disable Custom Post Types Code Analysis

Dangerous Functions
1
Raw SQL Queries
0
0 prepared
Unescaped Output
16
9 escaped
Nonce Checks
0
Capability Checks
0
File Operations
0
External Requests
0
Bundled Libraries
0

Dangerous Functions Found

create_function$callback = create_function('', 'echo "' . str_replace( '"', '\"', $section['desc'] ) . '";');src\class.settings-api.php:108

Output Escaping

36% escaped25 total outputs
Attack Surface

Disable Custom Post Types Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 5
actioninitdisable-custom-post-types.php:56
actionadmin_initsettings.php:16
actionadmin_menusettings.php:17
actionadmin_headsettings.php:125
actionadmin_enqueue_scriptssrc\class.settings-api.php:30
Maintenance & Trust

Disable Custom Post Types Maintenance & Trust

Maintenance Signals

WordPress version tested4.9.29
Last updatedMar 19, 2018
PHP min version
Downloads1K

Community Trust

Rating0/100
Number of ratings0
Active installs10
Developer Profile

Disable Custom Post Types Developer Profile

Muhammad Kashif

3 plugins · 310 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 Custom Post Types

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/disable-custom-post-types/assets/css/style.css/wp-content/plugins/disable-custom-post-types/assets/js/script.js
Script Paths
/wp-content/plugins/disable-custom-post-types/assets/js/script.js
Version Parameters
disable-custom-post-types/assets/css/style.css?ver=disable-custom-post-types/assets/js/script.js?ver=

HTML / DOM Fingerprints

CSS Classes
hmk-settings-disable-post-type
FAQ

Frequently Asked Questions about Disable Custom Post Types