84% lazy-load-disable

Code Review | Disable Lazy Load (Deactivate Lazy Load) Plugin

WordPress plugin Disable Lazy Load (Deactivate Lazy Load) Plugin scored84%from 54 tests.

About plugin

  • Plugin page: lazy-load-disable
  • Plugin version: 1.5
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.3
  • WordPress version: 6.3.1
  • First release: May 24, 2021
  • Latest release: Oct 17, 2023
  • Number of updates: 47
  • Update frequency: every 18.6 days
  • Top authors: sminozzi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,732 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
Installer ran successfully

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

An overview of server-side resources used by Disable Lazy Load (Deactivate Lazy Load) Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.40 ▼3.10
Dashboard /wp-admin3.41 ▲0.0644.58 ▼18.70
Posts /wp-admin/edit.php3.52 ▲0.1644.18 ▼6.88
Add New Post /wp-admin/post-new.php5.99 ▲0.1076.66 ▼28.63
Media Library /wp-admin/upload.php3.33 ▲0.1034.88 ▼0.73

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
bill_show_warnings
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Disable Lazy Load (Deactivate Lazy Load) Plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲6014.71 ▲0.102.19 ▲0.6035.72 ▼5.82
Dashboard /wp-admin2,210 ▲305.58 ▼0.0588.98 ▲1.6690.70 ▲48.52
Posts /wp-admin/edit.php2,115 ▲151.97 ▲0.0340.74 ▲5.6629.48 ▼6.44
Add New Post /wp-admin/post-new.php1,546 ▲2018.43 ▼5.34686.14 ▼6.0060.60 ▲9.19
Media Library /wp-admin/upload.php1,415 ▲124.11 ▼0.1095.56 ▼3.1173.48 ▲28.02

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • bill_show_warnings
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/lazy-load-disable/includes/checkup/class_bill_catch_errors.php
    • > /wp-content/plugins/lazy-load-disable/includes/checkup/bill_class_diagnose.php
    • > /wp-content/plugins/lazy-load-disable/lazy-load-disable.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: images, deactivate lazy load, disable lazy load, disable

lazy-load-disable/lazy-load-disable.php Passed 13 tests

Analyzing the main PHP file in "Disable Lazy Load (Deactivate Lazy Load) Plugin" version 1.5
85 characters long description:
To prevent lazy loading, all you need to do is ensure that the plugin remains active.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected947 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3127104947

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity24.00
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods16.25%
▷ Public methods1487.50%
▷ Protected methods00.00%
▷ Private methods212.50%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/checkup/bell.png1.07KB0.27KB▼ 74.45%