89% best-youtube-video-lazyload

Code Review | Best Youtube Video LazyLoad

WordPress plugin Best Youtube Video LazyLoad scored89%from 54 tests.

About plugin

  • Plugin page: best-youtube-vide...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.8
  • WordPress version: 6.3.1
  • First release: Oct 28, 2021
  • Latest release: Nov 29, 2021
  • Number of updates: 6
  • Update frequency: every 8.0 days
  • Top authors: monzuralam (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /400 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.00MB] [CPU: ▼9.37ms] Passed 4 tests

This is a short check of server-side resources used by Best Youtube Video LazyLoad
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.96 ▲2.83
Dashboard /wp-admin3.31 ▼0.0350.11 ▼17.45
Posts /wp-admin/edit.php3.37 ▲0.0145.91 ▼8.55
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.55 ▼14.31
Media Library /wp-admin/upload.php3.24 ▲0.0140.12 ▲3.13

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Best Youtube Video LazyLoad
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲1114.25 ▼0.101.70 ▼0.8044.25 ▲1.62
Dashboard /wp-admin2,198 ▲215.59 ▼0.0783.80 ▼3.6437.79 ▼2.37
Posts /wp-admin/edit.php2,100 ▼32.01 ▼0.0135.25 ▼0.0334.98 ▲3.06
Add New Post /wp-admin/post-new.php1,526 ▼022.98 ▼0.14679.66 ▼22.7660.23 ▲6.74
Media Library /wp-admin/upload.php1,400 ▲34.09 ▼0.18109.26 ▼7.2248.33 ▼0.68

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

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)
Good news, no errors were detected

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: lazyload, yt-lazy-load, youtube-video-lazyload, video-lazyload

best-youtube-video-lazyload/wp-youtube-video-lazyload.php 69% from 13 tests

"Best Youtube Video LazyLoad" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.6" instead of "5.2")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Requires PHP: Required version must be the same as the one declared in readme.txt ("5.2" instead of "5.6")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("best-youtube-video-lazyload.php" instead of "wp-youtube-video-lazyload.php")

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
Everything looks great! No dangerous files found in this plugin182 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS1111585
JavaScript2373167
PHP292330

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
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
No PNG files were detected