Benchmarks
Plugin footprint 65% 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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.54MB] [CPU: ▼3.05ms] Passed 4 tests
A check of server-side resources used by Variation Swatches for WooCommerce Stores
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.06 ▲0.60 | 40.61 ▼3.92 |
Dashboard /wp-admin | 3.90 ▲0.60 | 49.43 ▲1.75 |
Posts /wp-admin/edit.php | 3.95 ▲0.59 | 47.90 ▼2.43 |
Add New Post /wp-admin/post-new.php | 6.42 ▲0.53 | 93.86 ▼7.61 |
Media Library /wp-admin/upload.php | 3.66 ▲0.43 | 38.35 ▲6.59 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 4.01 | 37.70 |
Server storage [IO: ▲3.62MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 227 new files
Database: no new tables, 9 new options
New WordPress options |
---|
fs_active_plugins |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
fs_debug_mode |
widget_theysaidso_widget |
fs_accounts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Variation Swatches for WooCommerce Stores
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲63 | 14.46 ▲0.16 | 1.77 ▼0.28 | 29.14 ▼15.66 |
Dashboard /wp-admin | 2,237 ▲49 | 5.83 ▼0.18 | 99.23 ▼6.97 | 41.01 ▲1.61 |
Posts /wp-admin/edit.php | 2,123 ▲31 | 2.04 ▲0.08 | 35.72 ▼0.90 | 35.81 ▲1.42 |
Add New Post /wp-admin/post-new.php | 1,532 ▲5 | 23.27 ▼0.00 | 748.88 ▲83.73 | 55.45 ▼0.45 |
Media Library /wp-admin/upload.php | 1,422 ▲37 | 4.25 ▼0.02 | 104.96 ▲10.43 | 49.61 ▲9.10 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 1,084 | 1.84 | 30.35 | 29.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/enweby-variation-swatches-for-woocommerce/freemius/includes/class-freemius.php+8515
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 9 options in the database
- db_upgraded
- fs_active_plugins
- can_compress_scripts
- widget_recent-posts
- fs_accounts
- widget_recent-comments
- widget_theysaidso_widget
- fs_debug_mode
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/enweby-variation-swatches-for-woocommerce/admin/partials/enwbvs-admin-display.php
- > /wp-content/plugins/enweby-variation-swatches-for-woocommerce/public/partials/enwbvs-public-display.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/enweby-variation-swatches-for-woocommerce/admin/admin-framework/admin-settings.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: There are too many tags (13 tag instead of maximum 10)
enweby-variation-swatches-for-woocommerce/enweby-variation-swatches-for-woocommerce.php Passed 13 tests
The main file in "Variation Swatches for WooCommerce Stores" v. 1.0.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
120 characters long description:
A lightweight plugin by Enweby used to display product variation swatches to enhance customer experience and engagement.
Code Analysis 97% from 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 plugin42,565 lines of code in 174 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 135 | 8,653 | 19,119 | 37,398 |
JavaScript | 10 | 595 | 479 | 2,799 |
CSS | 20 | 351 | 162 | 2,266 |
SVG | 8 | 0 | 4 | 86 |
XML | 1 | 3 | 0 | 16 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please tend to the following items
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,088)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 84.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,088.00 |
Average method complexity | 4.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 60 | |
▷ Abstract classes | 2 | 3.33% |
▷ Concrete classes | 58 | 96.67% |
▷ Final classes | 0 | 0.00% |
Methods | 1,436 | |
▷ Static methods | 210 | 14.62% |
▷ Public methods | 1,032 | 71.87% |
▷ Protected methods | 17 | 1.18% |
▷ Private methods | 387 | 26.95% |
Functions | 108 | |
▷ Named functions | 108 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 149 | |
▷ Global constants | 102 | 68.46% |
▷ Class constants | 47 | 31.54% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/special-offer-preview.png | 15.96KB | 6.02KB | ▼ 62.28% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
admin/images/ew-logo.png | 1.54KB | 1.32KB | ▼ 14.02% |
admin/images/plugin-icon.png | 19.56KB | 8.31KB | ▼ 57.49% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |