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
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼10.29ms] Passed 4 tests
A check of server-side resources used by Additional Variation Images Gallery for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.22 ▼2.48 |
Dashboard /wp-admin | 3.33 ▼0.01 | 45.60 ▼15.77 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 47.40 ▲0.59 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 85.27 ▼19.78 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.49 ▼3.11 |
Server storage [IO: ▲0.83MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 53 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
woo_variation_gallery_do_activate_redirect |
woocommerce_show_marketplace_suggestions |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Additional Variation Images Gallery for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,798 ▲36 | 14.31 ▼0.04 | 1.63 ▼0.24 | 40.60 ▼4.90 |
Dashboard /wp-admin | 2,203 ▲23 | 5.60 ▼0.03 | 93.93 ▼3.70 | 44.83 ▼4.67 |
Posts /wp-admin/edit.php | 2,111 ▲14 | 2.02 ▲0.02 | 37.81 ▼3.14 | 32.76 ▼6.40 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 23.11 ▼0.05 | 631.57 ▼25.48 | 48.55 ▼1.14 |
Media Library /wp-admin/upload.php | 1,408 ▲11 | 4.29 ▲0.08 | 94.86 ▼21.39 | 41.22 ▼4.01 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 8 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- woocommerce_show_marketplace_suggestions
- db_upgraded
- woo_variation_gallery_do_activate_redirect
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 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)
Everything seems fine, however 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
The following issues need your attention
- 17× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/woo-variation-gallery/includes/class-woo-variation-gallery-export-import.php
- > /wp-content/plugins/woo-variation-gallery/includes/slider-template-js.php
- > /wp-content/plugins/woo-variation-gallery/includes/stylesheet.php
- > /wp-content/plugins/woo-variation-gallery/includes/html-migrations.php
- > /wp-content/plugins/woo-variation-gallery/includes/admin-template.php
- > /wp-content/plugins/woo-variation-gallery/woo-variation-gallery.php
- > /wp-content/plugins/woo-variation-gallery/includes/class-woo-variation-gallery.php
- > /wp-content/plugins/woo-variation-gallery/includes/class-woo-variation-gallery-settings.php
- > /wp-content/plugins/woo-variation-gallery/includes/class-woo-variation-gallery-migrate.php
- > /wp-content/plugins/woo-variation-gallery/includes/class-woo-variation-gallery-backend.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: additional image, woocommerce variation image gallery, additional variation image, variation images gallery, product variation image...
woo-variation-gallery/woo-variation-gallery.php Passed 13 tests
The primary PHP file in "Additional Variation Images Gallery for WooCommerce" version 1.3.21 is used by WordPress to initiate all plugin functionality
139 characters long description:
Allows inserting multiple images for per variation to let visitors see a different images when WooCommerce product variations are switched.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin11,846 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 10 | 1,040 | 534 | 4,126 |
PHP | 28 | 1,126 | 513 | 4,015 |
CSS | 7 | 179 | 201 | 3,687 |
SVG | 1 | 1 | 0 | 13 |
XML | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 30.60 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 155.00 |
Average method complexity | 2.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 90.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 2 | 13.33% |
▷ Concrete classes | 13 | 86.67% |
▷ Final classes | 0 | 0.00% |
Methods | 238 | |
▷ Static methods | 31 | 13.03% |
▷ Public methods | 211 | 88.66% |
▷ Protected methods | 27 | 11.34% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected