90% woocommerce-lightbox

Code Review | WPB Quick View Popup for WooCommerce - Display Product Informations in Popup on Button Click

WordPress plugin WPB Quick View Popup for WooCommerce - Display Product Informations in Popup on Button Click scored 90% from 54 tests.

About plugin

  • Plugin page: woocommerce-lightbox
  • Plugin version: 2.1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Mar 25, 2015
  • Latest release: Aug 29, 2023
  • Number of updates: 76
  • Update frequency: every 40.5 days
  • Top authors: wpbean (100%)

Code review

54 tests

User reviews

31 reviews

Install metrics

2,000+ active / 102,854 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Server-side resources used by WPB Quick View Popup for WooCommerce - Display Product Informations in Popup on Button Click
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0433.82 ▼6.30
Dashboard /wp-admin3.33 ▲0.0346.29 ▼5.46
Posts /wp-admin/edit.php3.38 ▲0.0346.56 ▲3.31
Add New Post /wp-admin/post-new.php5.91 ▲0.0392.33 ▼1.79
Media Library /wp-admin/upload.php3.26 ▲0.0334.83 ▼0.39

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

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

Browser metrics Passed 4 tests

WPB Quick View Popup for WooCommerce - Display Product Informations in Popup on Button Click: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,894 ▲15913.86 ▼0.529.80 ▲7.9836.09 ▼18.64
Dashboard /wp-admin2,203 ▲124.85 ▼0.03106.10 ▲2.0938.55 ▼5.56
Posts /wp-admin/edit.php2,086 ▼32.01 ▼0.0340.45 ▲1.1735.09 ▲2.88
Add New Post /wp-admin/post-new.php1,379 ▼13516.47 ▼0.98481.45 ▼113.0754.67 ▲0.03
Media Library /wp-admin/upload.php1,388 ▲94.22 ▲0.0294.06 ▼8.5444.59 ▼2.42

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: woocommerce, quick view, products quick view, woocommerce product quick view, woocommerce lightbox...

woocommerce-lightbox/main.php 92% from 13 tests

The primary PHP file in "WPB Quick View Popup for WooCommerce - Display Product Informations in Popup on Button Click" version 2.1.7 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woocommerce-lightbox.php" instead of "main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin926 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
CSS36736764
PHP24325118
JavaScript351923
PO File12221

PHP code Passed 2 tests

An short overview of 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.19
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%
Functions5
▷ Named functions5100.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