Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲1.77MB] [CPU: ▲8.10ms] Passed 4 tests
Server-side resources used by Product Gallery Slider for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.23 ▲1.77 | 50.71 ▼3.03 |
Dashboard /wp-admin | 5.07 ▲1.77 | 58.42 ▲7.35 |
Posts /wp-admin/edit.php | 5.18 ▲1.83 | 66.95 ▲17.86 |
Add New Post /wp-admin/post-new.php | 7.67 ▲1.78 | 103.81 ▲10.20 |
Media Library /wp-admin/upload.php | 4.99 ▲1.76 | 54.94 ▲19.11 |
Server storage [IO: ▲2.32MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 235 new files
Database: no new tables, 7 new options
New WordPress options |
---|
ciwpgs_installed |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Product Gallery Slider for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,851 ▲116 | 13.25 ▼1.50 | 1.57 ▼0.78 | 39.41 ▼19.18 |
Dashboard /wp-admin | 2,257 ▲72 | 4.94 ▲0.06 | 113.79 ▼5.94 | 44.50 ▼0.73 |
Posts /wp-admin/edit.php | 2,144 ▲55 | 2.08 ▲0.07 | 36.95 ▲0.36 | 34.39 ▼2.92 |
Add New Post /wp-admin/post-new.php | 1,563 ▲30 | 23.42 ▲0.07 | 673.15 ▲15.74 | 58.37 ▲5.24 |
Media Library /wp-admin/upload.php | 1,439 ▲54 | 4.26 ▲0.11 | 100.60 ▼5.92 | 43.17 ▲0.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- ciwpgs_installed
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'CSF_Fields' not found in wp-content/plugins/woo-product-gallery-slider/includes/class-image-sizes.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-product-gallery-slider/includes/core.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woo-product-gallery-slider/includes/functions.php:65
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woo-product-gallery-slider/includes/functions.php:65
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: product gallery slider, woocommerce product gallery carousel, woocommerce product gallery slider, woocommerce product image slider
woo-product-gallery-slider/woo-product-gallery-slider.php 85% from 13 tests
The main PHP file in "Product Gallery Slider for WooCommerce" ver. 2.2.12 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("5.0" instead of "3.9")
- Description: Please don't use more than 140 characters for the plugin description (currently 176 characters long)
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
There were no executable files found in this plugin43,879 lines of code in 182 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 112 | 4,384 | 3,034 | 18,638 |
JavaScript | 11 | 1,344 | 526 | 6,685 |
PO File | 20 | 3,198 | 3,591 | 6,500 |
Sass | 17 | 974 | 3 | 5,705 |
CSS | 9 | 448 | 526 | 5,493 |
HTML | 1 | 34 | 4 | 413 |
JSON | 6 | 2 | 0 | 285 |
XML | 1 | 6 | 11 | 95 |
SVG | 5 | 1 | 3 | 65 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 25.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 150.00 |
Average method complexity | 5.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 78 | |
▷ Abstract classes | 2 | 2.56% |
▷ Concrete classes | 76 | 97.44% |
▷ Final classes | 2 | 2.63% |
Methods | 442 | |
▷ Static methods | 70 | 15.84% |
▷ Public methods | 388 | 87.78% |
▷ Protected methods | 19 | 4.30% |
▷ Private methods | 35 | 7.92% |
Functions | 36 | |
▷ Named functions | 31 | 86.11% |
▷ Anonymous functions | 5 | 13.89% |
Constants | 12 | |
▷ Global constants | 11 | 91.67% |
▷ Class constants | 1 | 8.33% |
▷ Public constants | 1 | 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
13 PNG files occupy 0.07MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/zoom-glass.png | 5.71KB | 1.55KB | ▼ 72.86% |
assets/img/icon-right-bold.png | 1.74KB | 0.29KB | ▼ 83.34% |
assets/img/none.png | 5.98KB | 1.05KB | ▼ 82.44% |
assets/img/border.png | 17.94KB | 5.86KB | ▼ 67.31% |
assets/img/icon-right.png | 2.20KB | 0.57KB | ▼ 74.11% |