Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Membership7::myplugin_activate() should not be called statically
Server metrics [RAM: ▲0.08MB] [CPU: ▼0.14ms] Passed 4 tests
Server-side resources used by Membership 7
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 40.86 ▼1.56 |
Dashboard /wp-admin | 3.39 ▲0.08 | 50.94 ▼0.48 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 49.97 ▲3.04 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.08 | 88.01 ▼1.58 |
Media Library /wp-admin/upload.php | 3.32 ▲0.08 | 41.18 ▲5.68 |
Settings /wp-admin/admin.php?page=membership-7-config | 3.26 | 29.72 |
Membership Site /wp-admin/admin.php?page=membership-7 | 3.28 | 36.34 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 9 new options
New WordPress options |
---|
membership-7_redirect_url_after_sign_up |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
membership-7_view_authority_no_when_url |
can_compress_scripts |
membership-7_notify_after_sign_up |
Browser metrics Passed 4 tests
A check of browser resources used by Membership 7
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲30 | 14.41 ▲0.06 | 1.63 ▼0.59 | 44.64 ▼6.06 |
Dashboard /wp-admin | 2,222 ▲48 | 5.53 ▲0.01 | 90.35 ▼15.59 | 41.36 ▼3.94 |
Posts /wp-admin/edit.php | 2,158 ▲58 | 1.96 ▼0.01 | 34.14 ▲0.24 | 33.90 ▼5.05 |
Add New Post /wp-admin/post-new.php | 6,257 ▲4,731 | 25.88 ▲2.72 | 929.14 ▲249.07 | 63.76 ▲10.01 |
Media Library /wp-admin/upload.php | 1,424 ▲24 | 4.09 ▼0.10 | 102.55 ▼6.77 | 46.73 ▲2.89 |
Settings /wp-admin/admin.php?page=membership-7-config | 870 | 2.03 | 25.76 | 27.87 |
Membership Site /wp-admin/admin.php?page=membership-7 | 827 | 1.99 | 22.69 | 28.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 9 options in the database
- membership-7_view_authority_no_when_url
- membership-7_notify_after_sign_up
- membership-7_redirect_url_after_sign_up
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=membership-7-config
- > Notice in wp-content/plugins/easy-and-simple-membership/membership-7.php+119
Undefined index: posted
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
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/easy-and-simple-membership/signup-form.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-and-simple-membership/membership-7.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: Please describe screenshot #1 in easy-and-simple-membership/assets to your readme.txt
easy-and-simple-membership/membership-7.php 85% from 13 tests
The primary PHP file in "Membership 7" version 1.4 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("easy-and-simple-membership.php" instead of "membership-7.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin429 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 52 | 47 | 328 |
PO File | 1 | 32 | 34 | 101 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 30.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 3.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 11 | |
▷ Static methods | 1 | 9.09% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 7 | 63.64% |
▷ Anonymous functions | 4 | 36.36% |
Constants | 7 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 7 | 100.00% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin