Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼9.90ms] Passed 4 tests
An overview of server-side resources used by Product Variation Swatches for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 34.81 ▼2.99 |
Dashboard /wp-admin | 3.32 ▼0.03 | 46.76 ▼8.88 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 42.74 ▼5.88 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 79.05 ▼21.84 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.53 ▲2.05 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
wc_variation_swatches_admin_notifications |
wc_variation_swatches_install_date |
db_upgraded |
widget_theysaidso_widget |
wc_variation_swatches_version |
Browser metrics Passed 4 tests
Product Variation Swatches for WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲59 | 14.26 ▼0.09 | 1.67 ▼0.02 | 36.14 ▼2.94 |
Dashboard /wp-admin | 2,204 ▲27 | 5.61 ▲0.01 | 95.53 ▲10.05 | 41.88 ▼3.10 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.98 ▼0.03 | 35.54 ▲0.59 | 33.75 ▼3.85 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 22.91 ▼0.06 | 593.56 ▼67.77 | 50.92 ▼6.40 |
Media Library /wp-admin/upload.php | 1,406 ▲9 | 4.22 ▼0.05 | 93.52 ▼5.35 | 41.77 ▼5.91 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 9 options
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- wc_variation_swatches_admin_notifications
- wc_variation_swatches_install_date
- wc_variation_swatches_version
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WC_Variation_Swatches_Settings_API' not found in wp-content/plugins/wc-variation-swatches/includes/admin/class-settings.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-variation-swatches/includes/class-single-variation.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 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
Please fix the following attributes:
- Screenshots: A description for screenshot #12 is missing in wc-variation-swatches/assets to your readme.txt
- Screenshots: Screenshot #10 (Label Text Swatches) image missing
wc-variation-swatches/wc-variation-swatches.php 92% from 13 tests
This is the main PHP file of "Product Variation Swatches for WooCommerce" version 1.0.4, 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: Required version does 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 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin1,344 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 393 | 605 | 1,218 |
JavaScript | 4 | 57 | 14 | 124 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 24.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 75.00 |
Average method complexity | 2.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 1 | 16.67% |
Methods | 72 | |
▷ Static methods | 3 | 4.17% |
▷ Public methods | 63 | 87.50% |
▷ Protected methods | 7 | 9.72% |
▷ Private methods | 2 | 2.78% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin