84% lightbox-images-for-divi

Code Review | Divi Lightbox for Images

WordPress plugin Divi Lightbox for Images scored84%from 54 tests.

About plugin

  • Plugin page: lightbox-images-f...
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4
  • WordPress version: 6.3.1
  • First release: Dec 7, 2017
  • Latest release: Nov 6, 2023
  • Number of updates: 28
  • Update frequency: every 77.2 days
  • Top authors: fernandot (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

5,000+ active /70,354 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 gracefully, with no errors

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

Analyzing server-side resources used by Divi Lightbox for Images
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.98 ▼6.89
Dashboard /wp-admin3.31 ▼0.0345.59 ▼19.79
Posts /wp-admin/edit.php3.37 ▲0.0145.62 ▲1.32
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.90 ▼5.74
Media Library /wp-admin/upload.php3.24 ▲0.0133.45 ▼2.43

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Divi Lightbox for Images
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7114.32 ▼0.042.06 ▲0.3336.81 ▼7.90
Dashboard /wp-admin2,192 ▲185.49 ▼0.0982.77 ▼11.4142.79 ▲6.18
Posts /wp-admin/edit.php2,103 ▲31.97 ▼0.0438.64 ▼1.6635.34 ▼2.75
Add New Post /wp-admin/post-new.php1,526 ▼922.72 ▼2.20615.12 ▼25.0353.81 ▼8.25
Media Library /wp-admin/upload.php1,403 ▼04.16 ▼0.0598.71 ▼7.2742.51 ▼1.07

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/lightbox-images-for-divi/lightbox-images-for-divi.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: builder, popup, lightbox, divi, composer...

lightbox-images-for-divi/lightbox-images-for-divi.php 85% from 13 tests

The primary PHP file in "Divi Lightbox for Images" version 1.0.5 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Domain Path: The domain path points to a folder that does not exist ("/languages/")
  • Description: Please don't use more than 140 characters for the plugin description (currently 161 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin34 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP152334

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
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
PNG images were not found in this plugin