90% product-thumbnail-gallery-for-woocommerce

Code Review | OGO Product Thumbnail Gallery

WordPress plugin OGO Product Thumbnail Gallery scored90%from 54 tests.

About plugin

  • Plugin page: product-thumbnail...
  • Plugin version: 2.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.8
  • WordPress version: 6.3.1
  • First release: Sep 13, 2021
  • Latest release: Sep 13, 2021
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: ogoweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,811 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

A check of server-side resources used by OGO Product Thumbnail Gallery
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.79 ▲0.62
Dashboard /wp-admin3.32 ▲0.0243.58 ▼3.03
Posts /wp-admin/edit.php3.37 ▲0.0244.08 ▲0.05
Add New Post /wp-admin/post-new.php5.90 ▲0.0281.70 ▼11.38
Media Library /wp-admin/upload.php3.24 ▲0.0231.96 ▼1.18

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for OGO Product Thumbnail Gallery
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲13713.51 ▼0.859.25 ▲7.5540.60 ▼3.12
Dashboard /wp-admin2,203 ▲155.80 ▲0.68106.37 ▲1.5042.85 ▲2.48
Posts /wp-admin/edit.php2,092 ▲32.03 ▼0.0034.29 ▼2.2831.82 ▼4.24
Add New Post /wp-admin/post-new.php1,535 ▲2123.28 ▲5.64727.61 ▲64.8548.67 ▼5.17
Media Library /wp-admin/upload.php1,385 ▲34.21 ▲0.0297.05 ▼3.9941.13 ▼2.26

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: woocommerce, image, hover, animations, slider...

product-thumbnail-gallery-for-woocommerce/product-thumbnail-gallery-for-woocommerce.php 92% from 13 tests

The main PHP script in "OGO Product Thumbnail Gallery" version 2.0.1 is automatically included on every request by WordPress
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin253 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS100139
PHP211979
JavaScript10035

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods5100.00%
▷ Public methods480.00%
▷ Protected methods00.00%
▷ Private methods120.00%
Functions0
▷ Named functions00.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
There are no PNG files in this plugin