Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.83ms] Passed 4 tests
Server-side resources used by User Roles
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.14 ▲2.94 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.09 ▼7.28 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 45.11 ▼6.25 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 84.28 ▼13.78 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.72 ▼0.01 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for User Roles
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 14.40 ▼0.02 | 1.74 ▲0.20 | 47.54 ▲1.48 |
Dashboard /wp-admin | 2,210 ▲19 | 4.81 ▼0.13 | 109.56 ▲6.99 | 42.90 ▼2.73 |
Posts /wp-admin/edit.php | 2,090 ▲19 | 2.04 ▲0.01 | 34.78 ▼1.89 | 35.95 ▲2.46 |
Add New Post /wp-admin/post-new.php | 1,517 ▼3 | 17.57 ▼5.61 | 654.46 ▼79.42 | 68.26 ▼2.15 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.28 ▲0.10 | 97.95 ▼20.37 | 43.31 ▼2.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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 fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-roles/user-roles.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% 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 to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (screenshot-1.png User Role main form), #2 (screenshot-2.png Add/Remove capabilities), #3 (screenshot-3.png Rôles utilisateurs Français), #4 (screenshot-4.png 用户角色 站点默认), #5 (screenshot-5.png رُتب الأعضاء العربية)
user-roles/user-roles.php Passed 13 tests
"User Roles" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
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 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin411 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 6 | 25 | 411 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 55.00 |
▷ Minimum class complexity | 55.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 4.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 15 | 100.00% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.48MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 44.08KB | 22.68KB | ▼ 48.54% |
screenshot-4.png | 148.91KB | 65.81KB | ▼ 55.81% |
screenshot-3.png | 114.16KB | 56.22KB | ▼ 50.75% |
screenshot-5.png | 104.88KB | 51.44KB | ▼ 50.95% |
screenshot-2.png | 76.50KB | 35.64KB | ▼ 53.41% |