94% lazy-load-xt

Code Review | Lazy Load XT

WordPress plugin Lazy Load XT scored 94% from 54 tests.

About plugin

  • Plugin page: lazy-load-xt
  • Plugin version: 0.5.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.4.2
  • WordPress version: 5.8.1
  • First release: Feb 13, 2015
  • Latest release: Feb 22, 2016
  • Number of updates: 24
  • Update frequency: every 15.6 days
  • Top authors: dbhynds (100%)

Code review

54 tests

User reviews

27 reviews

Install metrics

1,000+ active / 27,755 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.11MB] [CPU: ▼137.37ms] Passed 4 tests

A check of server-side resources used by Lazy Load XT
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.1737.40 ▲11.56
Dashboard /wp-admin3.17 ▲0.1151.90 ▲6.26
Posts /wp-admin/edit.php3.25 ▲0.1441.85 ▼7.46
Add New Post /wp-admin/post-new.php5.53 ▲0.0989.51 ▼546.34
Media Library /wp-admin/upload.php3.11 ▲0.1129.20 ▼1.95
Lazy Load XT /wp-admin/options-general.php?page=lazyloadxt3.0829.83

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 2 new options
New WordPress options
lazyloadxt_general
lazyloadxt_version

Browser metrics Passed 4 tests

An overview of browser requirements for Lazy Load XT
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,824 ▲18716.26 ▲0.3515.67 ▲7.2448.83 ▼0.11
Dashboard /wp-admin2,975 ▲445.91 ▼0.06134.35 ▼11.39117.17 ▼6.50
Posts /wp-admin/edit.php2,744 ▲52.70 ▼0.0062.28 ▼2.3497.68 ▲8.53
Add New Post /wp-admin/post-new.php1,679 ▲718.86 ▲0.05379.36 ▲7.34107.35 ▼10.03
Media Library /wp-admin/upload.php1,815 ▲55.00 ▼0.01161.92 ▲18.89117.96 ▲1.13
Lazy Load XT /wp-admin/options-general.php?page=lazyloadxt1,3272.0957.5685.40

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables

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 | 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 following issues need your attention
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/lazy-load-xt/settings.php
    • > /wp-content/plugins/lazy-load-xt/lazy-load-xt.php

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

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: image, youtube, vimeo, media, lazy load xt...

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

"Lazy Load XT" version 0.5.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 254 characters long)

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
Everything looks great! No dangerous files found in this plugin1,104 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript16163179594
PHP483122494
CSS401016

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity29.50
▷ Minimum class complexity14.00
▷ Maximum class complexity45.00
Average method complexity3.71
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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 files were detected