Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/binary-mlm-plan/includes/class-bmp-install.php+605
Undefined variable: b
Server metrics [RAM: ▲0.80MB] [CPU: ▲1.86ms] Passed 4 tests
This is a short check of server-side resources used by Binary MLM Plan
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.14 ▲0.68 | 44.95 ▼3.17 |
Dashboard /wp-admin | 4.15 ▲0.84 | 53.28 ▼1.50 |
Posts /wp-admin/edit.php | 4.20 ▲0.84 | 57.11 ▲6.67 |
Add New Post /wp-admin/post-new.php | 6.75 ▲0.86 | 99.89 ▲5.43 |
Media Library /wp-admin/upload.php | 4.07 ▲0.84 | 46.38 ▲8.38 |
User Reports /wp-admin/admin.php?page=bmp-user-reports | 3.98 | 40.08 |
Reset Data /wp-admin/admin.php?page=bmp-reset-data | 3.98 | 39.63 |
payout Reports /wp-admin/admin.php?page=bmp-payout-reports | 3.98 | 42.87 |
Settings /wp-admin/admin.php?page=bmp-settings | 4.08 | 43.81 |
Server storage [IO: ▲1.65MB] [DB: ▲0.03MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 67 new files
Database: 13 new tables, 10 new options
New tables |
---|
wp_bmp_referral_commission |
wp_bmp_rightposition |
wp_bmp_leftposition |
wp_bmp_country |
wp_bmp_commission |
wp_bmp_royalty |
wp_bmp_currency |
wp_bmp_users |
wp_bmp_bonus |
wp_bmp_product_price |
... |
New WordPress options |
---|
widget_recent-posts |
bmp_register_page_id |
widget_recent-comments |
widget_theysaidso_widget |
bmp_join-network_page_id |
can_compress_scripts |
db_upgraded |
bmp_bmp-acccount-detail_page_id |
theysaidso_admin_options |
bmp_downlines_page_id |
Browser metrics Passed 4 tests
An overview of browser requirements for Binary MLM Plan
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲93 | 13.67 ▼0.58 | 1.80 ▲0.14 | 40.98 ▼5.59 |
Dashboard /wp-admin | 2,227 ▲45 | 5.96 ▲0.15 | 113.58 ▲9.24 | 87.37 ▲47.70 |
Posts /wp-admin/edit.php | 2,125 ▲33 | 2.07 ▲0.02 | 40.19 ▼5.34 | 30.49 ▼8.75 |
Add New Post /wp-admin/post-new.php | 1,698 ▲184 | 22.73 ▲5.19 | 717.94 ▲26.26 | 59.36 ▲3.79 |
Media Library /wp-admin/upload.php | 1,491 ▲103 | 4.20 ▼0.06 | 97.98 ▼12.67 | 72.81 ▲22.93 |
User Reports /wp-admin/admin.php?page=bmp-user-reports | 955 | 2.23 | 25.16 | 23.85 |
Reset Data /wp-admin/admin.php?page=bmp-reset-data | 798 | 2.03 | 25.06 | 22.21 |
payout Reports /wp-admin/admin.php?page=bmp-payout-reports | 942 | 2.08 | 25.48 | 22.24 |
Settings /wp-admin/admin.php?page=bmp-settings | 961 | 2.07 | 25.56 | 27.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/binary-mlm-plan/includes/classs-bmp-uninstaller.php+36
session_destroy(): Trying to destroy uninitialized session
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
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
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/binary-mlm-plan/templates/bmp-auto-add.php
- 13× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/binary-mlm-plan/includes/admin/settings/payout/view_payout.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/binary-mlm-plan/includes/admin/settings/view/view_eligibility_settings.php:3
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/binary-mlm-plan/includes/admin/settings/view/view_product_price_settings.php:4
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/binary-mlm-plan/includes/admin/settings/view/view_first_user_settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/binary-mlm-plan/includes/admin/settings/view/view_email_settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/binary-mlm-plan/includes/admin/settings/view/view_payout_settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/binary-mlm-plan/includes/admin/settings/payout/view_distribute_bonus_commission_message.php:4
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/binary-mlm-plan/includes/admin/settings/view/view_epin_settings.php:4
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/binary-mlm-plan/includes/admin/settings/view/view_royalty_settings.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/binary-mlm-plan/includes/admin/settings/payout/view_distribute_commission_message.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 76% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
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, #3, #4, #5, #6, #7, #8, #9 in binary-mlm-plan/assets to your readme.txt
binary-mlm-plan/bmp.php 54% from 13 tests
The primary PHP file in "Binary MLM Plan" version 1.1.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 173 characters long)
- Requires PHP: Required version does not match the one declared in readme.txt ("5.6" instead of "7.4")
- Requires at least: Required version does not match the one declared in readme.txt ("5.0" instead of "6.1")
- 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 ("binary-mlm-plan.php" instead of "bmp.php")
- Domain Path: The domain path is invalid: folder "/i18n/languages/" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin21,959 lines of code in 54 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 1,019 | 91 | 11,686 |
PHP | 44 | 1,239 | 441 | 6,047 |
JavaScript | 5 | 348 | 600 | 3,938 |
SVG | 1 | 0 | 0 | 288 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 17.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 123.00 |
Average method complexity | 3.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 70.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 1 | 5.88% |
▷ Concrete classes | 16 | 94.12% |
▷ Final classes | 1 | 6.25% |
Methods | 103 | |
▷ Static methods | 25 | 24.27% |
▷ Public methods | 96 | 93.20% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 6.80% |
Functions | 107 | |
▷ Named functions | 107 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
image/mlm_tree.png | 0.42KB | 0.18KB | ▼ 57.94% |
assets/images/logo_white.png | 2.40KB | 2.45KB | 0.00% |
image/paid.png | 1.70KB | 1.62KB | ▼ 5.04% |
assets/images/logo-white.png | 2.57KB | 1.18KB | ▼ 53.97% |
image/unpaid.png | 2.14KB | 1.65KB | ▼ 22.77% |