Extends the excellent User Switching plugin by John Blackbourn by adding a User Switching to the admin bar for quick and easy user switching.
Prioritized issue groups from the latest Plugin Check scan
Security
24
5 issue groups
Maintainability
11
8 issue groups
I18n
8
2 issue groups
Repo Compliance
4
4 issue groups
Sample message
Detected usage of a possibly undefined superglobal array index: $_POST['currentUrl']. Check that the array index exists before using it.
Sample message
Mismatched text domain. Expected 'admin-bar-user-switching' but got 'abus'.
Sample message
Detected usage of a non-sanitized input variable: $_POST['currentUrl']
Sample message
$_POST['currentUrl'] not unslashed before sanitization. Use wp_unslash() or similar
Sample message
Function "determine_locale()" requires WordPress 5.0.0, but your plugin minimum supported version is WordPress 3.1.0.
Sample message
Processing form data without nonce verification.
Sample message
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$html'.
Sample message
Global constants defined by a theme/plugin should start with the theme/plugin prefix. Found: "ABSPATH_LENGTH".
Sample message
Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "plugin_locale".
Sample message
Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$ABUS_PLUGIN_SLUG".
Sample message
In footer ($in_footer) is not set explicitly wp_register_script; It is recommended to load scripts in the footer. Please set this value to `true` to load it in the footer, or explicitly `false` if it should be loaded in the header.
Sample message
Plugin name "Admin Bar User Switching" is different from the name declared in plugin header "User Switching in Admin Bar".
Sample message
The "/vendor" directory using composer exists, but "composer.json" file is missing.
Sample message
PHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;
Sample message
Tested up to: 6.0 < 7.0. The "Tested up to" value in your plugin is not set to the current version of WordPress. This means your plugin will not show up in searches, as we require plugins to be compatible and documented as tested up to the most recent version of WordPress.
Sample message
Missing "License" in Plugin Header. Please update your Plugin Header with a valid GPLv2 (or later) compatible license.
Sample message
The "Domain Path" header in the plugin file must point to an existing folder. Found: "i18n/languages"
Sample message
One or more tags were ignored. The following tags are not permitted: "plugin", "wordpress"
Sample message
The "Text Domain" header in the plugin file does not match the slug. Found "abus", expected "admin-bar-user-switching".
Not analyzed yet.
First score snapshot
v1.4
55
Latest
| Scan | Score | Findings | Errors | Warnings | Plugin | Check |
|---|---|---|---|---|---|---|
| Latest | 55 | 47 | 16 | 31 | v1.4 | 2.0.0 |
Author, categories, issues, domains, and nearby plugins.