Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲1.33MB] [CPU: ▲4.10ms] 75% from 4 tests
Analyzing server-side resources used by Members - Membership & User Role Editor Plugin
Please have a look at the following items
- CPU: You should keep total CPU usage under 500.00ms (currently 593.60ms on /wp-admin/admin.php?page=members-payments)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.25 ▲0.79 | 48.39 ▲8.26 |
Dashboard /wp-admin | 4.83 ▲1.48 | 55.02 ▼5.27 |
Posts /wp-admin/edit.php | 4.88 ▲1.52 | 58.61 ▲12.42 |
Add New Post /wp-admin/post-new.php | 7.47 ▲1.58 | 99.36 ▲1.00 |
Media Library /wp-admin/upload.php | 4.74 ▲1.51 | 45.08 ▲12.56 |
Settings /wp-admin/admin.php?page=members-settings | 4.79 | 47.08 |
Add-Ons /wp-admin/admin.php?page=members-settings&view=add-ons | 4.77 | 47.87 |
About Us /wp-admin/admin.php?page=members-about | 4.66 | 42.17 |
Payments /wp-admin/admin.php?page=members-payments | 4.74 | 593.60 |
Add New Role /wp-admin/admin.php?page=members | 5.06 | 44.81 |
Roles /wp-admin/admin.php?page=roles | 4.84 | 46.54 |
Server storage [IO: ▲1.45MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 200 new files
Database: no new tables, 11 new options
New WordPress options |
---|
widget_recent-comments |
widget_members-widget-users |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_members-widget-login |
members_activated |
widget_theysaidso_widget |
members_addons_migrated |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Members - Membership & User Role Editor Plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,853 ▲106 | 14.19 ▼0.15 | 1.65 ▼0.03 | 44.91 ▲1.66 |
Dashboard /wp-admin | 2,259 ▲82 | 5.64 ▼0.00 | 95.72 ▼2.33 | 42.67 ▲0.54 |
Posts /wp-admin/edit.php | 2,164 ▲61 | 2.02 ▲0.03 | 37.34 ▼1.49 | 32.71 ▼3.08 |
Add New Post /wp-admin/post-new.php | 6,732 ▲5,197 | 22.11 ▼2.93 | 910.56 ▲239.23 | 66.81 ▼14.34 |
Media Library /wp-admin/upload.php | 1,464 ▲64 | 4.22 ▲0.05 | 98.51 ▲3.67 | 41.63 ▼0.05 |
Settings /wp-admin/admin.php?page=members-settings | 2,276 | 8.46 | 182.07 | 128.80 |
Add-Ons /wp-admin/admin.php?page=members-settings&view=add-ons | 1,870 | 2.15 | 30.09 | 35.60 |
About Us /wp-admin/admin.php?page=members-about | 1,157 | 2.25 | 24.91 | 34.04 |
Payments /wp-admin/admin.php?page=members-payments | 1,628 | 2.09 | 26.21 | 38.00 |
Add New Role /wp-admin/admin.php?page=members | 7,341 | 2.72 | 69.53 | 38.60 |
Roles /wp-admin/admin.php?page=roles | 1,643 | 2.49 | 37.36 | 32.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 11 options
- members_notifications
- widget_members-widget-login
- widget_recent-comments
- members_activated
- widget_theysaidso_widget
- widget_members-widget-users
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- members_addons_migrated
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/members/admin/views/promotion.php
- > /wp-content/plugins/members/admin/class-notifications.php
- 48× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function Members\\Core_Create_Caps\\add_action() in wp-content/plugins/members/addons/members-core-create-caps/addon.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function Members\\AddOns\\AdminAccess\\add_action() in wp-content/plugins/members/addons/members-admin-access/app/functions-admin.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/members/addons/members-admin-access/config/app.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/members/inc/functions-roles.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/members/addons/members-role-hierarchy/addon.php:80
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/members/inc/functions-admin-bar.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/members/inc/functions-shortcodes.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/members/addons/members-role-hierarchy/admin/class-manage-roles.php:57
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/members/inc/functions-private-site.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function Members\\AddOns\\AdminAccess\\trailingslashit() in wp-content/plugins/members/addons/members-admin-access/bootstrap/app.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
members/members.php 92% from 13 tests
"Members - Membership & User Role Editor Plugin" version 3.2.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 274 characters long)
Code Analysis Passed 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
Everything looks great! No dangerous files found in this plugin10,450 lines of code in 178 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 104 | 3,094 | 7,191 | 7,795 |
CSS | 5 | 207 | 19 | 937 |
JavaScript | 30 | 326 | 395 | 934 |
Markdown | 19 | 364 | 0 | 737 |
Sass | 1 | 8 | 0 | 24 |
SVG | 18 | 0 | 0 | 18 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 15.83 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 136.00 |
Average method complexity | 3.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 56.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 47 | |
▷ Abstract classes | 1 | 2.13% |
▷ Concrete classes | 46 | 97.87% |
▷ Final classes | 24 | 52.17% |
Methods | 316 | |
▷ Static methods | 22 | 6.96% |
▷ Public methods | 263 | 83.23% |
▷ Protected methods | 22 | 6.96% |
▷ Private methods | 31 | 9.81% |
Functions | 284 | |
▷ Named functions | 269 | 94.72% |
▷ Anonymous functions | 15 | 5.28% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.23MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
addons/members-role-hierarchy/screenshot-1.png | 38.47KB | 19.03KB | ▼ 50.54% |
img/icon-addon.png | 20.09KB | 8.89KB | ▼ 55.76% |
img/bee.png | 9.29KB | 10.44KB | 0.00% |
addons/members-role-levels/screenshot-1.png | 24.96KB | 11.80KB | ▼ 52.71% |
addons/members-role-levels/screenshot-2.png | 53.96KB | 24.42KB | ▼ 54.74% |