84% lightbox-pop

Code Review | Lightbox Pop - Responsive Lightbox

WordPress plugin Lightbox Pop - Responsive Lightbox scored84%from 54 tests.

About plugin

  • Plugin page: lightbox-pop
  • Plugin version: 2.3.3
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.9.4
  • WordPress version: 6.3.1
  • First release: Mar 1, 2012
  • Latest release: Jun 7, 2018
  • Number of updates: 58
  • Update frequency: every 39.5 days
  • Top authors: f1logic (100%)

Code review

54 tests

User reviews

23 reviews

Install metrics

500+ active /200,442 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼6.49ms] Passed 4 tests

This is a short check of server-side resources used by Lightbox Pop - Responsive Lightbox
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1234.85 ▼2.93
Dashboard /wp-admin3.40 ▲0.0941.70 ▼7.25
Posts /wp-admin/edit.php3.43 ▲0.0841.12 ▼1.95
Add New Post /wp-admin/post-new.php6.11 ▲0.2278.63 ▼12.24
Media Library /wp-admin/upload.php3.34 ▲0.1132.09 ▼3.53
About /wp-admin/admin.php?page=lightbox-popup-about3.3630.79
Lightbox Popup /wp-admin/admin.php?page=lightbox-popup-settings3.4335.11
Basic Settings /wp-admin/admin.php?page=lightbox-basic-settings3.3032.49

Server storage [IO: ▲0.18MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 39 new files
Database: no new tables, 47 new options
New WordPress options
xyz_lbx_enable
xyz_tinymce
xyz_lbx_bottom
xyz_lbx_showing_option
xyz_lbx_cache_enable
xyz_lbx_left_dim
xyz_lbx_opacity
xyz_lbx_free_version
xyz_lbx_delay
xyz_lbx_mode
...

Browser metrics Passed 4 tests

Lightbox Pop - Responsive Lightbox: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,999 ▲25314.14 ▼0.218.05 ▲6.4139.95 ▲2.95
Dashboard /wp-admin2,243 ▲555.88 ▲0.0393.99 ▼6.9276.47 ▲38.05
Posts /wp-admin/edit.php2,126 ▲372.03 ▼0.0234.33 ▼1.1231.69 ▲1.20
Add New Post /wp-admin/post-new.php1,562 ▲3422.93 ▼0.16757.59 ▲73.5048.22 ▼8.60
Media Library /wp-admin/upload.php1,422 ▲344.23 ▲0.0197.25 ▼0.8783.37 ▲37.96
About /wp-admin/admin.php?page=lightbox-popup-about1,8261.6926.2462.10
Lightbox Popup /wp-admin/admin.php?page=lightbox-popup-settings2,9347.09142.14127.01
Basic Settings /wp-admin/admin.php?page=lightbox-basic-settings1,2521.7224.8340.60

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
  • Zombie WordPress options were found after uninstall: 12 options
    • widget_recent-posts
    • xyz_lbx_free_version
    • xyz_credit_link
    • xyz_lbx_bottom_dim
    • xyz_lbx_right_dim
    • xyz_lbx_bottom
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • xyz_lbx_right
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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 fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/lightbox-pop/admin/footer.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tags: There are too many tags (15 tag instead of maximum 10)
You can look at the official readme.txt

lightbox-pop/lightbox-pop.php 92% from 13 tests

The main file in "Lightbox Pop - Responsive Lightbox" v. 2.3.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 434 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected2,423 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP16380631,915
CSS11253470
JavaScript27138

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions26
▷ Named functions26100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
18 PNG files occupy 0.06MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/star.png3.35KB0.83KB▼ 75.35%
images/cross.png0.75KB0.65KB▼ 12.83%
images/facebook.png0.65KB0.65KB▼ 0.75%
images/tick.png0.91KB0.87KB▼ 4.30%
images/lightbox-popup.png0.62KB0.74KB0.00%