Benchmarks
Plugin footprint 65% 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: ▲5.14MB] [CPU: ▲21.60ms] 75% from 4 tests
A check of server-side resources used by Variable Product Swatches for WooCommerce
It is recommended to improve the following
- Extra RAM: The extra memory usage must be under 5MB (currently 5.14MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.86 ▲5.40 | 70.10 ▲23.74 |
Dashboard /wp-admin | 8.88 ▲5.58 | 84.46 ▲32.56 |
Posts /wp-admin/edit.php | 8.88 ▲5.53 | 79.64 ▲22.00 |
Add New Post /wp-admin/post-new.php | 9.94 ▲4.06 | 106.22 ▲8.09 |
Media Library /wp-admin/upload.php | 8.88 ▲5.65 | 70.55 ▲33.36 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 8.88 | 66.55 |
Server storage [IO: ▲3.22MB] [DB: ▲0.03MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 215 new files
Database: no new tables, 10 new options
New WordPress options |
---|
fs_accounts |
widget_recent-posts |
widget_recent-comments |
fs_active_plugins |
fs_debug_mode |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
fs_gdpr |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Variable Product Swatches for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,144 ▲383 | 14.82 ▲0.47 | 1.95 ▲0.19 | 32.35 ▼13.88 |
Dashboard /wp-admin | 2,542 ▲368 | 6.45 ▲0.87 | 125.45 ▲22.94 | 45.11 ▲1.32 |
Posts /wp-admin/edit.php | 2,367 ▲270 | 3.70 ▲1.68 | 53.54 ▲19.02 | 33.27 ▼5.92 |
Add New Post /wp-admin/post-new.php | 1,598 ▲70 | 23.29 ▲0.15 | 628.75 ▼53.49 | 32.67 ▼25.39 |
Media Library /wp-admin/upload.php | 1,503 ▲103 | 4.34 ▲0.23 | 82.93 ▼35.95 | 42.91 ▼5.24 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 1,300 | 3.25 | 45.31 | 25.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.03MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/variable-product-swatches/includes/freemius/includes/class-freemius.php+8575
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 10 options in the database
- fs_accounts
- fs_active_plugins
- fs_debug_mode
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- fs_gdpr
- widget_theysaidso_widget
- widget_recent-comments
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
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/variable-product-swatches/public/partials/variable-product-swatches-public-display.php
- > /wp-content/plugins/variable-product-swatches/admin/partials/variable-product-swatches-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Tags: There are too many tags (15 tag instead of maximum 10)
variable-product-swatches/variable-product-swatches.php Passed 13 tests
The main PHP file in "Variable Product Swatches for WooCommerce" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
135 characters long description:
Variable Product Swatches is altimate solution for Color, Image, Button and Radio Swatches For WooCommerce Variable Product Attributes.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected34,213 lines of code in 161 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 133 | 7,705 | 17,253 | 32,568 |
JavaScript | 8 | 60 | 188 | 1,080 |
CSS | 15 | 5 | 6 | 243 |
Markdown | 1 | 68 | 0 | 214 |
JSON | 3 | 0 | 0 | 107 |
SVG | 1 | 2 | 0 | 1 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
Please fix the following
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 2,911)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 73.28 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,911.00 |
Average method complexity | 4.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 60 | |
▷ Abstract classes | 2 | 3.33% |
▷ Concrete classes | 58 | 96.67% |
▷ Final classes | 0 | 0.00% |
Methods | 1,272 | |
▷ Static methods | 196 | 15.41% |
▷ Public methods | 921 | 72.41% |
▷ Protected methods | 15 | 1.18% |
▷ Private methods | 336 | 26.42% |
Functions | 101 | |
▷ Named functions | 98 | 97.03% |
▷ Anonymous functions | 3 | 2.97% |
Constants | 127 | |
▷ Global constants | 102 | 80.31% |
▷ Class constants | 25 | 19.69% |
▷ Public constants | 25 | 100.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
4 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
includes/freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
includes/freemius/assets/img/variable-product-swatches.png | 9.16KB | 5.26KB | ▼ 42.58% |
includes/freemius/assets/img/woo-variable-product-swatches.png | 9.16KB | 5.26KB | ▼ 42.58% |