Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲5.35MB] [CPU: ▲19.09ms] 50% from 4 tests
Server-side resources used by HM Multiple Roles
Please have a look at the following items
- CPU: The total CPU usage must kept under 500.00ms (currently 1,777.76ms on /wp-admin/admin.php?page=hm-multiple-roles)
- Extra RAM: Extra memory usage should kept under 5MB (currently 5.35MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.22 ▲5.76 | 64.36 ▲19.34 |
Dashboard /wp-admin | 9.24 ▲5.94 | 73.32 ▲19.53 |
Posts /wp-admin/edit.php | 9.24 ▲5.88 | 79.18 ▲27.40 |
Add New Post /wp-admin/post-new.php | 9.72 ▲3.83 | 109.47 ▲10.09 |
Media Library /wp-admin/upload.php | 9.24 ▲6.01 | 65.59 ▲29.18 |
HM Multiple Roles /wp-admin/admin.php?page=hm-multiple-roles | 9.24 | 1,777.76 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 9.24 | 61.87 |
Server storage [IO: ▲3.12MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 184 new files
Database: no new tables, 9 new options
New WordPress options |
---|
fs_debug_mode |
fs_active_plugins |
theysaidso_admin_options |
fs_accounts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for HM Multiple Roles
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲45 | 14.34 ▼0.21 | 1.62 ▼0.23 | 29.34 ▼17.21 |
Dashboard /wp-admin | 2,212 ▲32 | 5.56 ▼0.10 | 96.93 ▲1.21 | 45.42 ▲0.99 |
Posts /wp-admin/edit.php | 2,118 ▲21 | 1.98 ▼0.13 | 39.61 ▲2.60 | 38.75 ▲4.32 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 22.05 ▼1.00 | 690.39 ▲57.33 | 59.61 ▲4.73 |
Media Library /wp-admin/upload.php | 1,414 ▲20 | 4.19 ▲0.04 | 97.43 ▼7.01 | 45.48 ▼0.28 |
HM Multiple Roles /wp-admin/admin.php?page=hm-multiple-roles | 977 | 1.67 | 28.19 | 60.98 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,069 | 1.67 | 25.22 | 28.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/hm-multiple-roles/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 9 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- fs_active_plugins
- fs_accounts
- can_compress_scripts
- widget_recent-comments
- fs_debug_mode
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 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: user roles, roles, users, role, user
hm-multiple-roles/hm-multiple-roles.php Passed 13 tests
This is the main PHP file of "HM Multiple Roles" version 1.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
115 characters long description:
It hides the default role dropdown list and displays a list of role checkboxes to select multiple roles for a user.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected33,483 lines of code in 139 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 120 | 8,004 | 17,210 | 33,037 |
Markdown | 1 | 68 | 0 | 214 |
JavaScript | 4 | 39 | 62 | 208 |
CSS | 14 | 3 | 4 | 24 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
It is recommended to fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.64 |
Average class complexity | 93.06 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 48 | |
▷ Abstract classes | 2 | 4.17% |
▷ Concrete classes | 46 | 95.83% |
▷ Final classes | 0 | 0.00% |
Methods | 1,259 | |
▷ Static methods | 197 | 15.65% |
▷ Public methods | 870 | 69.10% |
▷ Protected methods | 17 | 1.35% |
▷ Private methods | 372 | 29.55% |
Functions | 103 | |
▷ Named functions | 103 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 152 | |
▷ Global constants | 105 | 69.08% |
▷ Class constants | 47 | 30.92% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/hm-multiple-roles.png | 52.86KB | 25.91KB | ▼ 50.99% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |