Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.42MB] [CPU: ▼1.89ms] Passed 4 tests
A check of server-side resources used by Affiliate Links Expert
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.89 ▲0.43 | 38.83 ▼3.14 |
Dashboard /wp-admin | 3.74 ▲0.44 | 47.69 ▼6.74 |
Posts /wp-admin/edit.php | 3.79 ▲0.44 | 52.40 ▲5.06 |
Add New Post /wp-admin/post-new.php | 6.28 ▲0.39 | 90.17 ▼2.73 |
Media Library /wp-admin/upload.php | 3.66 ▲0.43 | 42.04 ▲7.29 |
Settings /wp-admin/options-general.php?page=mxalfwp-affiliate-setting | 3.57 | 35.59 |
Link Name /wp-admin/admin.php?page=mxalfwp-visited-page-details | 3.57 | 35.55 |
Affiliate Links /wp-admin/admin.php?page=mxalfwp-affiliate-links | 3.57 | 38.27 |
Link Name /wp-admin/admin.php?page=mxalfwp-manage-partner | 3.57 | 34.83 |
Link Name /wp-admin/admin.php?page=mxalfwp-affiliate-links-analytics | 3.57 | 32.66 |
Settings /wp-admin/admin.php?page=mxalfwp-affiliate-setting | 3.57 | 33.32 |
Server storage [IO: ▲1.65MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 59 new files
Database: 3 new tables, 8 new options
New tables |
---|
wp_mxalfwp_affiliate_orders |
wp_mxalfwp_affiliate_users |
wp_mxalfwp_affiliate_links |
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
mxalfwp_default_currency_sign |
widget_theysaidso_widget |
mxalfwp_default_percent |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Affiliate Links Expert
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,902 ▲167 | 13.96 ▼0.40 | 5.03 ▲2.91 | 39.45 ▼5.97 |
Dashboard /wp-admin | 2,259 ▲68 | 5.23 ▲0.35 | 104.48 ▲0.46 | 39.80 ▼6.20 |
Posts /wp-admin/edit.php | 2,145 ▲56 | 2.41 ▲0.40 | 42.36 ▲4.91 | 35.34 ▲3.58 |
Add New Post /wp-admin/post-new.php | 1,554 ▲21 | 23.75 ▲0.67 | 667.11 ▲35.24 | 36.29 ▼15.42 |
Media Library /wp-admin/upload.php | 1,444 ▲56 | 4.53 ▲0.31 | 98.41 ▲0.41 | 42.70 ▲0.32 |
Settings /wp-admin/options-general.php?page=mxalfwp-affiliate-setting | 914 | 2.66 | 42.81 | 36.60 |
Link Name /wp-admin/admin.php?page=mxalfwp-visited-page-details | 1,738 | 2.92 | 32.62 | 36.75 |
Affiliate Links /wp-admin/admin.php?page=mxalfwp-affiliate-links | 1,045 | 2.20 | 26.50 | 32.01 |
Link Name /wp-admin/admin.php?page=mxalfwp-manage-partner | 1,738 | 2.96 | 29.29 | 36.89 |
Link Name /wp-admin/admin.php?page=mxalfwp-affiliate-links-analytics | 1,738 | 2.94 | 31.40 | 37.13 |
Settings /wp-admin/admin.php?page=mxalfwp-affiliate-setting | 911 | 2.65 | 39.95 | 35.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 3 tables in the database
- wp_mxalfwp_affiliate_links
- wp_mxalfwp_affiliate_users
- wp_mxalfwp_affiliate_orders
- The uninstall procedure has failed, leaving 8 options in the database
- can_compress_scripts
- mxalfwp_default_percent
- widget_recent-comments
- mxalfwp_default_currency_sign
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% 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 50% 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
- 11× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/affiliate-links-woocommerce/includes/admin/views/manage-partner.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function maybe_unserialize() in wp-content/plugins/affiliate-links-woocommerce/includes/admin/views/links-analytics.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/affiliate-links-woocommerce/includes/admin/views/visited-page-details.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/affiliate-links-woocommerce/includes/admin/views/affiliate-links.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/affiliate-links-woocommerce/includes/admin/views/create-table-item.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/affiliate-links-woocommerce/includes/admin/views/sub-page.php:7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/affiliate-links-woocommerce/includes/admin/views/manage-partner.php on line 4
- > PHP Notice
Undefined variable: data in wp-content/plugins/affiliate-links-woocommerce/includes/admin/views/manage-partner.php on line 4
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/affiliate-links-woocommerce/includes/admin/views/manage-partner.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/affiliate-links-woocommerce/includes/frontend/pages/cabinet.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
9 plugin tags: affiliate marketing, social media sharing, click tracking, visit tracking, affiliate program management...
affiliate-links-woocommerce/affiliate-links-for-woocommerce-plugin.php 85% from 13 tests
"Affiliate Links Expert" version 2.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("affiliate-links-woocommerce.php" instead of "affiliate-links-for-woocommerce-plugin.php")
- Description: Keep the plugin description shorter than 140 characters (currently 209 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin17,701 lines of code in 51 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 435 | 1,680 | 11,095 |
PHP | 38 | 1,429 | 657 | 3,125 |
CSS | 5 | 21 | 19 | 2,763 |
SVG | 1 | 0 | 0 | 685 |
PO File | 1 | 8 | 8 | 33 |
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.26 |
Average class complexity | 8.58 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 2.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 1 | 3.85% |
▷ Concrete classes | 25 | 96.15% |
▷ Final classes | 1 | 4.00% |
Methods | 131 | |
▷ Static methods | 39 | 29.77% |
▷ Public methods | 129 | 98.47% |
▷ Protected methods | 2 | 1.53% |
▷ Private methods | 0 | 0.00% |
Functions | 26 | |
▷ Named functions | 24 | 92.31% |
▷ Anonymous functions | 2 | 7.69% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin