Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲2.20MB] [CPU: ▲21.20ms] 75% from 4 tests
An overview of server-side resources used by WP-Members Membership Plugin
Please fix the following
- CPU: You should keep total CPU usage under 500.00ms (currently 933.58ms on /wp-admin/options-general.php?page=wpmem-settings)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.13 ▲1.67 | 66.83 ▲23.24 |
Dashboard /wp-admin | 5.89 ▲2.59 | 74.15 ▲24.02 |
Posts /wp-admin/edit.php | 5.76 ▲2.40 | 74.68 ▲24.73 |
Add New Post /wp-admin/post-new.php | 8.27 ▲2.39 | 114.46 ▲15.41 |
Media Library /wp-admin/upload.php | 5.56 ▲2.33 | 56.21 ▲22.13 |
WP-Members /wp-admin/options-general.php?page=wpmem-settings | 6.88 | 933.58 |
WP-Members Onboarding /wp-admin/admin.php?page=wp-members-onboarding | 5.50 | 47.68 |
Server storage [IO: ▲2.91MB] [DB: ▲0.05MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 236 new files
Database: no new tables, 12 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
wpmembers_settings |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
wpmembers_dialogs |
wpmembers_tos |
wpmembers_fields |
widget_widget_wpmemwidget |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP-Members Membership Plugin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,001 ▲266 | 13.62 ▼0.75 | 5.68 ▲3.81 | 32.31 ▼18.58 |
Dashboard /wp-admin | 2,321 ▲133 | 4.87 ▼0.05 | 111.19 ▼3.90 | 49.07 ▲0.38 |
Posts /wp-admin/edit.php | 2,183 ▲97 | 2.37 ▲0.32 | 40.41 ▲5.94 | 37.01 ▲1.18 |
Add New Post /wp-admin/post-new.php | 6,537 ▲5,023 | 20.32 ▲2.79 | 884.06 ▲216.92 | 36.53 ▼13.60 |
Media Library /wp-admin/upload.php | 1,436 ▲51 | 4.21 ▲0.02 | 97.14 ▼0.70 | 48.44 ▲3.87 |
WP-Members /wp-admin/options-general.php?page=wpmem-settings | 1,745 | 2.74 | 46.18 | 63.53 |
WP-Members Onboarding /wp-admin/admin.php?page=wp-members-onboarding | 659 | 1.53 | 6.24 | 16.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.04MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_widget_wpmemwidget
- db_upgraded
- widget_recent-posts
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
Everything seems fine, however 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
Please take a closer look at the following
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-members/templates/tos.php:20
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-members/includes/admin/partials/onboarding_notice.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_site_url() in wp-content/plugins/wp-members/includes/admin/partials/onboarding_finalize.php:3
- > PHP Fatal error
Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/wp-members/includes/walkers/class-wp-members-walker-nav-menu.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI' not found in wp-content/plugins/wp-members/includes/cli/class-wp-members-cli-user.php:253
- > PHP Notice
Undefined variable: install_state in wp-content/plugins/wp-members/includes/admin/partials/onboarding_notice.php on line 1
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI' not found in wp-content/plugins/wp-members/includes/cli/class-wp-members-cli-settings.php:310
- > 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 93% 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
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
wp-members/wp-members.php 92% from 13 tests
"WP-Members Membership Plugin" version 3.4.8's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 344 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin41,790 lines of code in 191 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 11 | 6,641 | 9,848 | 14,095 |
PHP | 72 | 2,841 | 10,736 | 12,890 |
JavaScript | 72 | 2,580 | 804 | 10,064 |
CSS | 35 | 452 | 477 | 4,739 |
Markdown | 1 | 0 | 0 | 2 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please tend to the following items
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 125)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 64.20 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 420.00 |
Average method complexity | 7.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 125.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 40 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 40 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 388 | |
▷ Static methods | 73 | 18.81% |
▷ Public methods | 356 | 91.75% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 32 | 8.25% |
Functions | 255 | |
▷ Named functions | 255 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/jquery-ui/ui-icons_777620_256x240.png | 4.57KB | 4.18KB | ▼ 8.43% |
assets/images/jquery-ui/ui-icons_444444_256x240.png | 6.84KB | 4.18KB | ▼ 38.90% |
assets/images/jquery-ui/ui-icons_777777_256x240.png | 6.85KB | 4.18KB | ▼ 38.94% |
assets/images/jquery-ui/ui-icons_ffffff_256x240.png | 6.17KB | 4.18KB | ▼ 32.17% |
assets/images/jquery-ui/ui-icons_555555_256x240.png | 6.91KB | 4.18KB | ▼ 39.47% |