Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲4.99MB] [CPU: ▲20.04ms] 75% from 4 tests
Server-side resources used by Premmerce User Roles
The following require your attention
- CPU: The total CPU usage must kept under 500.00ms (currently 1,606.05ms on /wp-admin/admin.php?page=premmerce-users-roles)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.84 ▲5.38 | 59.34 ▲8.52 |
Dashboard /wp-admin | 8.86 ▲5.56 | 68.68 ▲23.19 |
Posts /wp-admin/edit.php | 8.86 ▲5.51 | 69.36 ▲21.70 |
Add New Post /wp-admin/post-new.php | 9.38 ▲3.50 | 121.15 ▲26.73 |
Media Library /wp-admin/upload.php | 8.86 ▲5.63 | 62.60 ▲31.09 |
User Roles /wp-admin/admin.php?page=premmerce-users-roles | 8.86 | 1,606.05 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 8.86 | 57.41 |
Server storage [IO: ▲3.55MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 396 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
fs_accounts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
fs_active_plugins |
db_upgraded |
fs_debug_mode |
Browser metrics Passed 4 tests
An overview of browser requirements for Premmerce User Roles
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,858 ▲101 | 14.48 ▼0.11 | 1.69 ▼0.68 | 29.23 ▼18.78 |
Dashboard /wp-admin | 2,264 ▲76 | 5.82 ▼0.02 | 95.43 ▼6.57 | 42.57 ▼6.76 |
Posts /wp-admin/edit.php | 2,147 ▲58 | 2.05 ▼0.07 | 40.46 ▲0.18 | 38.04 ▲1.48 |
Add New Post /wp-admin/post-new.php | 1,538 ▲5 | 17.71 ▼5.36 | 620.59 ▼50.04 | 58.83 ▲4.43 |
Media Library /wp-admin/upload.php | 1,453 ▲65 | 4.22 ▲0.05 | 94.90 ▼17.29 | 47.40 ▼0.73 |
User Roles /wp-admin/admin.php?page=premmerce-users-roles | 993 | 1.71 | 29.51 | 61.02 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,109 | 1.70 | 25.03 | 25.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/premmerce-user-roles/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- This plugin did not uninstall successfully, leaving 9 options in the database
- widget_recent-comments
- db_upgraded
- fs_debug_mode
- widget_recent-posts
- fs_active_plugins
- fs_accounts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means 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 take a closer look at the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'Yaoi\\Command' not found in wp-content/plugins/premmerce-user-roles/vendor/behat/transliterator/src/Behat/Transliterator/SyncTool.php:21
- > PHP Fatal error
Uncaught Error: Interface 'Premmerce\\SDK\\V2\\Plugin\\PluginInterface' not found in wp-content/plugins/premmerce-user-roles/src/UsersRolesPlugin.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: custom user roles, user roles, user roles management, users roles, create custom user role
premmerce-user-roles/premmerce-users-roles.php 85% from 13 tests
The entry point to "Premmerce User Roles" version 1.0.13 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("premmerce-user-roles.php" instead of "premmerce-users-roles.php")
Code Analysis 97% from 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 detected39,046 lines of code in 346 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 318 | 8,372 | 17,994 | 38,153 |
Markdown | 5 | 143 | 0 | 329 |
JavaScript | 4 | 56 | 59 | 243 |
PO File | 2 | 84 | 120 | 156 |
JSON | 3 | 5 | 0 | 136 |
CSS | 14 | 4 | 0 | 29 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 78.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 59 | |
▷ Abstract classes | 3 | 5.08% |
▷ Concrete classes | 56 | 94.92% |
▷ Final classes | 0 | 0.00% |
Methods | 1,360 | |
▷ Static methods | 226 | 16.62% |
▷ Public methods | 951 | 69.93% |
▷ Protected methods | 19 | 1.40% |
▷ Private methods | 390 | 28.68% |
Functions | 104 | |
▷ Named functions | 99 | 95.19% |
▷ Anonymous functions | 5 | 4.81% |
Constants | 153 | |
▷ Global constants | 98 | 64.05% |
▷ Class constants | 55 | 35.95% |
▷ Public constants | 55 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/premmerce-users-roles.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |