Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼1.43ms] Passed 4 tests
Analyzing server-side resources used by Product Gallery Slider and Additional Variation Images Gallery for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 39.62 ▼1.37 |
Dashboard /wp-admin | 3.34 ▲0.03 | 45.05 ▼1.83 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 47.73 ▲2.22 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 83.76 ▼4.52 |
Media Library /wp-admin/upload.php | 3.27 ▲0.03 | 36.99 ▲2.02 |
Server storage [IO: ▲2.10MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 120 new files
Database: no new tables, 10 new options
New WordPress options |
---|
woo_gallery_slider_first_version |
woo_gallery_slider_db_version |
widget_theysaidso_widget |
woo_gallery_slider_version |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
woo_gallery_slider_activation_date |
Browser metrics Passed 4 tests
Checking browser requirements for Product Gallery Slider and Additional Variation Images Gallery for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲13 | 14.24 ▼0.47 | 1.82 ▼0.40 | 40.39 ▼4.97 |
Dashboard /wp-admin | 2,202 ▲25 | 5.55 ▼0.04 | 90.93 ▼3.87 | 39.23 ▼1.40 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 2.03 ▲0.07 | 40.83 ▲4.47 | 37.14 ▲0.70 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 22.98 ▼0.07 | 689.52 ▲65.54 | 55.95 ▲5.30 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.19 ▼0.02 | 101.08 ▼8.84 | 45.26 ▲2.00 |
Uninstaller [IO: ▲2.10MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following itemsThis plugin did not uninstall successfully, leaving 11 options in the database
- The plugin did not uninstall gracefully
- > Compile error in wp-content/plugins/gallery-slider-for-woocommerce/woo-gallery-slider.php+56
Cannot redeclare run_woo_gallery_slider() (previously declared in wp-content/plugins/gallery-slider-for-woocommerce/woo-gallery-slider.php:57)
- This plugin has failed uninstalling correctly, leaving 120 files (2.10MB) in the plugin directory
- (new file) admin/css/fontello.css
- (new file) admin/css/notices.min.css
- (new file) admin/css/notices.css
- (new file) README.txt
- (new file) admin/css/woo-gallery-slider-admin.min.css
- (new file) admin/font/font/fontello.svg
- (new file) admin/class-woo-gallery-slider-admin.php
- (new file) admin/css/fontello.min.css
- (new file) admin/css/woo-gallery-slider-admin.css
- (new file) admin/font/font/fontello.eot
- ...
- can_compress_scripts
- widget_recent-comments
- recovery_mode_email_last_sent
- widget_theysaidso_widget
- theysaidso_admin_options
- woo_gallery_slider_activation_date
- widget_recent-posts
- woo_gallery_slider_db_version
- woo_gallery_slider_first_version
- woo_gallery_slider_version
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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 fix the following
- 5× PHP files trigger errors when accessed directly with GET requests:
- > 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
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
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: 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
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
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% 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
Attributes that require attention:
- Tags: There are too many tags (25 tag instead of maximum 10)
gallery-slider-for-woocommerce/woo-gallery-slider.php 85% from 13 tests
The principal PHP file in "Product Gallery Slider and Additional Variation Images Gallery for WooCommerce" v. 1.1.19 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("gallery-slider-for-woocommerce.php" instead of "woo-gallery-slider.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 323 characters long)
Code Analysis Passed 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 plugin17,128 lines of code in 90 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 11 | 1,261 | 260 | 5,073 |
PHP | 49 | 1,018 | 2,216 | 4,337 |
CSS | 18 | 469 | 460 | 3,864 |
SVG | 10 | 68 | 0 | 2,808 |
Sass | 2 | 14 | 14 | 1,046 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 18.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 131.00 |
Average method complexity | 5.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 48.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 | 153 | |
▷ Static methods | 23 | 15.03% |
▷ Public methods | 145 | 94.77% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 5.23% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/Vertical.png | 1.15KB | 0.12KB | ▼ 89.34% |
admin/img/Horizontal.png | 1.16KB | 0.13KB | ▼ 88.85% |
admin/partials/shapedplugin-framework/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |
admin/img/hide_thumb.png | 1.26KB | 0.25KB | ▼ 80.23% |