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
Installer ran successfully
Server metrics [RAM: ▲0.32MB] [CPU: ▼4.89ms] Passed 4 tests
Analyzing server-side resources used by Variation Swatches for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.28 | 39.89 ▼1.92 |
Dashboard /wp-admin | 3.63 ▲0.33 | 47.00 ▼3.03 |
Posts /wp-admin/edit.php | 3.74 ▲0.39 | 44.83 ▼0.96 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.34 | 84.06 ▼13.66 |
Media Library /wp-admin/upload.php | 3.55 ▲0.33 | 38.42 ▲2.65 |
Server storage [IO: ▲1.22MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Variation Swatches for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.25 ▼0.02 | 1.62 ▼0.20 | 40.75 ▼0.19 |
Dashboard /wp-admin | 2,195 ▲14 | 5.63 ▼0.08 | 82.24 ▼17.31 | 39.86 ▲3.89 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.16 ▲0.19 | 33.59 ▼4.04 | 34.23 ▼0.87 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.22 ▲0.27 | 616.74 ▲17.09 | 63.91 ▲6.46 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.38 ▲0.21 | 95.96 ▼9.05 | 43.68 ▲3.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/aco-variation-swatches-for-woocommerce/includes/views/admin-attributes.php
- > /wp-content/plugins/aco-variation-swatches-for-woocommerce/includes/views/admin-settings.php
- > /wp-content/plugins/aco-variation-swatches-for-woocommerce/includes/views/admin-product.php
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/aco-variation-swatches-for-woocommerce/start.php:22
- > PHP Warning
Use of undefined constant ACOVSW_TOKEN - assumed 'ACOVSW_TOKEN' (this will throw an Error in a future version of PHP) in wp-content/plugins/aco-variation-swatches-for-woocommerce/includes/views/admin-settings.php on line 1
- > PHP Warning
Use of undefined constant ACOVSW_TOKEN - assumed 'ACOVSW_TOKEN' (this will throw an Error in a future version of PHP) in wp-content/plugins/aco-variation-swatches-for-woocommerce/includes/views/admin-attributes.php on line 1
- > PHP Warning
Use of undefined constant ACOVSW_TOKEN - assumed 'ACOVSW_TOKEN' (this will throw an Error in a future version of PHP) in wp-content/plugins/aco-variation-swatches-for-woocommerce/includes/views/admin-product.php on line 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 94% 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 require attention:
- Donate link: Invalid URI found ("")
aco-variation-swatches-for-woocommerce/start.php 92% from 13 tests
"Variation Swatches for WooCommerce" version 1.2.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("aco-variation-swatches-for-woocommerce.php" instead of "start.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin2,074 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 322 | 278 | 1,346 |
PO File | 2 | 144 | 144 | 298 |
CSS | 2 | 9 | 10 | 268 |
JavaScript | 3 | 20 | 7 | 149 |
SVG | 1 | 0 | 0 | 13 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Please tend to the following items
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 195)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.72 |
Average class complexity | 124.75 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 237.00 |
Average method complexity | 11.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 195.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 50 | |
▷ Static methods | 4 | 8.00% |
▷ Public methods | 49 | 98.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.00% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.12MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/delete.png | 0.65KB | 0.74KB | 0.00% |
assets/images/edit.png | 0.61KB | 0.61KB | 0.00% |
assets/images/icon.png | 1.15KB | 0.47KB | ▼ 59.06% |
assets/images/acovsw-icons.png | 17.06KB | 5.99KB | ▼ 64.87% |
assets/images/ad_bg.png | 95.04KB | 103.00KB | 0.00% |