Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.01MB] [CPU: ▼8.53ms] Passed 4 tests
Analyzing server-side resources used by Variation Swatches for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.73 ▼6.92 |
Dashboard /wp-admin | 3.31 ▼0.04 | 46.12 ▼15.79 |
Posts /wp-admin/edit.php | 3.37 ▲0.00 | 49.53 ▲0.85 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.00 | 86.52 ▼10.09 |
Media Library /wp-admin/upload.php | 3.24 ▲0.00 | 34.18 ▼1.31 |
Server storage [IO: ▲0.81MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 89 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Variation Swatches for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲39 | 14.67 ▲0.33 | 1.72 ▼0.03 | 40.17 ▼4.44 |
Dashboard /wp-admin | 2,198 ▲24 | 5.60 ▼0.01 | 93.70 ▼7.23 | 39.53 ▼4.17 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.94 ▼0.02 | 40.42 ▲1.90 | 35.75 ▼0.78 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.35 ▲0.13 | 676.96 ▲42.72 | 59.19 ▲10.76 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.20 ▼0.04 | 101.41 ▼2.97 | 46.08 ▼0.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
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 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: variations, variation swatches for woocommerce, woocommerce variation, woocommerce variation swatches, woocommerce attributes...
product-variation-swatches-for-woocommerce/product-variation-swatches-for-woocommerce.php 92% from 13 tests
This is the main PHP file of "Variation Swatches for WooCommerce" version 2.3.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Requires at least: The required version number did not match the one declared in readme.txt ("5.3" instead of "4.0.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected10,305 lines of code in 75 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 1,417 | 983 | 4,792 |
JavaScript | 10 | 672 | 94 | 2,464 |
CSS | 4 | 313 | 153 | 2,143 |
SVG | 46 | 3 | 23 | 906 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 64.77 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 260.00 |
Average method complexity | 5.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 1 | 7.69% |
▷ Concrete classes | 12 | 92.31% |
▷ Final classes | 0 | 0.00% |
Methods | 207 | |
▷ Static methods | 24 | 11.59% |
▷ Public methods | 146 | 70.53% |
▷ Protected methods | 16 | 7.73% |
▷ Private methods | 45 | 21.74% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 8 | 72.73% |
▷ Class constants | 3 | 27.27% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/images/style-1.png | 1.12KB | 0.88KB | ▼ 20.84% |
admin/assets/images/empty-image.png | 24.75KB | 10.16KB | ▼ 58.94% |
admin/assets/images/speaker-image.png | 11.87KB | 4.54KB | ▼ 61.76% |
admin/assets/images/radio-style-2.png | 19.87KB | 4.15KB | ▼ 79.11% |
admin/assets/images/help.png | 0.30KB | 0.32KB | 0.00% |