Role Content Restriction Security & Risk Analysis

wordpress.org/plugins/role-content-restriction

Restricts access to selected post types based on user roles.

20 active installs v1.0.0 PHP + WP 4.0+ Updated Aug 18, 2016
accesscontent-restrictionmember-onlyrestrictrestricted-access
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is Role Content Restriction Safe to Use in 2026?

Generally Safe

Score 85/100

Role Content Restriction has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 9yr ago
Risk Assessment

The plugin "role-content-restriction" v1.0.0 exhibits a strong security posture based on the provided static analysis. The absence of any identified AJAX handlers, REST API routes, shortcodes, or cron events with unprotected entry points suggests a minimal attack surface. Furthermore, the code signals indicate good practices, with no dangerous functions, all SQL queries using prepared statements, and a high percentage of output being properly escaped. The presence of a nonce check further reinforces its security considerations.

However, a notable concern is the complete lack of capability checks. While the plugin has a small attack surface, this absence means that any potential vulnerabilities found in the future could be exploited by users without proper authorization, as there are no built-in checks to ensure users have the necessary permissions. The taint analysis showing zero flows with unsanitized paths is positive, but this could be influenced by the limited attack surface. The vulnerability history is clean, with no known CVEs, which is a very good sign and suggests a well-maintained or less complex plugin.

In conclusion, "role-content-restriction" v1.0.0 appears to be a secure plugin due to its limited attack surface, good coding practices regarding SQL and output escaping, and lack of past vulnerabilities. The primary area for improvement and potential risk lies in the complete absence of capability checks, which could become a critical oversight if any new vulnerabilities are discovered in the future.

Key Concerns

  • Missing capability checks
Vulnerabilities
None known

Role Content Restriction Security Vulnerabilities

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

Role Content Restriction Code Analysis

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

Output Escaping

80% escaped5 total outputs
Attack Surface

Role Content Restriction Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 4
actionplugins_loadedrole-content-restriction.php:20
actionadd_meta_boxesrole-content-restriction.php:48
actionsave_postrole-content-restriction.php:49
filterthe_contentrole-content-restriction.php:52
Maintenance & Trust

Role Content Restriction Maintenance & Trust

Maintenance Signals

WordPress version tested4.6.30
Last updatedAug 18, 2016
PHP min version
Downloads2K

Community Trust

Rating100/100
Number of ratings1
Active installs20
Developer Profile

Role Content Restriction Developer Profile

Imprevo

1 plugin · 20 total installs

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

How We Detect Role Content Restriction

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/role-content-restriction/js/role-content-restriction.js/wp-content/plugins/role-content-restriction/css/role-content-restriction.css
Script Paths
/wp-content/plugins/role-content-restriction/js/role-content-restriction.js
Version Parameters
role-content-restriction/style.css?ver=role-content-restriction/script.js?ver=

HTML / DOM Fingerprints

CSS Classes
role-content-restriction_metaboxrole-content-restriction_restrict_postrole-content-restriction_instructionsrole-content-restriction_role_selector
Data Attributes
name="role-content-restriction_restrict_content"name="role-content-restriction_nonce"id="role-content-restriction_metabox"id="role-content-restriction_restrict_post"id="role-content-restriction_instructions"id="role-content-restriction_role_selector"
JS Globals
window.role_content_restriction
FAQ

Frequently Asked Questions about Role Content Restriction