Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- The plugin cannot be installed
- > Notice in wp-content/plugins/affiliate-mlm-party-plan/includes/sb.php+2462
Undefined index: choose_affiliate_in_checkout
Server metrics [RAM: ▼1.11MB] [CPU: ▼48.86ms] Passed 4 tests
Analyzing server-side resources used by AFFILIATE MLM / PARTY PLAN
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▼0.59 | 9.83 ▼35.49 |
Dashboard /wp-admin | 2.89 ▼0.41 | 11.77 ▼37.82 |
Posts /wp-admin/edit.php | 2.89 ▼0.46 | 9.74 ▼33.36 |
Add New Post /wp-admin/post-new.php | 2.89 ▼2.99 | 9.88 ▼88.78 |
Media Library /wp-admin/upload.php | 2.89 ▼0.34 | 10.92 ▼24.06 |
Affiliate Users /wp-admin/admin.php?page=affiliate-mlm-party-plan/bv-affiliate-users.php | 2.89 | 12.26 |
Integrations /wp-admin/admin.php?page=sb_integrations_list | 2.89 | 10.06 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 58 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_socialbug_affiliates |
wp_sb_integrations |
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
sb_version |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
AFFILIATE MLM / PARTY PLAN: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,848 ▲77 | 14.80 ▲0.43 | 2.08 ▼0.04 | 45.14 ▲2.29 |
Dashboard /wp-admin | 2,226 ▲38 | 5.79 ▼0.02 | 104.47 ▼3.96 | 42.44 ▲5.36 |
Posts /wp-admin/edit.php | 2,109 ▲20 | 2.02 ▼0.03 | 34.62 ▼3.92 | 37.83 ▲5.26 |
Add New Post /wp-admin/post-new.php | 1,551 ▲18 | 23.07 ▼0.39 | 629.68 ▲39.42 | 52.38 ▲4.30 |
Media Library /wp-admin/upload.php | 1,405 ▲14 | 4.19 ▲0.03 | 94.34 ▼9.79 | 41.30 ▼2.28 |
Affiliate Users /wp-admin/admin.php?page=affiliate-mlm-party-plan/bv-affiliate-users.php | 842 | 2.11 | 29.07 | 28.25 |
Integrations /wp-admin/admin.php?page=sb_integrations_list | 1,029 | 2.05 | 25.78 | 26.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/affiliate-mlm-party-plan/includes/sb.php+2462
Undefined index: choose_affiliate_in_checkout
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wp_sb_integrations
- wp_socialbug_affiliates
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- sb_version
- widget_recent-posts
- db_upgraded
- widget_recent-comments
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
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sb_integrations_list
- > Notice in wp-content/plugins/affiliate-mlm-party-plan/includes/sb.php+2462
Undefined index: choose_affiliate_in_checkout
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
- 32× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Unisho\\Sb\\DataStruct' not found in wp-content/plugins/affiliate-mlm-party-plan/classes/DiscountResultData.php:8
- > PHP Warning
Use of undefined constant AFFILIATE_USERS_DIR - assumed 'AFFILIATE_USERS_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/affiliate-mlm-party-plan/includes/sb.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Unisho\\Sb\\DataStruct' not found in wp-content/plugins/affiliate-mlm-party-plan/classes/AddressData.php:5
- > PHP Fatal error
Uncaught Error: Class 'Unisho\\Sb\\DataStruct' not found in wp-content/plugins/affiliate-mlm-party-plan/classes/CustomerData.php:5
- > PHP Fatal error
Uncaught Error: Class 'Unisho\\Sb\\DataStruct' not found in wp-content/plugins/affiliate-mlm-party-plan/classes/ProductAttributeData.php:5
- > PHP Fatal error
Uncaught Error: Class 'Unisho\\Sb\\DataStruct' not found in wp-content/plugins/affiliate-mlm-party-plan/classes/ShippingOptionData.php:8
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/affiliate-mlm-party-plan/includes/usersList.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'Unisho\\Sb\\DataStruct' not found in wp-content/plugins/affiliate-mlm-party-plan/classes/ShipmentData.php:8
- > PHP Warning
require_once(AFFILIATE_USERS_DIRincludes/socialbug-api.php): failed to open stream: No such file or directory in wp-content/plugins/affiliate-mlm-party-plan/includes/sb.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Unisho\\Sb\\DataStruct' not found in wp-content/plugins/affiliate-mlm-party-plan/classes/ProductVariantImage.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 17 tag instead of maximum 10
- Screenshots: Please add an image for screenshot #6 (Email Templates)
affiliate-mlm-party-plan/bv-affiliate-users.php 92% from 13 tests
"AFFILIATE MLM / PARTY PLAN" version 2.6.7'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:
- Main file name: The principal plugin file should be the same as the plugin slug ("affiliate-mlm-party-plan.php" instead of "bv-affiliate-users.php")
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
Good job! No executable or dangerous file extensions detected4,230 lines of code in 55 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 50 | 806 | 1,797 | 4,225 |
JavaScript | 4 | 0 | 0 | 4 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 4.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 1.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 20 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 26 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 610 | |
▷ Static methods | 1 | 0.16% |
▷ Public methods | 605 | 99.18% |
▷ Protected methods | 5 | 0.82% |
▷ Private methods | 0 | 0.00% |
Functions | 68 | |
▷ Named functions | 67 | 98.53% |
▷ Anonymous functions | 1 | 1.47% |
Constants | 5 | |
▷ Global constants | 3 | 60.00% |
▷ Class constants | 2 | 40.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected