Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.32ms] Passed 4 tests
This is a short check of server-side resources used by SySwatches Variation Swatches For WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 37.81 ▼4.98 |
Dashboard /wp-admin | 3.32 ▲0.02 | 47.51 ▼3.48 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.33 ▼0.94 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 77.89 ▼21.59 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.80 ▼3.23 |
Server storage [IO: ▲0.89MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 73 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for SySwatches Variation Swatches For WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲84 | 13.30 ▼0.95 | 2.09 ▲0.23 | 44.93 ▼1.07 |
Dashboard /wp-admin | 2,211 ▲23 | 4.83 ▼1.03 | 113.04 ▲11.23 | 43.57 ▼0.43 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.02 ▼0.02 | 37.51 ▼0.93 | 32.77 ▲1.45 |
Add New Post /wp-admin/post-new.php | 1,519 ▼15 | 17.76 ▼5.48 | 645.76 ▼17.59 | 52.43 ▼8.74 |
Media Library /wp-admin/upload.php | 1,393 ▲5 | 4.31 ▲0.10 | 96.38 ▼5.96 | 43.15 ▼1.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% 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 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
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/color-image-variation-swatches-for-woocommerce/includes/forms/accordion/wcva_sub_accordion_header.php
- 26× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/color-image-variation-swatches-for-woocommerce/includes/admin/forms/product_swatches_form.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/color-image-variation-swatches-for-woocommerce/color-image-variation-swatches-for-woocommerce.php:21
- > PHP Notice
Undefined variable: woocommerce in wp-content/plugins/color-image-variation-swatches-for-woocommerce/includes/forms/wcva_accordion_header.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/color-image-variation-swatches-for-woocommerce/includes/forms/accordion/wcva_display_type_dropdown.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/color-image-variation-swatches-for-woocommerce/includes/admin/forms/global_swatches_form.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wc_get_attribute_taxonomies() in wp-content/plugins/color-image-variation-swatches-for-woocommerce/includes/admin/forms/global_values_swatches_form.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wc_get_product() in wp-content/plugins/color-image-variation-swatches-for-woocommerce/includes/forms/wcva_variation_select_tab_content.php:5
- > PHP Notice
Undefined variable: key in wp-content/plugins/color-image-variation-swatches-for-woocommerce/includes/forms/accordion/wcva_upper_meta_div.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/color-image-variation-swatches-for-woocommerce/includes/forms/wcva_upper_div_form.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/color-image-variation-swatches-for-woocommerce/includes/class_override_woocommerce_variable_tamplate.php:8
- > PHP Fatal error
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 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (Color Image Variation Swatches For WooCommerce each product), #2 (Color Image Variation Swatches For WooCommerce each product), #3 (Color Image Variation Swatches For WooCommerce sidebar widget), #4 (Color Image Variation Swatches For WooCommerce settings page), #5 (Color Image Variation Swatches For WooCommerce product frontend view), #6 (Color Image Variation Swatches For WooCommerce shop swatches)
- Tags: You are using too many tags: 12 tag instead of maximum 10
color-image-variation-swatches-for-woocommerce/color-image-variation-swatches-for-woocommerce.php 77% from 13 tests
The main PHP file in "SySwatches Variation Swatches For WooCommerce" ver. 1.2.3 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 164 characters long)
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Requires at least: The required version number did not match the one declared in readme.txt ("4.0" instead of "3.3")
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
No dangerous file extensions were detected9,086 lines of code in 64 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 2,057 | 925 | 4,179 |
JavaScript | 21 | 1,413 | 546 | 3,920 |
CSS | 16 | 346 | 61 | 987 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 82.50 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 221.00 |
Average method complexity | 9.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 101 | |
▷ Static methods | 9 | 8.91% |
▷ Public methods | 94 | 93.07% |
▷ Protected methods | 7 | 6.93% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 16 | 84.21% |
▷ Anonymous functions | 3 | 15.79% |
Constants | 17 | |
▷ Global constants | 8 | 47.06% |
▷ Class constants | 9 | 52.94% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/help.png | 0.37KB | 0.45KB | 0.00% |
assets/images/icon.png | 0.75KB | 0.92KB | 0.00% |
assets/images/left-arrow.png | 0.33KB | 0.53KB | 0.00% |
assets/css/images/ui-icons_ffffff_256x240.png | 3.19KB | 3.49KB | 0.00% |
assets/images/placeholder.png | 2.75KB | 2.92KB | 0.00% |