Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.43ms] Passed 4 tests
An overview of server-side resources used by Variation Swatches for WooCommerce by CartFlows
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.03 ▼2.64 |
Dashboard /wp-admin | 3.32 ▲0.01 | 45.98 ▲0.29 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.22 ▼5.74 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 83.59 ▼5.62 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.17 ▲0.91 |
Server storage [IO: ▲0.61MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Variation Swatches for WooCommerce by CartFlows
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲30 | 13.58 ▼0.94 | 1.79 ▲0.11 | 43.69 ▲2.74 |
Dashboard /wp-admin | 2,225 ▲19 | 4.86 ▲0.01 | 103.60 ▼9.60 | 40.08 ▼4.86 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 2.07 ▲0.07 | 35.42 ▼4.30 | 36.45 ▼0.39 |
Add New Post /wp-admin/post-new.php | 1,547 ▲33 | 23.47 ▲5.88 | 664.21 ▼17.39 | 56.74 ▼1.00 |
Media Library /wp-admin/upload.php | 1,407 ▲19 | 4.27 ▲0.17 | 96.77 ▼22.77 | 44.99 ▼3.62 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Trait 'CFVSW\\Inc\\Traits\\Get_Instance' not found in wp-content/plugins/variation-swatches-woo/admin/term-meta-config.php on line 20
- > PHP Fatal error
Trait 'CFVSW\\Inc\\Traits\\Get_Instance' not found in wp-content/plugins/variation-swatches-woo/admin/templates.php on line 20
- > PHP Fatal error
Trait 'CFVSW\\Inc\\Traits\\Get_Instance' not found in wp-content/plugins/variation-swatches-woo/admin/product-config.php on line 21
- > PHP Fatal error
Uncaught Error: Call to undefined function CFVSW\\add_action() in wp-content/plugins/variation-swatches-woo/plugin-loader.php:81
- > PHP Fatal error
Trait 'CFVSW\\Inc\\Traits\\Get_Instance' not found in wp-content/plugins/variation-swatches-woo/admin/attributes-config.php on line 20
- > PHP Fatal error
Trait 'CFVSW\\Inc\\Traits\\Get_Instance' not found in wp-content/plugins/variation-swatches-woo/admin-core/admin-menu.php on line 20
- > PHP Fatal error
Trait 'CFVSW\\Inc\\Traits\\Get_Instance' not found in wp-content/plugins/variation-swatches-woo/inc/swatches.php on line 23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: product size, variation product swatches, product attributes, image variation swatch, woocommerce variation swatches...
variation-swatches-woo/variation-swatches-woo.php Passed 13 tests
The primary PHP file in "Variation Swatches for WooCommerce by CartFlows" version 1.0.7 is used by WordPress to initiate all plugin functionality
120 characters long description:
Provides super easy shopping experience by displaying beautiful variation swatches on WooCommerce shop and product page.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected5,554 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 311 | 238 | 2,652 |
PHP | 13 | 279 | 887 | 1,870 |
JavaScript | 5 | 66 | 31 | 1,032 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 29.36 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 157.00 |
Average method complexity | 4.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 90 | |
▷ Static methods | 2 | 2.22% |
▷ Public methods | 89 | 98.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.11% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin-core/assets/images/logo.png | 4.22KB | 2.46KB | ▼ 41.59% |
admin/assets/img/wc-placeholder.png | 5.71KB | 5.63KB | ▼ 1.33% |
admin-core/assets/build/images/logo.46bd2419.png | 4.22KB | 2.46KB | ▼ 41.59% |
admin-core/assets/images/cfl-gray.png | 0.68KB | 0.87KB | 0.00% |