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.13MB] [CPU: ▼3.46ms] Passed 4 tests
Server-side resources used by Affilia Lite - Affiliate Program With MLM
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 40.95 ▼2.95 |
Dashboard /wp-admin | 3.38 ▲0.08 | 51.62 ▲3.69 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 53.30 ▲3.90 |
Add New Post /wp-admin/post-new.php | 5.19 ▼0.69 | 68.50 ▼17.39 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 35.80 ▲2.82 |
Server storage [IO: ▲2.77MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 101 new files
Database: 2 new tables, 10 new options
New tables |
---|
wp_rtwwwap_mlm |
wp_rtwwwap_referrals |
New WordPress options |
---|
widget_theysaidso_widget |
customize_email |
widget_recent-comments |
rtwwwap_affiliate_page_id |
rtwalwm_db_version |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
rtwalwm_affiliate_lite |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Affilia Lite - Affiliate Program With MLM
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,100 ▲338 | 16.11 ▲1.78 | 19.45 ▲17.75 | 36.23 ▼8.88 |
Dashboard /wp-admin | 2,346 ▲169 | 6.11 ▲0.53 | 115.89 ▲14.30 | 86.11 ▲42.10 |
Posts /wp-admin/edit.php | 2,268 ▲168 | 3.35 ▲1.33 | 52.76 ▲15.20 | 68.72 ▲33.18 |
Add New Post /wp-admin/post-new.php | 6,242 ▲4,716 | 25.87 ▲2.82 | 892.65 ▲264.38 | 39.09 ▼4.92 |
Media Library /wp-admin/upload.php | 1,405 ▲5 | 4.05 ▼0.10 | 80.92 ▼23.09 | 86.40 ▲42.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure failed, leaving 2 tables in the database
- wp_rtwwwap_mlm
- wp_rtwwwap_referrals
- The uninstall procedure has failed, leaving 10 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- customize_email
- rtwwwap_affiliate_page_id
- widget_recent-posts
- theysaidso_admin_options
- rtwalwm_affiliate_lite
- db_upgraded
- rtwalwm_db_version
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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
Please fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/affiliaa-affiliate-program-with-mlm/public/partials/rtwalwm-wp-wc-affiliate-program-public-display.php
- 17× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/affiliaa-affiliate-program-with-mlm/admin/partials/rtwalwm_tabs/rtwalwm_customize_email.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/affiliaa-affiliate-program-with-mlm/admin/partials/rtwalwm_tabs/rtwalwm_mlm.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/affiliaa-affiliate-program-with-mlm/admin/partials/rtwalwm_tabs/rtwalwm_levels_add_edit.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/affiliaa-affiliate-program-with-mlm/admin/partials/rtwalwm_tabs/rtwalwm_extra_features.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/affiliaa-affiliate-program-with-mlm/admin/partials/rtwalwm_tabs/rtwalwm_affiliates.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/affiliaa-affiliate-program-with-mlm/admin/partials/rtwalwm_tabs/rtwalwm_custom_banner.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/affiliaa-affiliate-program-with-mlm/admin/partials/rtwalwm_tabs/rtwalwm_dashboard.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/affiliaa-affiliate-program-with-mlm/admin/partials/rtwalwm_tabs/rtwalwm_addons.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/affiliaa-affiliate-program-with-mlm/admin/partials/rtwalwm-wp-wc-affiliate-program-admin-display.php:92
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/affiliaa-affiliate-program-with-mlm/admin/partials/rtwalwm_tabs/rtwalwm_referrals.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 18 tag instead of maximum 10
affiliaa-affiliate-program-with-mlm/wp-wc-affiliate-program.php 77% from 13 tests
The entry point to "Affilia Lite - Affiliate Program With MLM" version 2.5.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("3.0.1" instead of "4.2.0")
- 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: The principal plugin file should be the same as the plugin slug ("affiliaa-affiliate-program-with-mlm.php" instead of "wp-wc-affiliate-program.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected21,076 lines of code in 50 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 12 | 2,617 | 7,628 | 10,848 |
CSS | 10 | 270 | 298 | 5,135 |
PHP | 28 | 866 | 641 | 5,093 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 42.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 137.00 |
Average method complexity | 4.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 67 | |
▷ Static methods | 1 | 1.49% |
▷ Public methods | 62 | 92.54% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 7.46% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
32 PNG files occupy 0.20MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/affiliate-menu-icon.png | 4.14KB | 0.84KB | ▼ 79.75% |
assets/images/extra_feature.png | 4.09KB | 1.40KB | ▼ 65.74% |
assets/images/affiliate.png | 6.38KB | 2.08KB | ▼ 67.44% |
assets/Datatables/images/sort_asc_disabled.png | 0.14KB | 0.25KB | 0.00% |
assets/images/email52.png | 0.55KB | 0.61KB | 0.00% |