Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼174.76ms] Passed 4 tests
Server-side resources used by Product Gallery Slider and Additional Variation Images Gallery for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.01 | 25.21 ▲2.51 |
Dashboard /wp-admin | 3.06 ▼0.00 | 30.90 ▼6.58 |
Posts /wp-admin/edit.php | 3.11 ▲0.01 | 33.95 ▲2.70 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 69.47 ▼693.65 |
Media Library /wp-admin/upload.php | 3.01 ▲0.00 | 22.18 ▼1.33 |
Server storage [IO: ▲3.32MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 144 new files
Database: no new tables, 4 new options
New WordPress options |
---|
woo_gallery_slider_db_version |
woo_gallery_slider_first_version |
woo_gallery_slider_activation_date |
woo_gallery_slider_version |
Browser metrics Passed 4 tests
Checking browser requirements for Product Gallery Slider and Additional Variation Images Gallery for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,681 ▲80 | 15.62 ▼0.01 | 4.93 ▼1.57 | 77.66 ▼5.45 |
Dashboard /wp-admin | 2,942 ▲46 | 6.10 ▼0.05 | 118.25 ▼13.62 | 168.00 ▼3.22 |
Posts /wp-admin/edit.php | 2,755 ▲15 | 3.23 ▼0.00 | 63.73 ▲1.69 | 138.68 ▲3.44 |
Add New Post /wp-admin/post-new.php | 3,751 ▲45 | 19.04 ▲0.18 | 430.13 ▼15.45 | 164.79 ▲1.22 |
Media Library /wp-admin/upload.php | 1,767 ▲15 | 5.52 ▼0.03 | 143.75 ▲4.87 | 185.30 ▼4.02 |
Uninstaller [IO: ▲3.32MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following itemsZombie WordPress options were found after uninstall: 5 options
- This plugin did not uninstall without warnings or errors
- > Error in wp-content/plugins/gallery-slider-for-woocommerce/woo-gallery-slider.php+55
Cannot redeclare run_woo_gallery_slider() (previously declared in wp-content/plugins/gallery-slider-for-woocommerce/woo-gallery-slider.php:55)
- The plugin did not uninstall successfully, leaving 144 files (3.32MB) in the plugin directory
- (new file) admin/fonts/FontAwesome.otf
- (new file) admin/css/notices.min.css
- (new file) admin/css/notices.css
- (new file) admin/fonts/fontawesome-webfont.eot
- (new file) admin/css/woo-gallery-slider-admin.css
- (new file) admin/css/woo-gallery-slider-admin.min.css
- (new file) admin/css/font-awesome5.min.css
- (new file) README.txt
- (new file) admin/css/font-awesome.min.css
- (new file) admin/class-woo-gallery-slider-admin.php
- ...
- woo_gallery_slider_version
- woo_gallery_slider_first_version
- woo_gallery_slider_activation_date
- recovery_mode_email_last_sent
- woo_gallery_slider_db_version
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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 fix the following
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/gallery-slider-for-woocommerce/public/partials/product-images.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function update_option() in wp-content/plugins/gallery-slider-for-woocommerce/includes/updates/update-1.0.0.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gallery-slider-for-woocommerce/admin/partials/notices/review.php:25
- > PHP Fatal error
Uncaught Error: Class 'WCGS_Public_Settings' not found in wp-content/plugins/gallery-slider-for-woocommerce/public/partials/class/class-public-style.php:12
- > PHP Fatal error
Trait 'WCGS_Public_Default' not found in wp-content/plugins/gallery-slider-for-woocommerce/public/partials/class/class-public-settings.php on line 12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 86% 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
These attributes need your attention:
- Tags: Please delete some tags, you are using 25 tag instead of maximum 10
gallery-slider-for-woocommerce/woo-gallery-slider.php 77% from 13 tests
The main PHP script in "Product Gallery Slider and Additional Variation Images Gallery for WooCommerce" version 1.1.4 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.3" instead of "4.0")
- Description: Please keep the plugin description shorter than 140 characters (currently 323 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("gallery-slider-for-woocommerce.php" instead of "woo-gallery-slider.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected18,895 lines of code in 85 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 11 | 1,661 | 320 | 5,820 |
CSS | 15 | 487 | 535 | 5,228 |
PHP | 49 | 980 | 2,074 | 3,944 |
SVG | 8 | 0 | 2 | 2,857 |
Sass | 2 | 14 | 14 | 1,046 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 16.54 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 130.00 |
Average method complexity | 5.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 2 | |
Classes | 37 | |
▷ Abstract classes | 2 | 5.41% |
▷ Concrete classes | 35 | 94.59% |
▷ Final classes | 0 | 0.00% |
Methods | 139 | |
▷ Static methods | 23 | 16.55% |
▷ Public methods | 131 | 94.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 5.76% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
20 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/play-button-square.png | 4.48KB | 1.62KB | ▼ 63.89% |
public/images/play-button-round.png | 1.39KB | 0.71KB | ▼ 48.77% |
admin/img/hide_thumb.png | 1.26KB | 0.25KB | ▼ 80.23% |
admin/img/admin-settings-logo.png | 1.42KB | 1.19KB | ▼ 16.33% |
public/images/not_loaded.png | 0.84KB | 0.63KB | ▼ 24.48% |