89% disable-core-lazy-loading

Code Review | Disable Lazy Loading

WordPress plugin Disable Lazy Loading scored89%from 54 tests.

About plugin

  • Plugin page: disable-core-lazy...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.5
  • WordPress version: 6.3.1
  • First release: Aug 19, 2020
  • Latest release: Aug 19, 2020
  • Number of updates: 8
  • Update frequency: every 0.9 days
  • Top authors: sharaz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /447 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼10.73ms] Passed 4 tests

An overview of server-side resources used by Disable Lazy Loading
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.13 ▼2.03
Dashboard /wp-admin3.42 ▲0.0747.54 ▼20.63
Posts /wp-admin/edit.php3.47 ▲0.1146.47 ▲3.87
Add New Post /wp-admin/post-new.php5.91 ▲0.0279.28 ▼23.22
Media Library /wp-admin/upload.php3.25 ▲0.0334.85 ▲2.97
Lazy Loading /wp-admin/options-general.php?page=lazy_loading3.2535.08

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Disable Lazy Loading
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,983 ▲23714.86 ▲0.461.84 ▲0.1340.51 ▼6.22
Dashboard /wp-admin2,361 ▲1706.61 ▲0.79118.63 ▲14.1439.25 ▼4.61
Posts /wp-admin/edit.php2,267 ▲1753.64 ▲1.6549.74 ▲11.8029.00 ▼9.99
Add New Post /wp-admin/post-new.php1,529 ▲1023.29 ▲0.04600.04 ▼4.6333.94 ▼27.33
Media Library /wp-admin/upload.php1,400 ▲124.29 ▲0.0882.46 ▼16.8639.71 ▼2.03
Lazy Loading /wp-admin/options-general.php?page=lazy_loading1,0323.4444.8424.61

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • dll_basics
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Donate link: Invalid URI found ("")
You can take inspiration from this readme.txt

disable-core-lazy-loading/wp-disable-lazy-laoding.php 85% from 13 tests

The main PHP script in "Disable Lazy Loading" version 1.0.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("disable-core-lazy-loading.php" instead of "wp-disable-lazy-laoding.php")
  • Domain Path: The domain path folder was not found ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin536 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4163356536

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity26.67
▷ Minimum class complexity3.00
▷ Maximum class complexity69.00
Average method complexity2.24
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods46
▷ Static methods12.17%
▷ Public methods4597.83%
▷ Protected methods00.00%
▷ Private methods12.17%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin