Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼1.71ms] Passed 4 tests
A check of server-side resources used by User Role by BestWebSoft - Add and Customize Roles and Capabilities in WordPress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 48.86 ▲7.12 |
Dashboard /wp-admin | 3.37 ▲0.07 | 50.03 ▼4.14 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 55.32 ▲4.52 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 94.65 ▼6.76 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 39.97 ▼0.45 |
Server storage [IO: ▲5.30MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 141 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
bstwbsftwppdtplgns_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by User Role by BestWebSoft - Add and Customize Roles and Capabilities in WordPress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲74 | 14.34 ▼0.07 | 1.91 ▲0.24 | 38.15 ▼5.41 |
Dashboard /wp-admin | 2,244 ▲70 | 5.71 ▲0.19 | 95.30 ▼10.32 | 42.10 ▼2.06 |
Posts /wp-admin/edit.php | 2,149 ▲52 | 2.04 ▼0.08 | 39.19 ▲3.05 | 34.74 ▼6.53 |
Add New Post /wp-admin/post-new.php | 1,564 ▲38 | 23.35 ▲0.40 | 600.90 ▼71.09 | 53.83 ▲4.38 |
Media Library /wp-admin/upload.php | 1,449 ▲49 | 4.19 ▲0.02 | 100.36 ▼12.59 | 44.05 ▼7.84 |
Add New /wp-admin/user-role.php?page=srrl_add_new_roles | 26 | 0.42 | 0.14 | 14.72 |
Settings /wp-admin/user-role.php?page=srrl_settings | 26 | 0.42 | 0.10 | 7.70 |
BWS Panel /wp-admin/user-role.php?page=srrl-bws-panel | 26 | 0.42 | 0.09 | 5.72 |
Roles /wp-admin/user-role.php | 26 | 0.42 | 0.15 | 7.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 9× PHP files trigger server errors when accessed directly:
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/user-role/includes/class-user-role.php on line 10
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/user-role/includes/class-user-role.php on line 10
- > PHP Fatal error
Uncaught Error: Class 'Bws_Settings_Tabs' not found in wp-content/plugins/user-role/includes/class-srrl-settings.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/user-role/user-role.php:733
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/user-role/bws_menu/product_list.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/user-role/includes/edit-role-page.php:38
- > PHP Notice
Trying to get property 'roles' of non-object in wp-content/plugins/user-role/includes/edit-role-page.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-role/bws_menu/class-bws-settings.php:1452
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/user-role/includes/class-user-role.php on line 10
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- > GET request to /wp-admin/user-role.php?page=srrl_add_new_roles
- > Network (severe)
wp-admin/user-role.php?page=srrl_add_new_roles - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/user-role.php?page=srrl_settings
- > Network (severe)
wp-admin/user-role.php?page=srrl_settings - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/user-role.php?page=srrl-bws-panel
- > Network (severe)
wp-admin/user-role.php?page=srrl-bws-panel - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/user-role.php
- > Network (severe)
wp-admin/user-role.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Screenshots: Add images for these screenshots: #1 (Roles page.), #2 (Edit administrator`s role page.), #3 (Edit subscriber`s role page.), #4 (Roles page for network admin panel.), #5 (Edit administrator`s role page on network admin panel.)
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
user-role/user-role.php Passed 13 tests
"User Role by BestWebSoft - Add and Customize Roles and Capabilities in WordPress" version 1.6.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
102 characters long description:
Powerful user role management plugin for WordPress website. Create, edit, copy, and delete user roles.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected24,723 lines of code in 51 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 20 | 5,731 | 10,132 | 13,101 |
PHP | 12 | 493 | 745 | 5,483 |
CSS | 9 | 160 | 259 | 5,430 |
JavaScript | 6 | 37 | 120 | 559 |
SVG | 4 | 0 | 0 | 150 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 71.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 210.00 |
Average method complexity | 8.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 79.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 32 | 84.21% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 15.79% |
Functions | 79 | |
▷ Named functions | 79 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
64 PNG files occupy 3.28MB with 0.67MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
bws_menu/images/tooltip_icons.png | 0.81KB | 0.82KB | 0.00% |
bws_menu/css/jquery-ui-styles/1.10.4/images/ui-bg_flat_75_ffffff_40x100.png | 0.25KB | 0.11KB | ▼ 55.38% |
bws_menu/css/jquery-ui-styles/1.10.4/images/ui-icons_cd0a0a_256x240.png | 4.49KB | 4.20KB | ▼ 6.46% |
bws_menu/css/jquery-ui-styles/1.10.4/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.32KB | 0.21KB | ▼ 34.34% |
bws_menu/css/jquery-ui-styles/1.9.2/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.15KB | 0.14KB | ▼ 6.62% |