Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.44ms] Passed 4 tests
Analyzing server-side resources used by Variation Swatches Smart Products Gallery for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.69 ▼1.59 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.59 ▼3.78 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.43 ▲0.42 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.95 ▼18.24 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.65 ▼2.16 |
Welcome /wp-admin/admin.php?page=cs-wvsap-welcome | 3.00 | 22.09 |
Server storage [IO: ▲1.21MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 56 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Variation Swatches Smart Products Gallery for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.18 ▼0.18 | 1.80 ▼0.06 | 43.13 ▲1.07 |
Dashboard /wp-admin | 2,192 ▲12 | 5.63 ▲0.01 | 89.97 ▼10.36 | 37.67 ▼14.60 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▲0.02 | 35.22 ▼3.31 | 34.82 ▲0.10 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.10 ▼0.06 | 662.90 ▼21.93 | 67.93 ▲5.38 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.15 ▼0.08 | 99.97 ▼13.61 | 44.57 ▼3.39 |
Welcome /wp-admin/admin.php?page=cs-wvsap-welcome | 28 | 0.42 | 0.09 | 4.12 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- 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
Even though everything seems fine, this is not an exhaustive test
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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=cs-wvsap-welcome
- > Network (severe)
wp-admin/admin.php?page=cs-wvsap-welcome - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: smart showcase, variations, swatches, woocommerce product gallery, swatch gallery...
variation-swatches-adjacent-products-for-woocommerce/woo-variation-swatches-adjacent-products.php 92% from 13 tests
"Variation Swatches Smart Products Gallery for WooCommerce" version 1.0.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("variation-swatches-adjacent-products-for-woocommerce.php" instead of "woo-variation-swatches-adjacent-products.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin15,792 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 4 | 0 | 0 | 13,883 |
PHP | 27 | 533 | 1,038 | 1,720 |
CSS | 3 | 14 | 1 | 106 |
JavaScript | 5 | 2 | 0 | 70 |
SVG | 1 | 1 | 0 | 13 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 14.53 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 93.00 |
Average method complexity | 2.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 131 | |
▷ Static methods | 49 | 37.40% |
▷ Public methods | 95 | 72.52% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 36 | 27.48% |
Functions | 7 | |
▷ Named functions | 4 | 57.14% |
▷ Anonymous functions | 3 | 42.86% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.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 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
templates/admin/assets/img/icon.png | 0.35KB | 0.34KB | ▼ 4.70% |