Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.22MB] [CPU: ▲0.07ms] Passed 4 tests
A check of server-side resources used by User Rights Access Manager
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 40.24 ▼0.59 |
Dashboard /wp-admin | 3.55 ▲0.24 | 49.63 ▲3.62 |
Posts /wp-admin/edit.php | 3.65 ▲0.30 | 46.98 ▼0.27 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 86.81 ▼2.47 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 37.69 ▲4.58 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
wp_meta_boxes_data |
Browser metrics Passed 4 tests
Checking browser requirements for User Rights Access Manager
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,866 ▲109 | 13.67 ▼0.63 | 1.64 ▼0.52 | 48.22 ▼1.07 |
Dashboard /wp-admin | 2,269 ▲84 | 5.21 ▼0.67 | 111.20 ▲10.52 | 40.38 ▼2.06 |
Posts /wp-admin/edit.php | 2,119 ▲33 | 2.26 ▲0.22 | 35.08 ▼1.52 | 31.05 ▼0.56 |
Add New Post /wp-admin/post-new.php | 1,538 ▲24 | 23.50 ▲1.69 | 664.64 ▼48.11 | 51.91 ▼6.39 |
Media Library /wp-admin/upload.php | 1,418 ▲36 | 4.34 ▲0.18 | 99.25 ▲1.80 | 41.60 ▼2.85 |
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
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-posts
- wp_meta_boxes_data
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 18× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_Roles' not found in wp-content/plugins/user-rights-access-manager/class/uram_user_role_create.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/user-rights-access-manager/metabox/metaboxes_restriction.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-rights-access-manager/admin/admin_menu_handle.php:13
- > 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-rights-access-manager/template/res_wp_role_list_wpl_list.php on line 14
- > PHP Fatal error
Uncaught Error: Class 'Walker_PageDropdown' not found in wp-content/plugins/user-rights-access-manager/class/uram_walker_pagedropdown_multiple.php:10
- > 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-rights-access-manager/template/res_wp_list_table.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-rights-access-manager/metabox/admin_toolbar_handle.php:21
- > 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-rights-access-manager/template/res_wp_list_table.php on line 16
- > PHP Fatal error
Uncaught Error: Call to a member function get_names() on null in wp-content/plugins/user-rights-access-manager/admin/user_list_admin.php:27
- > 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-rights-access-manager/template/res_wp_role_list_wpl_list.php on line 14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: restrict user roles, user restriction, user access rights
user-rights-access-manager/user-rights-access-manager.php 92% from 13 tests
This is the main PHP file of "User Rights Access Manager" version 1.1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 160 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected2,696 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 237 | 287 | 1,814 |
CSS | 2 | 75 | 13 | 607 |
JavaScript | 2 | 30 | 13 | 152 |
PO File | 1 | 46 | 60 | 108 |
SVG | 2 | 0 | 2 | 15 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 24.36 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 5.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 70 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 58 | 82.86% |
▷ Protected methods | 8 | 11.43% |
▷ Private methods | 4 | 5.71% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin