UserRoleSwitcher Security & Risk Analysis

wordpress.org/plugins/userroleswitcher

Allows admins to log in as non-admin users from the admin bar or the Users page.

0 active installs v1.0 PHP + WP 5.5+ Updated Sep 12, 2025
account-switchadmin-toolsimpersonate-userrole-switcheruser-switch
100
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is UserRoleSwitcher Safe to Use in 2026?

Generally Safe

Score 100/100

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

No known CVEs Updated 6mo ago
Risk Assessment

The "userroleswitcher" v1.0 plugin exhibits a strong security posture based on the provided static analysis. It demonstrates excellent adherence to best practices, with all identified entry points properly secured through authentication and capability checks. The absence of dangerous functions, raw SQL queries, unescaped output, file operations, and external HTTP requests further solidifies its secure coding practices. The plugin also appears robust against common injection vulnerabilities, as indicated by zero taint flows with unsanitized paths. Its vulnerability history is clean, with no recorded CVEs, suggesting a history of secure development or diligent patching by users.

While the plugin's security is commendable, the analysis is limited by the absence of taint analysis data, which could reveal more subtle vulnerabilities. The presence of 5 nonce checks and 8 capability checks is positive but doesn't preclude potential logic flaws or misconfigurations in how these checks are implemented. However, given the overall clean bill of health from the static analysis and the lack of historical vulnerabilities, the current risk associated with this plugin appears to be very low. Users can be confident in its security provided the analysis covers all critical code paths.

Vulnerabilities
None known

UserRoleSwitcher Security Vulnerabilities

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

UserRoleSwitcher Code Analysis

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

Output Escaping

100% escaped16 total outputs
Attack Surface

UserRoleSwitcher Attack Surface

Entry Points1
Unprotected0

AJAX Handlers 1

authwp_ajax_userroleswitcher_user_searchuser-role-switcher.php:27
WordPress Hooks 14
actionadmin_bar_menuincludes\admin-bar-user-roleswitcher.php:4
actionwp_enqueue_scriptsincludes\admin-bar-user-roleswitcher.php:5
actionadmin_enqueue_scriptsincludes\admin-bar-user-roleswitcher.php:6
filteruser_row_actionsincludes\admin-bar-user-roleswitcher.php:34
actioninitincludes\user-edit-roleswitcher.php:5
actionedit_user_profileincludes\user-edit-roleswitcher.php:12
actionadmin_initincludes\user-edit-roleswitcher.php:41
actionadmin_initincludes\user-edit-roleswitcher.php:66
actionwp_footerincludes\user-edit-roleswitcher.php:88
actioninituser-role-switcher.php:23
actionwp_enqueue_scriptsuser-role-switcher.php:24
actionadmin_enqueue_scriptsuser-role-switcher.php:25
actionwp_footeruser-role-switcher.php:26
actionadmin_bar_menuuser-role-switcher.php:28
Maintenance & Trust

UserRoleSwitcher Maintenance & Trust

Maintenance Signals

WordPress version tested6.8.5
Last updatedSep 12, 2025
PHP min version
Downloads226

Community Trust

Rating0/100
Number of ratings0
Active installs0
Developer Profile

UserRoleSwitcher Developer Profile

Shaon Bahadur

2 plugins · 0 total installs

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

How We Detect UserRoleSwitcher

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/userroleswitcher/assets/style.css/wp-content/plugins/userroleswitcher/js/switcher.js
Script Paths
/wp-content/plugins/userroleswitcher/js/switcher.js
Version Parameters
userroleswitcher/assets/style.css?ver=userroleswitcher/js/switcher.js?ver=

HTML / DOM Fingerprints

CSS Classes
urs-barurs-back-barurs-back-buttonfull-barurs-searchurs-switchurs-suggestionsurs-suggestions-list
Data Attributes
id="urs-bar"id="urs-back-bar"id="urs-back-form"id="urs-back-button"id="urs-search"id="urs-switch"+2 more
JS Globals
userroleswitcher_ajax
REST Endpoints
/wp-json/userroleswitcher/v1/search
FAQ

Frequently Asked Questions about UserRoleSwitcher