Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.52MB] [CPU: ▼5.62ms] Passed 4 tests
Analyzing server-side resources used by Multilevel Referral Affiliate Plugin for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.05 ▲0.59 | 36.91 ▼7.24 |
Dashboard /wp-admin | 3.89 ▲0.54 | 45.97 ▼11.32 |
Posts /wp-admin/edit.php | 3.94 ▲0.58 | 49.51 ▲5.45 |
Add New Post /wp-admin/post-new.php | 6.41 ▲0.52 | 83.21 ▼9.38 |
Media Library /wp-admin/upload.php | 3.65 ▲0.42 | 38.67 ▲5.62 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 4.01 | 41.62 |
Server storage [IO: ▲8.07MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 319 new files
Database: no new tables, 9 new options
New WordPress options |
---|
fs_active_plugins |
theysaidso_admin_options |
fs_accounts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
fs_debug_mode |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Multilevel Referral Affiliate Plugin for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,866 ▲120 | 14.35 ▲0.00 | 1.62 ▼0.31 | 27.78 ▼20.57 |
Dashboard /wp-admin | 2,272 ▲98 | 5.57 ▲0.06 | 80.50 ▼34.09 | 44.60 ▲1.64 |
Posts /wp-admin/edit.php | 2,178 ▲78 | 2.03 ▲0.08 | 39.28 ▲1.69 | 39.48 ▲5.71 |
Add New Post /wp-admin/post-new.php | 1,590 ▲64 | 18.16 ▼5.48 | 585.39 ▼75.74 | 65.83 ▲0.91 |
Media Library /wp-admin/upload.php | 1,474 ▲74 | 4.25 ▲0.09 | 97.95 ▼3.25 | 45.37 ▼0.64 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,061 | 1.69 | 25.46 | 27.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/multilevel-referral-plugin-for-woocommerce/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- Zombie WordPress options were found after uninstall: 9 options
- theysaidso_admin_options
- fs_debug_mode
- widget_recent-comments
- fs_active_plugins
- can_compress_scripts
- widget_recent-posts
- fs_accounts
- db_upgraded
- widget_theysaidso_widget
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 everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/multilevel-referral-plugin-for-woocommerce/woocommerce-multilevel-commision.php
- > /wp-content/plugins/multilevel-referral-plugin-for-woocommerce/views/admin/new_features.php
- 46× PHP files trigger server errors when accessed directly (only 10 are shown):
- > 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/multilevel-referral-plugin-for-woocommerce/classes/admin/table-orderwise_credits.php on line 15
- > PHP Warning
simplexml_load_file(): I/O warning : failed to load external entity "WMC_DIR/addons.xml" in wp-content/plugins/multilevel-referral-plugin-for-woocommerce/views/admin/addons.php on line 1
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/multilevel-referral-plugin-for-woocommerce/classes/admin/table-withdraw_history.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/multilevel-referral-plugin-for-woocommerce/views/admin/withdraw_history.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/multilevel-referral-plugin-for-woocommerce/views/admin/email_templates.php:3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/multilevel-referral-plugin-for-woocommerce/classes/admin/table-users.php on line 7
- > PHP Notice
Undefined variable: referral_users in wp-content/plugins/multilevel-referral-plugin-for-woocommerce/views/admin/referral_list_popup.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'WooCommerce_Multilevel_Referal' not found in wp-content/plugins/multilevel-referral-plugin-for-woocommerce/classes/referral-users.php:8
- > 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/multilevel-referral-plugin-for-woocommerce/classes/admin/table-withdraw_history.php on line 7
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/multilevel-referral-plugin-for-woocommerce/classes/admin/table-orderwise_credits.php on line 15
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
multilevel-referral-plugin-for-woocommerce/woocommerce-multilevel-commision.php 77% from 13 tests
The primary PHP file in "Multilevel Referral Affiliate Plugin for WooCommerce" version 2.23 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.0" instead of "3.0.0")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("multilevel-referral-plugin-for-woocommerce.php" instead of "woocommerce-multilevel-commision.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected58,281 lines of code in 205 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 163 | 10,115 | 18,342 | 39,907 |
CSS | 17 | 1,394 | 138 | 6,769 |
PO File | 9 | 2,678 | 3,391 | 5,996 |
SVG | 5 | 0 | 0 | 4,310 |
JavaScript | 9 | 151 | 137 | 1,228 |
SQL | 1 | 7 | 0 | 48 |
XML | 1 | 0 | 0 | 23 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
These items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 81.35 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 66 | |
▷ Abstract classes | 3 | 4.55% |
▷ Concrete classes | 63 | 95.45% |
▷ Final classes | 0 | 0.00% |
Methods | 1,533 | |
▷ Static methods | 234 | 15.26% |
▷ Public methods | 1,135 | 74.04% |
▷ Protected methods | 24 | 1.57% |
▷ Private methods | 374 | 24.40% |
Functions | 112 | |
▷ Named functions | 107 | 95.54% |
▷ Anonymous functions | 5 | 4.46% |
Constants | 154 | |
▷ Global constants | 104 | 67.53% |
▷ Class constants | 50 | 32.47% |
▷ Public constants | 50 | 100.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
35 compressed PNG files occupy 0.54MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/orgBanners/Promotional Banner - 05.png | 32.80KB | 32.14KB | ▼ 2.01% |
images/banners/Promotional Banner - 07.png | 16.49KB | 16.09KB | ▼ 2.42% |
images/whatsapp.png | 1.38KB | 1.17KB | ▼ 15.13% |
images/banners/Promotional Banner - 03.png | 20.17KB | 18.99KB | ▼ 5.83% |
images/banners/Promotional Banner - 08.png | 16.56KB | 15.71KB | ▼ 5.11% |