89% disable-wp-lazy-load

Code Review | Disable WP Lazy Load

WordPress plugin Disable WP Lazy Load scored89%from 54 tests.

About plugin

  • Plugin page: disable-wp-lazy-load
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5.0-5.5.0
  • WordPress version: 6.3.1
  • First release: Aug 4, 2020
  • Latest release: Aug 4, 2020
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: webtemyk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /547 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.19ms] Passed 4 tests

A check of server-side resources used by Disable WP Lazy Load
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.81 ▼1.27
Dashboard /wp-admin3.31 ▲0.0149.61 ▼0.82
Posts /wp-admin/edit.php3.36 ▲0.0053.40 ▲2.82
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.09 ▼14.31
Media Library /wp-admin/upload.php3.23 ▲0.0035.33 ▼0.36

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Disable WP Lazy Load
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,779 ▲1814.68 ▲0.311.70 ▼0.1137.80 ▼2.72
Dashboard /wp-admin2,183 ▲35.56 ▼0.1188.71 ▼4.4672.44 ▲29.38
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0538.62 ▼6.8034.07 ▼4.74
Add New Post /wp-admin/post-new.php1,533 ▼223.07 ▲4.88709.59 ▲58.3955.56 ▼8.71
Media Library /wp-admin/upload.php1,397 ▲34.20 ▲0.0099.62 ▼1.4571.89 ▲26.21

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: lazy load, images, disable

disable-wp-lazy-load/disable-wp-lazy-load.php 85% from 13 tests

The entry point to "Disable WP Lazy Load" version 1.0.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

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
Good job! No executable or dangerous file extensions detected9 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23129

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
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

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