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: ▼12.15ms] Passed 4 tests
A check of 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.00 | 35.80 ▼3.64 |
Dashboard /wp-admin | 3.31 ▼0.04 | 44.62 ▼12.58 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.03 ▼12.80 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 89.14 ▼19.58 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.98 ▼1.46 |
Server storage [IO: ▲0.64MB] [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-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Variation Swatches for WooCommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.63 ▼0.67 | 1.63 ▼0.24 | 45.65 ▲2.65 |
Dashboard /wp-admin | 2,209 ▲21 | 5.79 ▼0.04 | 102.19 ▼6.40 | 40.53 ▼5.66 |
Posts /wp-admin/edit.php | 2,095 ▲3 | 2.00 ▼0.06 | 41.05 ▼1.97 | 34.80 ▼2.59 |
Add New Post /wp-admin/post-new.php | 1,520 ▲6 | 17.43 ▼0.10 | 652.65 ▼14.74 | 55.38 ▼6.11 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.23 ▲0.01 | 103.11 ▼3.93 | 42.89 ▼2.49 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/variation-swatches-for-woocommerce/templates/admin/partials/panel-video-tutorials.php
- > /wp-content/plugins/variation-swatches-for-woocommerce/templates/admin/welcome-popup.php
- 20× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/variation-swatches-for-woocommerce/templates/admin/partials/panel-footer.php:5
- > PHP Warning
Use of undefined constant WCVS_PLUGIN_URL - assumed 'WCVS_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/variation-swatches-for-woocommerce/templates/admin/partials/panel-video-tutorials.php on line 31
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/variation-swatches-for-woocommerce/templates/admin/partials/panel-sidebar.php:7
- > PHP Fatal error
Uncaught Error: Class 'VSWC_Addons_Page' not found in wp-content/plugins/variation-swatches-for-woocommerce/templates/admin/partials/modules-grid.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/variation-swatches-for-woocommerce/templates/admin/partials/panel-header.php:12
- > PHP Warning
Use of undefined constant WCVS_PLUGIN_URL - assumed 'WCVS_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/variation-swatches-for-woocommerce/templates/admin/partials/panel-video-tutorials.php on line 26
- > PHP Warning
Use of undefined constant WCVS_PLUGIN_URL - assumed 'WCVS_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/variation-swatches-for-woocommerce/templates/admin/partials/support-card.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/variation-swatches-for-woocommerce/templates/admin/partials/dashboard-header.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/variation-swatches-for-woocommerce/templates/admin/pro-feature-popup.php:8
- > PHP Warning
Use of undefined constant WCVS_PLUGIN_URL - assumed 'WCVS_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/variation-swatches-for-woocommerce/templates/admin/partials/dashboard-header.php on line 5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: variation swatches for woocommerce, woocommerce color swatches, variation swatches
variation-swatches-for-woocommerce/variation-swatches-for-woocommerce.php 85% from 13 tests
Analyzing the main PHP file in "Variation Swatches for WooCommerce" version 2.2.0
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 173 characters long)
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected9,668 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 448 | 658 | 3,714 |
CSS | 4 | 186 | 19 | 3,230 |
Sass | 4 | 429 | 0 | 2,208 |
JavaScript | 4 | 122 | 58 | 516 |
PHP code Passed 2 tests
An overview 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.50 |
Average class complexity | 39.78 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 134.00 |
Average method complexity | 3.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 1 | 11.11% |
Methods | 123 | |
▷ Static methods | 15 | 12.20% |
▷ Public methods | 91 | 73.98% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 32 | 26.02% |
Functions | 9 | |
▷ Named functions | 5 | 55.56% |
▷ Anonymous functions | 4 | 44.44% |
Constants | 6 | |
▷ Global constants | 6 | 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
4 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/wc-plugins.png | 18.43KB | 7.25KB | ▼ 60.64% |
assets/images/wslogo.png | 10.95KB | 11.86KB | 0.00% |
assets/images/wslogo-dash.png | 7.09KB | 3.30KB | ▼ 53.52% |
assets/images/support.png | 8.08KB | 3.60KB | ▼ 55.48% |