Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼325.38ms] Passed 4 tests
Analyzing server-side resources used by Product Variations Swatches for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.02 | 75.17 ▲5.54 |
Dashboard /wp-admin | 3.42 ▲0.01 | 41.12 ▼17.48 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 48.51 ▼4.00 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 116.39 ▼1,275.01 |
Media Library /wp-admin/upload.php | 3.31 ▲0.01 | 32.72 ▼5.03 |
Server storage [IO: ▲2.91MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 79 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Product Variations Swatches for WooCommerce: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,871 ▲123 | 16.44 ▲0.71 | 9.55 ▲1.07 | 3.71 ▲0.58 |
Dashboard /wp-admin | 2,964 ▲44 | 6.37 ▼0.07 | 208.35 ▼5.86 | 214.15 ▼2.99 |
Posts /wp-admin/edit.php | 2,730 ▲12 | 3.42 ▲0.00 | 87.59 ▼0.47 | 182.17 ▼1.09 |
Add New Post /wp-admin/post-new.php | 1,667 ▼50 | 15.98 ▼3.57 | 581.05 ▼52.67 | 190.57 ▼34.43 |
Media Library /wp-admin/upload.php | 1,740 ▲10 | 5.73 ▲0.04 | 203.93 ▲13.76 | 248.95 ▲10.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests Passed 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)
Good news, no errors were detected
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5, #6 in product-variations-swatches-for-woocommerce/assets to your readme.txt
product-variations-swatches-for-woocommerce/product-variations-swatches-for-woocommerce.php 92% from 13 tests
The main file in "Product Variations Swatches for WooCommerce" v. 1.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 421 characters long)
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
Everything looks great! No dangerous files found in this plugin12,420 lines of code in 61 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 209 | 146 | 5,662 |
SVG | 3 | 0 | 12 | 2,880 |
JavaScript | 14 | 117 | 94 | 2,100 |
CSS | 30 | 313 | 176 | 1,778 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 51.30 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 211.00 |
Average method complexity | 6.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 78.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 84 | |
▷ Static methods | 9 | 10.71% |
▷ Public methods | 79 | 94.05% |
▷ Protected methods | 1 | 1.19% |
▷ Private methods | 4 | 4.76% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 12 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/minicolors.png | 67.02KB | 34.31KB | ▼ 48.80% |