63% gallery-slider-for-woocommerce

Code Review | Product Gallery Slider and Additional Variation Images Gallery for WooCommerce

WordPress plugin Product Gallery Slider and Additional Variation Images Gallery for WooCommerce scored63%from 54 tests.

About plugin

  • Plugin page: gallery-slider-fo...
  • Plugin version: 1.1.19
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.4.1
  • WordPress version: 6.3.1
  • First release: Jan 1, 2021
  • Latest release: Nov 13, 2023
  • Number of updates: 42
  • Update frequency: every 25.0 days
  • Top authors: shapedplugin (61.9%)Shamimmiashuhagh (23.81%)rubel_miah (19.05%)

Code review

54 tests

User reviews

90 reviews

Install metrics

10,000+ active /116,994 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0339.62 ▼1.37
Dashboard /wp-admin3.34 ▲0.0345.05 ▼1.83
Posts /wp-admin/edit.php3.46 ▲0.1047.73 ▲2.22
Add New Post /wp-admin/post-new.php5.92 ▲0.0383.76 ▼4.52
Media Library /wp-admin/upload.php3.27 ▲0.0336.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

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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲1314.24 ▼0.471.82 ▼0.4040.39 ▼4.97
Dashboard /wp-admin2,202 ▲255.55 ▼0.0490.93 ▼3.8739.23 ▼1.40
Posts /wp-admin/edit.php2,110 ▲102.03 ▲0.0740.83 ▲4.4737.14 ▲0.70
Add New Post /wp-admin/post-new.php1,536 ▲1022.98 ▼0.07689.52 ▲65.5455.95 ▲5.30
Media Library /wp-admin/upload.php1,407 ▲74.19 ▼0.02101.08 ▼8.8445.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 items
  • 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
    • ...
  • This plugin did not uninstall successfully, leaving 11 options in the database
    • 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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected


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)
Please take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code

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 code0.58
Average class complexity18.10
▷ Minimum class complexity1.00
▷ Maximum class complexity131.00
Average method complexity5.36
▷ Minimum method complexity1.00
▷ Maximum method complexity48.00
Code structure
▷ Abstract classes25.41%
▷ Concrete classes3594.59%
▷ Final classes00.00%
▷ Static methods2315.03%
▷ Public methods14594.77%
▷ Protected methods00.00%
▷ Private methods85.23%
▷ Named functions18100.00%
▷ Anonymous functions00.00%
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
admin/img/Vertical.png1.15KB0.12KB▼ 89.34%
admin/img/Horizontal.png1.16KB0.13KB▼ 88.85%
admin/img/hide_thumb.png1.26KB0.25KB▼ 80.23%