89% wpa-woocommerce-product-gallery-lite

Code Review | WPA WooCommerce Product Gallery Slider Lite

WordPress plugin WPA WooCommerce Product Gallery Slider Lite scored 89% from 54 tests.

About plugin

  • Plugin page: wpa-woocommerce-p...
  • Plugin version: 1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.9.3
  • WordPress version: 6.3.1
  • First release: May 25, 2019
  • Latest release: May 10, 2022
  • Number of updates: 3
  • Update frequency: every 360.7 days
  • Top authors: wpaddons (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

700+ active / 10,577 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by WPA WooCommerce Product Gallery Slider Lite
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.19 ▼3.25
Dashboard /wp-admin3.32 ▲0.0246.62 ▼2.29
Posts /wp-admin/edit.php3.44 ▲0.0850.19 ▼0.44
Add New Post /wp-admin/post-new.php5.90 ▲0.0285.24 ▼22.26
Media Library /wp-admin/upload.php3.25 ▲0.0236.27 ▲1.93

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WPA WooCommerce Product Gallery Slider Lite
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲7413.25 ▼1.101.69 ▼0.1043.98 ▲4.23
Dashboard /wp-admin2,208 ▲175.83 ▼0.08103.58 ▲5.2240.05 ▼3.85
Posts /wp-admin/edit.php2,088 ▼12.01 ▼0.0239.54 ▼0.4935.09 ▼1.91
Add New Post /wp-admin/post-new.php1,516 ▼1823.62 ▲0.47691.06 ▲59.9352.16 ▼2.35
Media Library /wp-admin/upload.php1,390 ▲24.21 ▼0.0492.05 ▼0.8041.61 ▼2.26

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: woocommerce product image slider, woocommerce product gallery, product gallery slider, woocommerce product gallery slider

wpa-woocommerce-product-gallery-lite/wpa-woo-gallery-lite.php 85% from 13 tests

Analyzing the main PHP file in "WPA WooCommerce Product Gallery Slider Lite" version 1.1
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wpa-woocommerce-product-gallery-lite.php" instead of "wpa-woo-gallery-lite.php")

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 plugin2,064 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
CSS611546971
PHP7160169611
JavaScript46635356
SVG103126

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity2.67
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.26
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods19
▷ Static methods210.53%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
No PNG files were detected