84% slitweb-divi-lightbox-for-jetpack

Code Review | Divi Lightbox for Jetpack Tiled Galleries

WordPress plugin Divi Lightbox for Jetpack Tiled Galleries scored84%from 54 tests.

About plugin

  • Plugin page: slitweb-divi-ligh...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4.1
  • WordPress version: 6.3.1
  • First release: Jul 25, 2017
  • Latest release: Nov 22, 2023
  • Number of updates: 17
  • Update frequency: every 135.9 days
  • Top authors: Jyria (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,737 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
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.71ms] Passed 4 tests

A check of server-side resources used by Divi Lightbox for Jetpack Tiled Galleries
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.59 ▼2.72
Dashboard /wp-admin3.32 ▲0.0146.97 ▼5.60
Posts /wp-admin/edit.php3.37 ▲0.0147.63 ▼2.30
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.59 ▼12.22
Media Library /wp-admin/upload.php3.24 ▲0.0136.48 ▲2.11

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Divi Lightbox for Jetpack Tiled Galleries
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.67 ▲0.321.84 ▲0.1844.40 ▲2.26
Dashboard /wp-admin2,198 ▲185.63 ▼0.0994.94 ▼7.1842.59 ▼1.11
Posts /wp-admin/edit.php2,103 ▲31.94 ▼0.0439.24 ▲3.2137.37 ▲1.03
Add New Post /wp-admin/post-new.php1,526 ▼023.06 ▼0.40659.80 ▲58.8754.22 ▲2.95
Media Library /wp-admin/upload.php1,400 ▼04.18 ▲0.0096.31 ▼6.7242.32 ▼0.49

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/slitweb-divi-lightbox-for-jetpack/slitweb-divi-lightbox-for-jetpack.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% 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
8 plugin tags: divi, lightbox, tiled gallery, tiled galleries, elegant themes...

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

The main PHP file in "Divi Lightbox for Jetpack Tiled Galleries" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 216 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected199 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PO File2101084
PHP142470
Markdown133045

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code1.75
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%
Functions1
▷ Named functions1100.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
PNG images were not found in this plugin