83% product-gallery-slider-for-wc

Code Review | Product Gallery Slider for WooCommerce -- Themesvila

WordPress plugin Product Gallery Slider for WooCommerce -- Themesvila scored 83% from 54 tests.

About plugin

  • Plugin page: product-gallery-s...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: Jan 8, 2021
  • Latest release: Apr 13, 2023
  • Number of updates: 20
  • Update frequency: every 41.3 days
  • Top authors: masumbd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 1,148 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.18ms] Passed 4 tests

Analyzing server-side resources used by Product Gallery Slider for WooCommerce -- Themesvila
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.93 ▼4.52
Dashboard /wp-admin3.32 ▲0.0245.98 ▼2.54
Posts /wp-admin/edit.php3.37 ▲0.0247.49 ▼0.12
Add New Post /wp-admin/post-new.php5.90 ▲0.0282.49 ▼9.15
Media Library /wp-admin/upload.php3.25 ▲0.0235.38 ▼0.49

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Product Gallery Slider for WooCommerce -- Themesvila
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲8414.46 ▼0.121.70 ▼0.1441.75 ▼3.48
Dashboard /wp-admin2,222 ▲375.84 ▲0.03100.99 ▼13.9738.14 ▼4.28
Posts /wp-admin/edit.php2,108 ▲191.99 ▼0.0536.17 ▲0.1032.43 ▼5.38
Add New Post /wp-admin/post-new.php1,527 ▼617.41 ▼5.78685.34 ▲0.3056.92 ▲5.01
Media Library /wp-admin/upload.php1,407 ▲194.20 ▼0.0396.50 ▼18.4943.61 ▼3.39

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/product-gallery-slider-for-wc/inc/admin-page.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% 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 need to be fixed:
  • Donate link: Invalid URI found ("")
  • Screenshots: Screenshot #1 (screenshot-1.png) image not found
The official readme.txt might help

product-gallery-slider-for-wc/plugin_main.php 85% from 13 tests

This is the main PHP file of "Product Gallery Slider for WooCommerce -- Themesvila" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("product-gallery-slider-for-wc.php" instead of "plugin_main.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected4,179 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript31,2342033,498
CSS3538510
PHP54757171

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.14MB with 0.09MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png144.01KB47.70KB▼ 66.88%