90% gutena-lightbox

Code Review | Gutena Video Lightbox

WordPress plugin Gutena Video Lightbox scored90%from 54 tests.

About plugin

  • Plugin page: gutena-lightbox
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.2
  • WordPress version: 6.3.1
  • First release: Sep 7, 2022
  • Latest release: Apr 5, 2023
  • Number of updates: 8
  • Update frequency: every 26.3 days
  • Top authors: expresstech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active /3,738 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
This plugin's installer ran successfully

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

An overview of server-side resources used by Gutena Video Lightbox
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.0842.70 ▼3.59
Dashboard /wp-admin3.40 ▲0.0649.79 ▼2.52
Posts /wp-admin/edit.php3.52 ▲0.1249.71 ▼0.79
Add New Post /wp-admin/post-new.php6.00 ▲0.0797.35 ▼1.84
Media Library /wp-admin/upload.php3.33 ▲0.0643.55 ▲3.85

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Gutena Video Lightbox: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲4614.40 ▲0.063.27 ▲1.6242.94 ▲1.01
Dashboard /wp-admin2,195 ▲155.56 ▼0.0985.54 ▼10.5736.26 ▼3.64
Posts /wp-admin/edit.php2,100 ▼32.00 ▲0.0339.36 ▲0.9733.66 ▼4.42
Add New Post /wp-admin/post-new.php6,377 ▲4,84927.94 ▲4.77844.70 ▲177.8540.07 ▼15.60
Media Library /wp-admin/upload.php1,400 ▼04.29 ▲0.0998.01 ▼10.8842.17 ▼5.38

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 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 Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: lightbox, popup, vimeo, block, youtube

gutena-lightbox/gutena-lightbox.php Passed 13 tests

"Gutena Video Lightbox" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
21 characters long description:
Gutena Video Lightbox

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 detected336 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP643121171
JSON200138
SVG50020
JavaScript4004
CSS3003

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity10.50
▷ Minimum class complexity9.00
▷ Maximum class complexity12.00
Average method complexity2.58
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods216.67%
▷ Public methods1083.33%
▷ Protected methods00.00%
▷ Private methods216.67%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/gutena/gutena-ecosys-onboard/assets/cta/bg.png6.31KB3.12KB▼ 50.59%