84% simple-lazy-load-videos

Code Review | Simple Lazy Load Videos

WordPress plugin Simple Lazy Load Videos scored84%from 54 tests.

About plugin

  • Plugin page: simple-lazy-load-...
  • Plugin version: 1.3.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.4.1
  • WordPress version: 6.3.1
  • First release: Jan 8, 2020
  • Latest release: Nov 15, 2023
  • Number of updates: 98
  • Update frequency: every 14.4 days
  • Top authors: RAD_ (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active /5,507 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Simple Lazy Load Videos
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.29 ▼0.78
Dashboard /wp-admin3.33 ▼0.0145.85 ▼16.62
Posts /wp-admin/edit.php3.45 ▲0.0945.63 ▼0.70
Add New Post /wp-admin/post-new.php5.92 ▲0.0390.10 ▼52.80
Media Library /wp-admin/upload.php3.26 ▲0.0331.15 ▼4.50
Simple Lazy Load Videos /wp-admin/options-general.php?page=simple-lazy-load-videos3.2529.48

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Simple Lazy Load Videos
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲5114.25 ▼0.101.89 ▲0.1145.09 ▲3.54
Dashboard /wp-admin2,193 ▲125.52 ▼0.1986.82 ▼17.5138.30 ▼3.65
Posts /wp-admin/edit.php2,104 ▲41.95 ▲0.0138.50 ▲0.3634.90 ▲0.24
Add New Post /wp-admin/post-new.php1,529 ▲323.53 ▲0.30662.27 ▼42.1752.38 ▼12.78
Media Library /wp-admin/upload.php1,407 ▲104.26 ▲0.00100.25 ▲2.2542.47 ▼2.70
Simple Lazy Load Videos /wp-admin/options-general.php?page=simple-lazy-load-videos8402.0125.7727.45

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/simple-lazy-load-videos/simple-lazy-load-videos.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: performance, youtube, vimeo, video

simple-lazy-load-videos/simple-lazy-load-videos.php Passed 13 tests

The primary PHP file in "Simple Lazy Load Videos" version 1.3.0 is used by WordPress to initiate all plugin functionality
59 characters long description:
Simple Lazy Load for embedded video from Youtube and Vimeo.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin520 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP8167417431
CSS211588
JavaScript1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity5.00
▷ Minimum class complexity1.00
▷ Maximum class complexity12.00
Average method complexity1.88
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods32
▷ Static methods39.38%
▷ Public methods32100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants5
▷ Global constants5100.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
PNG images were not found in this plugin