Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼2.53ms] Passed 4 tests
This is a short check of server-side resources used by Variation Swatches for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 39.98 ▼3.87 |
Dashboard /wp-admin | 3.35 ▲0.05 | 50.66 ▲0.50 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 47.69 ▼3.13 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 92.48 ▼3.61 |
Media Library /wp-admin/upload.php | 3.28 ▲0.04 | 37.41 ▲4.67 |
Server storage [IO: ▲0.70MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 49 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Variation Swatches for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,798 ▲11 | 14.67 ▲0.43 | 1.80 ▼0.08 | 41.04 ▼10.09 |
Dashboard /wp-admin | 2,206 ▲32 | 5.56 ▼0.08 | 93.76 ▼10.51 | 40.34 ▼7.15 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 1.95 ▼0.00 | 40.41 ▼2.07 | 38.85 ▲4.04 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 23.36 ▲0.34 | 677.86 ▼3.92 | 59.31 ▲6.72 |
Media Library /wp-admin/upload.php | 1,411 ▲14 | 4.16 ▼0.10 | 100.17 ▲1.05 | 45.31 ▲3.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
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 no errors were found, this is by no means 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 fix the following items
- 12× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/woo-variation-swatches/includes/html-settings-group.php
- > /wp-content/plugins/woo-variation-swatches/includes/class-woo-variation-swatches-export-import.php
- > /wp-content/plugins/woo-variation-swatches/includes/getwooplugins/html/dialog.php
- > /wp-content/plugins/woo-variation-swatches/uninstall.php
- > /wp-content/plugins/woo-variation-swatches/includes/html-product-settings-panel.php
- > /wp-content/plugins/woo-variation-swatches/includes/getwooplugins/html/settings-page.php
- > /wp-content/plugins/woo-variation-swatches/includes/html-settings-tutorial.php
- > /wp-content/plugins/woo-variation-swatches/includes/html-settings-sidebar.php
- > /wp-content/plugins/woo-variation-swatches/includes/class-woo-variation-swatches-term-meta.php
- > /wp-content/plugins/woo-variation-swatches/includes/themes-support.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Tags: You are using too many tags: 13 tag instead of maximum 10
woo-variation-swatches/woo-variation-swatches.php Passed 13 tests
The primary PHP file in "Variation Swatches for WooCommerce" version 2.0.29 is used by WordPress to initiate all plugin functionality
117 characters long description:
Beautiful colors, images and buttons variation swatches for woocommerce product attributes. Requires WooCommerce 5.6+
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
Everything looks great! No dangerous files found in this plugin10,064 lines of code in 45 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 1,483 | 449 | 5,143 |
JavaScript | 11 | 596 | 713 | 2,903 |
CSS | 5 | 198 | 97 | 2,018 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 33.11 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 157.00 |
Average method complexity | 2.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 92.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 2 | 11.11% |
▷ Concrete classes | 16 | 88.89% |
▷ Final classes | 0 | 0.00% |
Methods | 344 | |
▷ Static methods | 36 | 10.47% |
▷ Public methods | 296 | 86.05% |
▷ Protected methods | 43 | 12.50% |
▷ Private methods | 5 | 1.45% |
Functions | 11 | |
▷ Named functions | 9 | 81.82% |
▷ Anonymous functions | 2 | 18.18% |
Constants | 4 | |
▷ Global constants | 4 | 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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/placeholder.png | 0.38KB | 0.43KB | 0.00% |