84% advanced-woocommerce-product-gallery-slider

Code Review | Advanced WooCommerce Product Gallery Slider

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

About plugin

  • Plugin page: advanced-woocomme...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0.0
  • WordPress version: 6.3.1
  • First release: Nov 22, 2018
  • Latest release: Aug 17, 2022
  • Number of updates: 39
  • Update frequency: every 35.0 days
  • Top authors: unikinfotechweb (100%)

Code review

54 tests

User reviews

38 reviews

Install metrics

5,000+ active /58,182 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.91ms] Passed 4 tests

Server-side resources used by Advanced WooCommerce Product Gallery Slider
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0538.75 ▼2.27
Dashboard /wp-admin3.36 ▲0.0549.28 ▲0.80
Posts /wp-admin/edit.php3.41 ▲0.0545.63 ▼3.22
Add New Post /wp-admin/post-new.php5.96 ▲0.0779.63 ▼10.48
Media Library /wp-admin/upload.php3.28 ▲0.0535.01 ▲0.32

Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
wpgis_options
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Advanced WooCommerce Product Gallery Slider: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.36 ▼0.231.80 ▲0.0843.61 ▲0.42
Dashboard /wp-admin2,226 ▲555.80 ▲0.2396.62 ▲6.5638.32 ▼0.68
Posts /wp-admin/edit.php2,139 ▲392.32 ▲0.3541.90 ▲7.9533.94 ▼3.55
Add New Post /wp-admin/post-new.php1,550 ▲2423.12 ▼0.42670.79 ▲63.2337.32 ▼10.00
Media Library /wp-admin/upload.php1,431 ▲284.48 ▲0.28105.40 ▲5.2445.77 ▲1.33

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • wpgis_options

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > 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 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
      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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention: You can take inspiration from this readme.txt

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

The entry point to "Advanced WooCommerce Product Gallery Slider" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to 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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin5,278 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript61,1316133,553
CSS3195391,340
PHP55160385

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.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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin