90% easy-lightbox-wp

Code Review | Easy Lightbox - Best Image, Gallery and Video Lightbox for WordPress

WordPress plugin Easy Lightbox - Best Image, Gallery and Video Lightbox for WordPress scored90%from 54 tests.

About plugin

  • Plugin page: easy-lightbox-wp
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0
  • WordPress version: 6.3.1
  • First release: Aug 2, 2014
  • Latest release: May 28, 2022
  • Number of updates: 15
  • Update frequency: every 190.5 days
  • Top authors: shapedplugin (66.67%)lazypersons (40%)

Code review

54 tests

User reviews

9 reviews

Install metrics

1,000+ active /23,458 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼7.45ms] Passed 4 tests

Analyzing server-side resources used by Easy Lightbox - Best Image, Gallery and Video Lightbox for WordPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.08 ▲0.13
Dashboard /wp-admin3.31 ▼0.0345.38 ▼14.25
Posts /wp-admin/edit.php3.36 ▲0.0143.94 ▼1.22
Add New Post /wp-admin/post-new.php5.89 ▲0.0180.77 ▼11.82
Media Library /wp-admin/upload.php3.24 ▲0.0133.27 ▼2.50

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy Lightbox - Best Image, Gallery and Video Lightbox for WordPress
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,902 ▲14113.58 ▼0.959.20 ▲7.6244.50 ▲4.33
Dashboard /wp-admin2,192 ▲155.49 ▼0.1885.98 ▲0.3339.29 ▼6.12
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0038.91 ▲2.2934.48 ▼0.40
Add New Post /wp-admin/post-new.php1,526 ▼223.20 ▼0.04655.35 ▼2.7655.84 ▲5.52
Media Library /wp-admin/upload.php1,397 ▼64.14 ▼0.0594.07 ▼12.3940.20 ▼7.57

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

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 everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: jquery lightbox, popup video, video lightbox, lightbox, popup

easy-lightbox-wp/plugin-main.php 92% from 13 tests

The main PHP file in "Easy Lightbox - Best Image, Gallery and Video Lightbox for WordPress" ver. 1.1.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("easy-lightbox-wp.php" instead of "plugin-main.php")

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
Good job! No executable or dangerous file extensions detected31 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP162828
JavaScript2172
CSS1001

PHP code Passed 2 tests

Analyzing 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.10
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
3 PNG files occupy 0.15MB with 0.15MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
imgs/litebox-close.png52.50KB1.11KB▼ 97.89%
imgs/litebox-prev.png51.08KB0.54KB▼ 98.94%
imgs/litebox-next.png51.79KB0.54KB▼ 98.95%