Redirect users after login/logout by role. Optionally hide admin bar and block dashboard access for selected roles.
Prioritized issue groups from the latest Plugin Check scan
Maintainability
66
6 issue groups
Security
49
10 issue groups
Repo Compliance
1
1 issue group
Sample message
Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$adminbar".
Sample message
$_POST['adminbar'] not unslashed before sanitization. Use wp_unslash() or similar
Sample message
Use of a direct database call is discouraged.
Sample message
Detected usage of a possibly undefined superglobal array index: $_POST['role_userrole']. Check that the array index exists before using it.
Sample message
Direct database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().
Sample message
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$fetchlogintext'.
Sample message
All output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'.
Sample message
Do not use Localhost/127.0.0.1/*.local in your code. Found: http://localhost/
Sample message
Unescaped parameter $key used in $wpdb->get_results()\n$key assigned unsafely at line 114.
Sample message
Use placeholders and $wpdb->prepare(); found interpolated variable $key at "SELECT * FROM {$wpdb->prefix}rbrurls_redirect WHERE `role_type` = '$key'"
Sample message
Detected usage of a non-sanitized input variable: $_POST['url_redirect']
Sample message
Unescaped parameter $table_name used in $wpdb->get_var()\n$table_name assigned unsafely at line 107.
Sample message
Attempting a database schema change is discouraged.
Sample message
Use placeholders and $wpdb->prepare(); found $sql
Sample message
wp_redirect() found. Using wp_safe_redirect(), along with the "allowed_redirect_hosts" filter if needed, can help avoid any chances of malicious redirects within code. It is also important to remember to call exit() after a redirect so that no other unwanted code is executed.
Sample message
Resource version not set in call to wp_register_style(). This means new versions of the style may not always be loaded due to browser caching.
Sample message
Tested up to: 6.9 < 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.
Not analyzed yet.
First score snapshot
v1.6
40
Latest
| Scan | Score | Findings | Errors | Warnings | Plugin | Check |
|---|---|---|---|---|---|---|
| Latest | 40 | 116 | 20 | 96 | v1.6 | 2.0.0 |
Author, categories, issues, domains, and nearby plugins.