Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.00MB] [CPU: ▼8.09ms] Passed 4 tests
A check of server-side resources used by Variation Swatches for WooCommerce – Color & Image Swatches
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 34.60 ▼8.90 |
Dashboard /wp-admin | 3.32 ▼0.03 | 44.10 ▼15.30 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 43.94 ▼0.78 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 89.45 ▼4.40 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 29.80 ▼3.74 |
Server storage [IO: ▲3.76MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 422 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Variation Swatches for WooCommerce – Color & Image Swatches
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.41 ▼0.01 | 1.67 ▲0.01 | 38.86 ▼5.14 |
Dashboard /wp-admin | 2,195 ▲18 | 5.55 ▼0.07 | 84.35 ▼16.77 | 35.91 ▼5.75 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.04 ▲0.06 | 36.55 ▲0.12 | 32.66 ▲1.27 |
Add New Post /wp-admin/post-new.php | 1,526 ▼10 | 23.22 ▲5.01 | 631.58 ▼8.34 | 58.73 ▼7.18 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.22 ▲0.03 | 96.43 ▼2.14 | 43.24 ▲0.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 39× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Select' not found in wp-content/plugins/color-or-image-variation-swatches-for-woocommerce/vendor/cmb2/cmb2/includes/types/CMB2_Type_Select_Timezone.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/color-or-image-variation-swatches-for-woocommerce/vendor/cmb2/cmb2/includes/types/CMB2_Type_Taxonomy_Radio.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/color-or-image-variation-swatches-for-woocommerce/vendor/cmb2/cmb2/includes/types/CMB2_Type_Taxonomy_Select.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Radio' not found in wp-content/plugins/color-or-image-variation-swatches-for-woocommerce/vendor/cmb2/cmb2/includes/types/CMB2_Type_Taxonomy_Radio_Hierarchical.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Counter_Base' not found in wp-content/plugins/color-or-image-variation-swatches-for-woocommerce/vendor/cmb2/cmb2/includes/types/CMB2_Type_Textarea.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/color-or-image-variation-swatches-for-woocommerce/vendor/cmb2/cmb2/includes/types/CMB2_Type_Radio.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/color-or-image-variation-swatches-for-woocommerce/vendor/cmb2/cmb2/includes/types/CMB2_Type_Text_Datetime_Timestamp.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup' not found in wp-content/plugins/color-or-image-variation-swatches-for-woocommerce/vendor/cmb2/cmb2/includes/CMB2_Options_Hookup.php:14
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Multicheck' not found in wp-content/plugins/color-or-image-variation-swatches-for-woocommerce/vendor/cmb2/cmb2/includes/types/CMB2_Type_Taxonomy_Multicheck_Hierarchical.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/color-or-image-variation-swatches-for-woocommerce/vendor/cmb2/cmb2/includes/types/CMB2_Type_Text_Date.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
6 plugin tags: variation, woocommerce, swatches, color, attribute...
color-or-image-variation-swatches-for-woocommerce/color-or-image-variation-swatches-for-woocommerce.php 92% from 13 tests
The main PHP file in "Variation Swatches for WooCommerce – Color & Image Swatches" ver. 1.1.7 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.4" instead of "3.0.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin50,118 lines of code in 259 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 121 | 14,335 | 18,527 | 32,404 |
PHP | 85 | 2,647 | 7,155 | 9,085 |
CSS | 14 | 257 | 1,204 | 4,592 |
JavaScript | 10 | 379 | 658 | 1,572 |
Sass | 20 | 316 | 29 | 1,470 |
Markdown | 3 | 244 | 0 | 755 |
JSON | 5 | 0 | 0 | 233 |
Bourne Shell | 1 | 0 | 1 | 7 |
PHP code Passed 2 tests
A short review 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.48 |
Average class complexity | 17.87 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 188.00 |
Average method complexity | 3.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 86 | |
▷ Abstract classes | 9 | 10.47% |
▷ Concrete classes | 77 | 89.53% |
▷ Final classes | 0 | 0.00% |
Methods | 652 | |
▷ Static methods | 113 | 17.33% |
▷ Public methods | 551 | 84.51% |
▷ Protected methods | 93 | 14.26% |
▷ Private methods | 8 | 1.23% |
Functions | 42 | |
▷ Named functions | 40 | 95.24% |
▷ Anonymous functions | 2 | 4.76% |
Constants | 16 | |
▷ Global constants | 7 | 43.75% |
▷ Class constants | 9 | 56.25% |
▷ 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
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/cmb2/cmb2/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |
vendor/cmb2/cmb2/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
vendor/cmb2/cmb2/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
vendor/cmb2/cmb2/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |
vendor/cmb2/cmb2/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |