90% disable-lazy-loading

Code Review | Disable Lazy Load

WordPress plugin Disable Lazy Load scored90%from 54 tests.

About plugin

  • Plugin page: disable-lazy-loading
  • Plugin version: 1.9
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.4
  • WordPress version: 6.3.1
  • First release: Jul 29, 2020
  • Latest release: Oct 21, 2023
  • Number of updates: 14
  • Update frequency: every 84.2 days
  • Top authors: specialk (100%)

Code review

54 tests

User reviews

22 reviews

Install metrics

8,000+ active /74,331 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼3.20ms] Passed 4 tests

A check of server-side resources used by Disable Lazy Load
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.71 ▲0.48
Dashboard /wp-admin3.31 ▼0.0445.16 ▼13.25
Posts /wp-admin/edit.php3.37 ▲0.0050.29 ▲0.76
Add New Post /wp-admin/post-new.php5.90 ▲0.0088.37 ▼0.78
Media Library /wp-admin/upload.php3.24 ▲0.0038.40 ▲2.16

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Disable Lazy Load
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,779 ▲3314.37 ▲0.101.67 ▲0.0742.72 ▲0.18
Dashboard /wp-admin2,192 ▲155.56 ▼0.0782.60 ▼3.4171.11 ▲30.66
Posts /wp-admin/edit.php2,106 ▲61.98 ▼0.0438.01 ▲3.2733.40 ▼3.78
Add New Post /wp-admin/post-new.php1,537 ▲1118.20 ▼4.59650.84 ▼1.81125.45 ▲75.29
Media Library /wp-admin/upload.php1,394 ▼04.21 ▼0.00101.65 ▲1.0870.12 ▲26.85

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 did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: images, lazy, load, lazyload, lazy load

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

Analyzing the main PHP file in "Disable Lazy Load" version 1.9
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin8 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP17318

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions1
▷ Named functions1100.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
No PNG images were found in this plugin