Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲1.05MB] [CPU: ▼1.73ms] Passed 4 tests
A check of server-side resources used by User Role Editor
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.56 ▲1.09 | 43.41 ▲5.48 |
Dashboard /wp-admin | 4.41 ▲1.06 | 48.56 ▼10.47 |
Posts /wp-admin/edit.php | 4.46 ▲1.10 | 54.07 ▲5.54 |
Add New Post /wp-admin/post-new.php | 6.93 ▲1.04 | 89.99 ▼7.47 |
Media Library /wp-admin/upload.php | 4.27 ▲1.03 | 47.25 ▲11.87 |
Server storage [IO: ▲1.20MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 80 new files
Database: no new tables, 8 new options
New WordPress options |
---|
ure_tasks_queue |
user_role_editor |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by User Role Editor
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲51 | 14.34 ▼0.21 | 1.58 ▼0.02 | 38.74 ▼2.87 |
Dashboard /wp-admin | 2,200 ▲23 | 5.53 ▼0.01 | 85.49 ▼1.65 | 36.78 ▼3.97 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 1.99 ▼0.00 | 35.31 ▼0.60 | 32.28 ▼0.89 |
Add New Post /wp-admin/post-new.php | 1,532 ▼4 | 23.71 ▲0.41 | 658.33 ▲14.66 | 53.03 ▲1.25 |
Media Library /wp-admin/upload.php | 1,408 ▲17 | 4.19 ▼0.00 | 91.95 ▼8.85 | 44.87 ▼1.06 |
User Role Editor /wp-admin/users-user-role-editor.php | 26 | 0.42 | 0.11 | 14.54 |
User Role Editor /wp-admin/settings-user-role-editor.php | 26 | 0.42 | 0.06 | 5.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- ure_tasks_queue
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 8× PHP files trigger server errors when accessed directly:
- > PHP Warning
require_once(URE_PLUGIN_DIRincludes/define-constants.php): failed to open stream: No such file or directory in wp-content/plugins/user-role-editor/includes/loader.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'URE_View' not found in wp-content/plugins/user-role-editor/includes/classes/user-view.php:10
- > PHP Fatal error
Uncaught Error: Class 'URE_View' not found in wp-content/plugins/user-role-editor/includes/classes/role-view.php:10
- > PHP Warning
Use of undefined constant URE_PLUGIN_DIR - assumed 'URE_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/user-role-editor/includes/loader.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function is_network_admin() in wp-content/plugins/user-role-editor/includes/define-constants.php:13
- > PHP Fatal error
require_once(): Failed opening required 'URE_PLUGIN_DIRincludes/define-constants.php' (include_path='.:/usr/share/php') in wp-content/plugins/user-role-editor/includes/loader.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/user-role-editor/includes/settings-template.php:16
- > PHP Fatal error
Uncaught Error: Class 'URE_Base_Lib' not found in wp-content/plugins/user-role-editor/includes/classes/lib.php:14
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- > GET request to /wp-admin/users-user-role-editor.php
- > Network (severe)
wp-admin/users-user-role-editor.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/settings-user-role-editor.php
- > Network (severe)
wp-admin/settings-user-role-editor.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (screenshot-1.png User Role Editor main form), #2 (screenshot-2.png Add/Remove roles or capabilities), #3 (screenshot-3.png User Capabilities link), #4 (screenshot-4.png User Capabilities Editor), #5 (screenshot-5.png Bulk change role for users without roles), #6 (screenshot-6.png Assign multiple roles to the selected users)
user-role-editor/user-role-editor.php Passed 13 tests
Analyzing the main PHP file in "User Role Editor" version 4.64.1
56 characters long description:
Change/add/delete WordPress user roles and capabilities.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected12,919 lines of code in 48 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 34 | 1,859 | 1,587 | 6,064 |
JavaScript | 9 | 821 | 384 | 5,235 |
CSS | 5 | 111 | 75 | 1,620 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 36.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 204.00 |
Average method complexity | 3.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 27 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 27 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 373 | |
▷ Static methods | 60 | 16.09% |
▷ Public methods | 210 | 56.30% |
▷ Protected methods | 89 | 23.86% |
▷ Private methods | 74 | 19.84% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 16 | |
▷ Global constants | 9 | 56.25% |
▷ Class constants | 7 | 43.75% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
21 PNG files occupy 0.26MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-6.png | 30.91KB | 30.54KB | ▼ 1.22% |
screenshot-3.png | 35.14KB | 35.08KB | 0.16% |
images/changelog-icon.png | 0.48KB | 0.40KB | ▼ 16.40% |
css/images/ui-icons_777777_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |
css/images/ui-icons_444444_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |