83% lazy-load-background-images-for-elementor

Code Review | Lazy Load Elementor Background Images

WordPress plugin Lazy Load Elementor Background Images scored 83% from 54 tests.

About plugin

  • Plugin page: lazy-load-backgro...
  • Plugin version: 1.1.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.3.2
  • WordPress version: 6.3.1
  • First release: Feb 11, 2020
  • Latest release: Mar 18, 2020
  • Number of updates: 6
  • Update frequency: every 6.2 days
  • Top authors: jrevillini (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

2,000+ active / 10,779 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
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼2.23ms] Passed 4 tests

Server-side resources used by Lazy Load Elementor Background Images
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0641.51 ▼1.47
Dashboard /wp-admin3.36 ▲0.0543.52 ▼10.03
Posts /wp-admin/edit.php3.47 ▲0.1245.46 ▲4.44
Add New Post /wp-admin/post-new.php5.96 ▲0.0790.57 ▲2.55
Media Library /wp-admin/upload.php3.28 ▲0.0535.56 ▲0.04

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Lazy Load Elementor Background Images
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.43 ▲0.201.79 ▼0.0445.04 ▲1.66
Dashboard /wp-admin2,210 ▲254.87 ▼0.06106.03 ▼10.7539.21 ▼9.74
Posts /wp-admin/edit.php2,093 ▲41.97 ▼0.0740.07 ▲1.6334.89 ▲1.57
Add New Post /wp-admin/post-new.php1,527 ▼618.29 ▼4.89609.73 ▼38.5451.76 ▼0.14
Media Library /wp-admin/upload.php1,392 ▲44.20 ▲0.0495.92 ▼5.1744.16 ▲2.63

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
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please fix the following items
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/lazy-load-background-images-for-elementor/admin/partials/lazy-load-elementor-background-images-admin-display.php
    • > /wp-content/plugins/lazy-load-background-images-for-elementor/public/partials/lazy-load-elementor-background-images-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% 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: elementor, lazyload, background images, performance

lazy-load-background-images-for-elementor/lazy-load-elementor-background-images.php 77% from 13 tests

The main PHP file in "Lazy Load Elementor Background Images" ver. 1.1.2 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("lazy-load-background-images-for-elementor.php" instead of "lazy-load-elementor-background-images.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 222 characters long)

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
Success! There were no dangerous files found in this plugin300 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP12126536228
Markdown138066
JavaScript24546
CSS2080

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity2.29
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity1.38
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods24
▷ Static methods28.33%
▷ Public methods1979.17%
▷ Protected methods00.00%
▷ Private methods520.83%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin