84% fs-lazy-load

Code Review | Lightest Lazy Load

WordPress plugin Lightest Lazy Load scored84%from 54 tests.

About plugin

  • Plugin page: fs-lazy-load
  • Plugin version: 1.0
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0-5.6
  • WordPress version: 6.3.1
  • First release: Jan 2, 2021
  • Latest release: Jan 3, 2021
  • Number of updates: 2
  • Update frequency: every 2.5 days
  • Top authors: francescosche (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /319 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
This plugin's installer ran successfully

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

An overview of server-side resources used by Lightest Lazy Load
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.64 ▼4.09
Dashboard /wp-admin3.31 ▲0.0144.14 ▼7.18
Posts /wp-admin/edit.php3.36 ▲0.0042.68 ▼3.76
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.13 ▼10.07
Media Library /wp-admin/upload.php3.23 ▲0.0032.60 ▼2.19

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Lightest Lazy Load
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲5713.69 ▼0.932.15 ▲0.0640.62 ▼4.33
Dashboard /wp-admin2,203 ▲205.82 ▲0.8697.13 ▼25.0339.91 ▼3.35
Posts /wp-admin/edit.php2,089 ▼02.00 ▲0.0135.15 ▼2.4132.30 ▼3.28
Add New Post /wp-admin/post-new.php1,534 ▲1523.24 ▲0.15641.07 ▼47.2656.16 ▼5.50
Media Library /wp-admin/upload.php1,388 ▼04.25 ▲0.0295.74 ▼13.1241.87 ▼6.89

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/fs-lazy-load/fs-lazy-load.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Tags: There are too many tags (11 tag instead of maximum 10)
The official readme.txt is a good inspiration

fs-lazy-load/fs-lazy-load.php Passed 13 tests

The principal PHP file in "Lightest Lazy Load" v. 1.0 is loaded by WordPress automatically on each request
84 characters long description:
Il plugin per il Lazy Load delle immagini più leggero che tu possa trovare in giro!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin56 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP151031
SVG10125

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.08
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.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
6 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
icon-128x128.png5.25KB2.60KB▼ 50.58%
banner-1544x500-rtl.png8.58KB4.30KB▼ 49.87%
banner-772x250-rtl.png3.78KB1.95KB▼ 48.36%
icon-256x256.png8.19KB4.03KB▼ 50.79%
banner-772x250.png3.78KB1.95KB▼ 48.36%