Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼13.18MB] [CPU: ▼2,734,928.85ms] Passed 4 tests
A check of server-side resources used by Binary MLM Woocommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▼52.74 | 66.28 ▼10,939,712.47 |
Dashboard /wp-admin | 56.26 ▲52.91 | 10,948,958.18 ▲10,948,900.60 |
Posts /wp-admin/edit.php | 3.40 ▲0.00 | 51.69 ▼0.65 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.00 | 86.89 ▼9.72 |
Media Library /wp-admin/upload.php | 3.27 ▲0.00 | 42.21 ▲7.45 |
Server storage [IO: ▲3.17MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 68 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Binary MLM Woocommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.33 ▼0.02 | 1.98 ▲0.34 | 37.05 ▼4.01 |
Dashboard /wp-admin | 2,198 ▲18 | 5.62 ▼0.04 | 88.30 ▼1.39 | 39.70 ▼4.75 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.99 ▲0.02 | 39.41 ▲3.07 | 36.57 ▼2.51 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.61 ▲0.39 | 664.19 ▲34.51 | 52.65 ▼7.65 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.21 ▲0.04 | 100.75 ▼5.41 | 48.05 ▲0.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/woo-binary-mlm/includes/uninstaller.php+34
session_destroy(): Trying to destroy uninitialized session
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 fix the following
- 32× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/woo-binary-mlm/includes/admin/member-list-table.php on line 3
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/woo-binary-mlm/includes/admin/member-list-table.php on line 3
- > PHP Fatal error
Trait 'Letscms_BMW_CommonClass' not found in wp-content/plugins/woo-binary-mlm/includes/admin/bmw_member/member-dashboard.php on line 2
- > PHP Fatal error
Trait 'Letscms_BMW_CommonClass' not found in wp-content/plugins/woo-binary-mlm/includes/admin/payout/payout-report.php on line 2
- > PHP Fatal error
Trait 'Letscms_BMW_CommonClass' not found in wp-content/plugins/woo-binary-mlm/includes/catalog/mydownlines.php on line 2
- > PHP Fatal error
Trait 'Letscms_BMW_CommonClass' not found in wp-content/plugins/woo-binary-mlm/includes/catalog/join-network.php on line 2
- > PHP Fatal error
Trait 'Letscms_BMW_CommonClass' not found in wp-content/plugins/woo-binary-mlm/includes/order.php on line 2
- > PHP Fatal error
Trait 'Letscms_BMW_CommonClass' not found in wp-content/plugins/woo-binary-mlm/includes/ajax-function.php on line 2
- > PHP Fatal error
Trait 'Letscms_BMW_CommonClass' not found in wp-content/plugins/woo-binary-mlm/includes/admin/payout/payout-money.php on line 5
- > PHP Fatal error
Trait 'Letscms_BMW_CommonClass' not found in wp-content/plugins/woo-binary-mlm/includes/admin/bmw_member/member-unpaid.php on line 2
- > 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 80% 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
Attributes that need to be fixed:
- Screenshots: No descriptions were found for these screenshots #1, #10, #11, #12, #13, #14, #15, #16, #17, #18, #19, #2, #20, #21, #22, #23, #24, #25, #26, #27, #28, #3, #4, #5, #6, #7, #8, #9 in woo-binary-mlm/assets to your readme.txt
woo-binary-mlm/binarymlm-woocommerce.php 62% from 13 tests
"Binary MLM Woocommerce" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Requires PHP: Required version must be the same as the one declared in readme.txt ("5.4" instead of "7.4")
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.0" instead of "6.1")
- Domain Path: The domain path points to a folder that does not exist ("/i18n/languages/")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-binary-mlm.php" instead of "binarymlm-woocommerce.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin54,674 lines of code in 58 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 3,153 | 56 | 28,057 |
JavaScript | 10 | 5,128 | 3,786 | 21,435 |
PHP | 42 | 722 | 339 | 5,182 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please tend to the following items
- Method cyclomatic complexity should be reduced to less than 100 (currently 103)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 20.59 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 151.00 |
Average method complexity | 6.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 103.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 38 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 38 | 100.00% |
▷ Final classes | 1 | 2.63% |
Methods | 152 | |
▷ Static methods | 11 | 7.24% |
▷ Public methods | 145 | 95.39% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 4.61% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/unpaid.png | 2.14KB | 1.65KB | ▼ 22.77% |
assets/images/mlm_tree.png | 0.42KB | 0.18KB | ▼ 57.94% |
assets/images/admin/view.png | 0.94KB | 0.85KB | ▼ 9.42% |
assets/images/tree.png | 1.70KB | 1.62KB | ▼ 5.04% |