89% wp-lazy-loaded-images

Code Review | WP Lazy Loaded Images

WordPress plugin WP Lazy Loaded Images scored 89% from 54 tests.

About plugin

  • Plugin page: wp-lazy-loaded-im...
  • Plugin version: 2.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8.0-5.1.0
  • WordPress version: 6.3.1
  • First release: Oct 1, 2016
  • Latest release: Mar 1, 2019
  • Number of updates: 16
  • Update frequency: every 55.1 days
  • Top authors: Omac (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 2,276 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
Install script ran successfully

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

An overview of server-side resources used by WP Lazy Loaded Images
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0538.42 ▼2.50
Dashboard /wp-admin3.34 ▲0.0344.43 ▼7.10
Posts /wp-admin/edit.php3.39 ▲0.0343.00 ▼4.57
Add New Post /wp-admin/post-new.php5.92 ▲0.0392.90 ▼3.85
Media Library /wp-admin/upload.php3.26 ▲0.0335.09 ▲1.00

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WP Lazy Loaded Images
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲4513.59 ▼0.793.17 ▲0.8742.85 ▼1.07
Dashboard /wp-admin2,206 ▲184.84 ▼0.04110.50 ▲3.6641.96 ▼4.54
Posts /wp-admin/edit.php2,089 ▼01.96 ▼0.0734.69 ▼7.1635.78 ▼2.83
Add New Post /wp-admin/post-new.php1,542 ▲2318.20 ▼5.19594.41 ▼17.0053.01 ▲5.13
Media Library /wp-admin/upload.php1,388 ▼34.22 ▲0.1094.91 ▼7.0540.37 ▼5.27

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
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

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
Even though no errors were found, this is by no means an exhaustive test

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === wp-lazy-loaded-images === )
The official readme.txt might help

wp-lazy-loaded-images/lazy-loaded-images.php 92% from 13 tests

The principal PHP file in "WP Lazy Loaded Images" v. 2.0.5 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-lazy-loaded-images.php" instead of "lazy-loaded-images.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected163 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP15683162
JavaScript1011

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity32.00
▷ Minimum class complexity32.00
▷ Maximum class complexity32.00
Average method complexity4.38
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods111.11%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin