89% video-lightbox-block

Code Review | Modalvideo - video lightbox blocks - video popup blocks - video modal blocks for WordPress gutenberg blocks

WordPress plugin Modalvideo - video lightbox blocks - video popup blocks - video modal blocks for WordPress gutenberg blocks scored 89% from 54 tests.

About plugin

  • Plugin page: video-lightbox-block
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: Jul 13, 2022
  • Latest release: Jul 13, 2022
  • Number of updates: 9
  • Update frequency: N/A
  • Top authors: gutenplayer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 1,031 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

Server-side resources used by Modalvideo - video lightbox blocks - video popup blocks - video modal blocks for WordPress gutenberg blocks
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.67 ▼1.51
Dashboard /wp-admin3.32 ▲0.0247.00 ▲1.51
Posts /wp-admin/edit.php3.37 ▲0.0249.73 ▼1.75
Add New Post /wp-admin/post-new.php5.91 ▲0.0292.73 ▼3.35
Media Library /wp-admin/upload.php3.25 ▲0.0237.71 ▲3.15

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Modalvideo - video lightbox blocks - video popup blocks - video modal blocks for WordPress gutenberg blocks
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲10214.90 ▲0.325.52 ▲3.6844.74 ▲2.57
Dashboard /wp-admin2,214 ▲235.35 ▲0.50112.27 ▲5.8439.47 ▼10.31
Posts /wp-admin/edit.php2,094 ▲52.20 ▲0.2141.64 ▲4.0037.10 ▼1.25
Add New Post /wp-admin/post-new.php6,581 ▲5,06729.39 ▲11.83882.25 ▲225.5858.23 ▼0.82
Media Library /wp-admin/upload.php1,393 ▲54.64 ▲0.43115.65 ▲4.5845.76 ▼0.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
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
The SRP test was a success

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention: You can take inspiration from this readme.txt

video-lightbox-block/videolightboxblock.php 77% from 13 tests

"Modalvideo - video lightbox blocks - video popup blocks - video modal blocks for WordPress gutenberg blocks" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 148 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("video-lightbox-block.php" instead of "videolightboxblock.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
Success! There were no dangerous files found in this plugin63 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP3101959
CSS2002
JavaScript2002

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.05
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin