84% wp-jquery-lightbox

Code Review | WP jQuery Lightbox

WordPress plugin WP jQuery Lightbox scored84%from 54 tests.

About plugin

  • Plugin page: wp-jquery-lightbox
  • Plugin version: 1.4.9.1
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.2
  • WordPress version: 6.3.1
  • First release: Apr 11, 2010
  • Latest release: Nov 6, 2023
  • Number of updates: 158
  • Update frequency: every 31.4 days
  • Top authors: ulfben (97.47%)edanzer (3.16%)

Code review

54 tests

User reviews

36 reviews

Install metrics

50,000+ active /722,569 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
Installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼4.30ms] Passed 4 tests

Analyzing server-side resources used by WP jQuery Lightbox
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1237.55 ▼4.13
Dashboard /wp-admin3.43 ▲0.1248.19 ▲0.59
Posts /wp-admin/edit.php3.54 ▲0.1847.49 ▼0.65
Add New Post /wp-admin/post-new.php6.01 ▲0.1282.09 ▼13.02
Media Library /wp-admin/upload.php3.35 ▲0.1238.55 ▲6.04
jQuery Lightbox /wp-admin/options-general.php?page=jquery-lightbox-options3.3330.55

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 137 new files
Database: no new tables, 19 new options
New WordPress options
jqlb_automate
jqlb_margin_size
jqlb_comments
jqlb_showTitle
jqlb_resize_speed
can_compress_scripts
db_upgraded
theysaidso_admin_options
jqlb_showCaption
jqlb_showDownload
...

Browser metrics Passed 4 tests

Checking browser requirements for WP jQuery Lightbox
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,017 ▲25513.40 ▼0.9410.36 ▲8.5941.53 ▼0.92
Dashboard /wp-admin2,196 ▲185.49 ▼0.1984.60 ▼17.8239.58 ▼5.41
Posts /wp-admin/edit.php2,101 ▲12.02 ▲0.0035.14 ▼8.7532.13 ▼1.66
Add New Post /wp-admin/post-new.php1,529 ▼023.15 ▲0.01713.49 ▲49.3651.44 ▼14.20
Media Library /wp-admin/upload.php1,404 ▲44.22 ▼0.0097.50 ▲0.2742.02 ▼0.10
jQuery Lightbox /wp-admin/options-general.php?page=jquery-lightbox-options1,1632.0423.9732.32

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 19 options in the database
    • jqlb_resize_speed
    • jqlb_showTitle
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • jqlb_slideshow_speed
    • jqlb_showCaption
    • jqlb_navbarOnTop
    • theysaidso_admin_options
    • jqlb_use_theme_styles
    • ...

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-jquery-lightbox/wp-jquery-lightbox.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: lightbox, photo, display, gallery, photography...

wp-jquery-lightbox/wp-jquery-lightbox.php Passed 13 tests

The main PHP script in "WP jQuery Lightbox" version 1.4.9.1 is automatically included on every request by WordPress
75 characters long description:
A simple, fast, and responsive lightbox for WordPress galleries and images.

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
No dangerous file extensions were detected2,522 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
PO File194946401,389
JavaScript41062504
PHP11427321
CSS10642255
HTML11053

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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