99% lazyload-woocommerce

Code Review | Lazy Load for WooCommerce

WordPress plugin Lazy Load for WooCommerce scored 99% from 54 tests.

About plugin

  • Plugin page: lazyload-woocommerce
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.6.1
  • WordPress version: 5.8.1
  • First release: May 19, 2015
  • Latest release: Mar 7, 2020
  • Number of updates: 24
  • Update frequency: every 73.2 days
  • Top authors: edgewebware (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

300+ active / 6,372 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼138.51ms] Passed 4 tests

Server-side resources used by Lazy Load for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1535.35 ▲16.15
Dashboard /wp-admin3.09 ▲0.0346.88 ▲1.27
Posts /wp-admin/edit.php3.14 ▲0.0344.74 ▲1.54
Add New Post /wp-admin/post-new.php5.45 ▲0.0188.88 ▼559.68
Media Library /wp-admin/upload.php3.03 ▲0.0335.34 ▲2.84

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Lazy Load for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,815 ▲21916.20 ▲0.5614.61 ▲5.2049.92 ▲2.38
Dashboard /wp-admin2,973 ▲395.94 ▼0.02148.65 ▲5.02112.92 ▲0.14
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0163.05 ▲3.8684.82 ▼1.23
Add New Post /wp-admin/post-new.php1,672 ▼1118.89 ▲0.40392.76 ▲1.92106.61 ▼6.35
Media Library /wp-admin/upload.php1,810 ▲35.05 ▼0.01148.90 ▼9.56111.18 ▼9.86

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% 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
Please fix the following attributes:
  • Tags: There are too many tags (12 tag instead of maximum 10)
The official readme.txt is a good inspiration

lazyload-woocommerce/lazyload-woocommerce.php 85% from 13 tests

"Lazy Load for WooCommerce" version 1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 390 characters long)
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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 plugin92 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP1173485
JavaScript2174
CSS1143

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin