84% ml-slider-lightbox

Code Review | MetaSlider Lightbox

WordPress plugin MetaSlider Lightbox scored84%from 54 tests.

About plugin

Code review

54 tests

User reviews

7 reviews

Install metrics

10,000+ active /217,516 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼2.77ms] Passed 4 tests

Analyzing server-side resources used by MetaSlider Lightbox
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0838.78 ▼7.23
Dashboard /wp-admin3.38 ▲0.0752.60 ▲1.13
Posts /wp-admin/edit.php3.43 ▲0.0758.56 ▲8.82
Add New Post /wp-admin/post-new.php5.96 ▲0.0793.67 ▼4.01
Media Library /wp-admin/upload.php3.30 ▲0.0736.08 ▼0.97

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by MetaSlider Lightbox
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.38 ▲0.181.68 ▲0.0741.30 ▼1.33
Dashboard /wp-admin2,214 ▲405.60 ▼0.0185.50 ▼6.0741.37 ▲0.64
Posts /wp-admin/edit.php2,120 ▲202.03 ▲0.0341.05 ▲2.1437.35 ▲3.62
Add New Post /wp-admin/post-new.php1,537 ▲1123.27 ▲0.25678.27 ▼29.9558.66 ▼11.47
Media Library /wp-admin/upload.php1,413 ▲164.26 ▲0.1299.60 ▼5.3649.10 ▲7.55

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means 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
Almost there! Just fix the following items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/ml-slider-lightbox/ml-slider-lightbox.php
    • > /wp-content/plugins/ml-slider-lightbox/class-ml-slider-lightbox.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 Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: lightbox, wordpress slideshow lightbox, slideshow lightbox, slideshow, metaslider lightbox...

ml-slider-lightbox/ml-slider-lightbox.php Passed 13 tests

This is the main PHP file of "MetaSlider Lightbox" version 1.13.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
133 characters long description:
Adds lightbox plugin integration to MetaSlider. Requires MetaSlider and one compatible lightbox plugin to be installed and activated.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin957 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP12179498900
JSON20057

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity26.60
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity3.42
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods54
▷ Static methods2037.04%
▷ Public methods5194.44%
▷ Protected methods00.00%
▷ Private methods35.56%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin