Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.89ms] Passed 4 tests
A check of server-side resources used by AMB Variable Affiliate Products for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 43.03 ▼5.00 |
Dashboard /wp-admin | 3.31 ▲0.00 | 49.96 ▼0.90 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.26 ▼4.24 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 99.34 ▼1.43 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.93 ▲0.89 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for AMB Variable Affiliate Products for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲39 | 14.29 ▼0.33 | 1.75 ▼0.78 | 44.94 ▼6.35 |
Dashboard /wp-admin | 2,195 ▲15 | 5.56 ▼0.09 | 85.49 ▼11.35 | 44.69 ▲0.70 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.95 ▼0.07 | 39.91 ▲1.66 | 37.41 ▲3.01 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 18.36 ▼4.62 | 669.34 ▲22.56 | 71.88 ▲9.49 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.15 ▼0.02 | 98.27 ▼12.35 | 42.93 ▼5.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/amb-variable-affiliate-products-for-woocommerce/amb-wooco-variable-affiliate-products.php
- > /wp-content/plugins/amb-variable-affiliate-products-for-woocommerce/includes/amb-wcvap-functions.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: external variable products, variable affiliate products, products, variable products, affiliate products...
amb-variable-affiliate-products-for-woocommerce/amb-wooco-variable-affiliate-products.php 77% from 13 tests
This is the main PHP file of "AMB Variable Affiliate Products for WooCommerce" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("4.9.8" instead of "3.5.0")
- Description: Please don't use more than 140 characters for the plugin description (currently 146 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("amb-variable-affiliate-products-for-woocommerce.php" instead of "amb-wooco-variable-affiliate-products.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin364 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 70 | 33 | 316 |
JavaScript | 1 | 2 | 0 | 36 |
CSS | 1 | 2 | 0 | 9 |
Markdown | 1 | 2 | 0 | 3 |
PHP code Passed 2 tests
A short 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.46 |
Average class complexity | 28.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 4.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 1 | 6.25% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected