83% image-video-lightbox

Code Review | Image & Video Lightbox

WordPress plugin Image & Video Lightbox scored83%from 54 tests.

About plugin

  • Plugin page: image-video-lightbox
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.2
  • WordPress version: 6.3.1
  • First release: Jun 13, 2023
  • Latest release: Jun 13, 2023
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: aryadhiratara (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /388 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.55ms] Passed 4 tests

Analyzing server-side resources used by Image & Video Lightbox
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0247.95 ▲2.22
Dashboard /wp-admin3.32 ▲0.0251.49 ▼1.78
Posts /wp-admin/edit.php3.38 ▲0.0250.29 ▼2.21
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.15 ▼5.47
Media Library /wp-admin/upload.php3.25 ▲0.0236.81 ▼4.75

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Image & Video Lightbox
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.35 ▼0.311.66 ▼0.3545.48 ▲1.77
Dashboard /wp-admin2,195 ▲245.60 ▼0.0187.70 ▼9.0739.02 ▼5.98
Posts /wp-admin/edit.php2,100 ▼31.95 ▲0.0034.10 ▼5.5235.88 ▲1.11
Add New Post /wp-admin/post-new.php1,535 ▲918.08 ▼4.95631.39 ▼76.9671.68 ▲14.90
Media Library /wp-admin/upload.php1,400 ▼04.20 ▲0.02100.29 ▼4.9843.45 ▼5.68

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • 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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/image-video-lightbox/js/index.php
    • > /wp-content/plugins/image-video-lightbox/css/index.php
    • > /wp-content/plugins/image-video-lightbox/index.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention: You can take inspiration from this readme.txt

image-video-lightbox/plugin.php 85% from 13 tests

The primary PHP file in "Image & Video Lightbox" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 298 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("image-video-lightbox.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin112 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP23015111
JavaScript1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity3.67
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin