Remove admin menus by role Security & Risk Analysis

wordpress.org/plugins/remove-admin-menus-by-role

Select easily which admin menus to remove for which roles.

8K active installs v1.37 PHP 5.6+ WP 3.5+ Updated Dec 2, 2025
adminhidemenuremoverole
100
A · Safe
CVEs total0
Unpatched0
Last CVENever
Download
Safety Verdict

Is Remove admin menus by role Safe to Use in 2026?

Generally Safe

Score 100/100

Remove admin menus by role has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 4mo ago
Risk Assessment

The 'remove-admin-menus-by-role' plugin v1.37 exhibits a generally good security posture with several positive indicators. The absence of known CVEs, unpatched vulnerabilities, and recorded common vulnerability types is a strong sign of a well-maintained and secure plugin. Furthermore, the static analysis reveals a clean slate regarding critical and high severity taint flows, unsanitized paths, and external HTTP requests. All output appears to be properly escaped, and there are no direct file operations that could pose a risk. The use of prepared statements for the majority of SQL queries also demonstrates a good practice for preventing SQL injection vulnerabilities.

However, there are specific concerns that warrant attention. The presence of the `unserialize` function six times within the code is a significant risk. If the data being unserialized originates from an untrusted source, it could lead to Remote Code Execution (RCE) vulnerabilities, as `unserialize` is known to be dangerous. Additionally, the plugin lacks capability checks for its entry points, relying solely on a single nonce check. This means that unauthorized users might be able to interact with the plugin's functionality if they can obtain a valid nonce, which is not a robust security measure on its own.

In conclusion, while the plugin benefits from a clean vulnerability history and good practices in areas like output escaping and SQL query preparation, the reliance on `unserialize` and the limited authorization checks represent substantial security weaknesses. The developers should prioritize addressing the `unserialize` usage and implement proper capability checks for all plugin interactions to mitigate these risks effectively.

Key Concerns

  • Dangerous function 'unserialize' used
  • No capability checks on entry points
Vulnerabilities
None known

Remove admin menus by role Security Vulnerabilities

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

Remove admin menus by role Code Analysis

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

Dangerous Functions Found

unserialize$roles_selected = unserialize($profile->roles);remove-admin-menus-by-role.php:112
unserialize$menus_hidden = unserialize($profile->menus_hidden);remove-admin-menus-by-role.php:114
unserialize$submenus_hidden = unserialize($profile->submenus_hidden);remove-admin-menus-by-role.php:116
unserialize$roles_selected = unserialize($profile->roles);remove-admin-menus-by-role.php:312
unserialize$menus_hidden = unserialize($profile->menus_hidden);remove-admin-menus-by-role.php:313
unserialize$submenus_hidden = unserialize($profile->submenus_hidden);remove-admin-menus-by-role.php:314

SQL Query Safety

80% prepared5 total queries

Output Escaping

100% escaped13 total outputs
Data Flows
All sanitized

Data Flow Analysis

2 flows
remove_menu_admin_free (remove-admin-menus-by-role.php:204)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface

Remove admin menus by role Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 3
actionadmin_menuremove-admin-menus-by-role.php:90
actionadmin_print_stylesremove-admin-menus-by-role.php:194
actionplugins_loadedremove-admin-menus-by-role.php:363
Maintenance & Trust

Remove admin menus by role Maintenance & Trust

Maintenance Signals

WordPress version tested6.9.4
Last updatedDec 2, 2025
PHP min version5.6
Downloads65K

Community Trust

Rating88/100
Number of ratings14
Active installs8K
Developer Profile

Remove admin menus by role Developer Profile

manu225

17 plugins · 27K total installs

94
trust score
Avg Security Score
100/100
Avg Patch Time
29 days
View full developer profile
Detection Fingerprints

How We Detect Remove admin menus by role

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/remove-admin-menus-by-role/images/icon.png/wp-content/plugins/remove-admin-menus-by-role/css/admin.css
Version Parameters
remove-admin-menus-by-role/css/admin.css?ver=

HTML / DOM Fingerprints

FAQ

Frequently Asked Questions about Remove admin menus by role