84% advanced-woocommerce-product-gallery-slider

Code Review | Advanced WooCommerce Product Gallery Slider

WordPress plugin Advanced WooCommerce Product Gallery Slider scored 84% from 54 tests.

About plugin

  • Plugin page: advanced-woocomme...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 5.9.2
  • First release: Nov 22, 2018
  • Latest release: Feb 8, 2022
  • Number of updates: 36
  • Update frequency: every 32.6 days
  • Top authors: unikinfotechweb (100%)

Code review

54 tests

User reviews

35 reviews

Install metrics

6,000+ active / 45,797 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼294.59ms] Passed 4 tests

A check of server-side resources used by Advanced WooCommerce Product Gallery Slider
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.0855.51 ▲3.84
Dashboard /wp-admin3.47 ▲0.0634.71 ▲2.06
Posts /wp-admin/edit.php3.70 ▲0.0540.85 ▼1.87
Add New Post /wp-admin/post-new.php6.94 ▼0.0498.91 ▼1,172.71
Media Library /wp-admin/upload.php3.35 ▲0.0539.47 ▼5.85

Server storage [IO: ▲0.28MB] [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: 16 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Advanced WooCommerce Product Gallery Slider
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,806 ▲6215.67 ▼0.116.55 ▲0.442.27 ▲0.34
Dashboard /wp-admin2,931 ▲706.86 ▲0.73120.72 ▼18.96169.11 ▲4.27
Posts /wp-admin/edit.php2,734 ▲493.30 ▲0.0766.66 ▼37.57159.43 ▲14.80
Add New Post /wp-admin/post-new.php1,666 ▼10721.61 ▲0.55489.97 ▲26.75172.56 ▲2.14
Media Library /wp-admin/upload.php1,741 ▲465.83 ▲0.30146.61 ▲2.42290.48 ▲92.07

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 1 option
    • wpgis_options

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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-includes/pluggable.php' (include_path='.:/usr/share/php') in wp-content/plugins/advanced-woocommerce-product-gallery-slider/inc/settings.php on line 3
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/advanced-woocommerce-product-gallery-slider/inc/settings.php on line 3
    • > PHP Warning
      require_once(ABSPATHwp-includes/pluggable.php): failed to open stream: No such file or directory in wp-content/plugins/advanced-woocommerce-product-gallery-slider/inc/settings.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed: You can take inspiration from this readme.txt

advanced-woocommerce-product-gallery-slider/woo-product-gallery-image-slider.php 92% from 13 tests

The main file in "Advanced WooCommerce Product Gallery Slider" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("advanced-woocommerce-product-gallery-slider.php" instead of "woo-product-gallery-image-slider.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin5,278 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions11100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin