78% disable-lazy-load

Code Review | Disable Lazy Load

WordPress plugin Disable Lazy Load scored 78% from 54 tests.

About plugin

  • Plugin page: disable-lazy-load
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.1
  • WordPress version: 6.3.1
  • First release: Aug 15, 2020
  • Latest release: Dec 13, 2022
  • Number of updates: 10
  • Update frequency: every 85.0 days
  • Top authors: sachyya sachet (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

700+ active / 5,201 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.02MB] [CPU: ▼7.71ms] Passed 4 tests

A check of server-side resources used by Disable Lazy Load
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0233.62 ▼9.84
Dashboard /wp-admin3.32 ▲0.0241.15 ▼3.81
Posts /wp-admin/edit.php3.37 ▲0.0247.78 ▲5.07
Add New Post /wp-admin/post-new.php5.90 ▲0.0278.34 ▼16.33
Media Library /wp-admin/upload.php3.24 ▲0.0233.59 ▼0.87

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

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

Browser metrics Passed 4 tests

Disable Lazy Load: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.22 ▼1.151.81 ▼0.2435.36 ▼7.28
Dashboard /wp-admin2,203 ▲115.90 ▲0.95112.34 ▲4.4543.28 ▲3.44
Posts /wp-admin/edit.php2,092 ▲31.99 ▼0.0039.77 ▲3.1136.94 ▲3.16
Add New Post /wp-admin/post-new.php1,514 ▼2017.65 ▼5.41691.80 ▲2.2558.89 ▼12.21
Media Library /wp-admin/upload.php1,388 ▼04.21 ▲0.0591.43 ▼18.5540.57 ▼5.11

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/disable-lazy-load/disable-lazy-load.php
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      require_once(): Failed opening required 'DLL_PATH/vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/disable-lazy-load/src/class-disable-lazy-load.php on line 21
    • > PHP Warning
      require_once(DLL_PATH/vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/disable-lazy-load/src/class-disable-lazy-load.php on line 21
    • > PHP Warning
      Use of undefined constant DLL_PATH - assumed 'DLL_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/disable-lazy-load/src/class-disable-lazy-load.php on line 21
    • > PHP Warning
      Use of undefined constant DLL_VERSION - assumed 'DLL_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/disable-lazy-load/src/class-disable-lazy-load.php on line 11

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: skip-lazy-loading, images, disable-lazy-load, lazy-loading

disable-lazy-load/disable-lazy-load.php 92% from 13 tests

"Disable Lazy Load" version 1.0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("5.5" instead of "6.1")

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 plugin564 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP10147194522
Markdown119041
JSON1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity14.80
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.77
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
Methods40
▷ Static methods615.00%
▷ Public methods3997.50%
▷ Protected methods00.00%
▷ Private methods12.50%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin