84% wp-lazy-loading

Code Review | Lazy Loading Feature Plugin

WordPress plugin Lazy Loading Feature Plugin scored84%from 54 tests.

About plugin

  • Plugin page: wp-lazy-loading
  • Plugin version: 1.1
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.4
  • WordPress version: 6.3.1
  • First release: Jan 29, 2020
  • Latest release: Mar 19, 2020
  • Number of updates: 5
  • Update frequency: every 10.0 days
  • Top authors: azaozz (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

600+ active /26,469 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
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Lazy Loading Feature Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.43 ▼0.29
Dashboard /wp-admin3.31 ▲0.0046.24 ▼6.24
Posts /wp-admin/edit.php3.36 ▲0.0048.67 ▲1.21
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.94 ▼4.86
Media Library /wp-admin/upload.php3.23 ▲0.0035.52 ▼12.57

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Lazy Loading Feature Plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.20 ▼1.081.92 ▼0.2943.89 ▼5.02
Dashboard /wp-admin2,206 ▲215.85 ▲0.98108.20 ▼8.9239.81 ▼2.83
Posts /wp-admin/edit.php2,092 ▲62.01 ▼0.0139.36 ▲1.1435.92 ▲1.66
Add New Post /wp-admin/post-new.php1,532 ▼123.29 ▲0.21591.65 ▼52.5352.53 ▼10.58
Media Library /wp-admin/upload.php1,388 ▲34.22 ▲0.0598.65 ▼1.3543.60 ▲0.63

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wp-lazy-loading/functions.php
    • > /wp-content/plugins/wp-lazy-loading/wp-lazy-loading.php

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 Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: lazy loading, feature plugin

wp-lazy-loading/wp-lazy-loading.php Passed 13 tests

This is the main PHP file of "Lazy Loading Feature Plugin" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
110 characters long description:
WordPress feature plugin for testing and experimenting with automatically adding the "loading" HTML attribute.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin99 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23915199

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.71
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%
Functions7
▷ Named functions7100.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
There were not PNG files found in your plugin