90% lazy-load-image-filter

Code Review | Lazy Load Image Filter

WordPress plugin Lazy Load Image Filter scored90%from 54 tests.

About plugin

  • Plugin page: lazy-load-image-f...
  • Plugin version: 1.0.5
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-6.0.0
  • WordPress version: 6.3.1
  • First release: Apr 26, 2022
  • Latest release: May 6, 2022
  • Number of updates: 11
  • Update frequency: every 0.9 days
  • Top authors: chriskroon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,471 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Lazy Load Image Filter
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0343.45 ▲1.28
Dashboard /wp-admin3.31 ▲0.0150.42 ▼3.92
Posts /wp-admin/edit.php3.36 ▲0.0048.42 ▼1.04
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.12 ▼19.51
Media Library /wp-admin/upload.php3.24 ▲0.0036.29 ▼1.98

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Lazy Load Image Filter
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.28 ▼0.401.71 ▲0.0744.06 ▲2.73
Dashboard /wp-admin2,198 ▲215.63 ▼0.0097.16 ▲5.9741.86 ▲2.20
Posts /wp-admin/edit.php2,100 ▲32.04 ▲0.0436.55 ▲0.3034.47 ▲1.34
Add New Post /wp-admin/post-new.php1,525 ▼117.69 ▲0.24641.33 ▼46.5254.84 ▲1.00
Media Library /wp-admin/upload.php1,403 ▲64.24 ▼0.0099.92 ▼9.8739.97 ▼8.49

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: image, lazy load, lazy loading, performance

lazy-load-image-filter/lazy-load-image-filter.php 92% from 13 tests

Analyzing the main PHP file in "Lazy Load Image Filter" version 1.0.5
The following require your attention:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

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
Everything looks great! No dangerous files found in this plugin26 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP291926

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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 files were detected