84% lazy-load-divi-slider-backgrounds

Code Review | Lazy Load Divi Slider Backgrounds

WordPress plugin Lazy Load Divi Slider Backgrounds scored84%from 54 tests.

About plugin

  • Plugin page: lazy-load-divi-sl...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 13, 2018
  • Latest release: Dec 15, 2019
  • Number of updates: 20
  • Update frequency: every 18.4 days
  • Top authors: emandiev (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active /3,139 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼3.54ms] Passed 4 tests

A check of server-side resources used by Lazy Load Divi Slider Backgrounds
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0033.79 ▼1.60
Dashboard /wp-admin3.31 ▼0.0447.42 ▼6.55
Posts /wp-admin/edit.php3.36 ▲0.0042.63 ▼2.97
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.00 ▼2.30
Media Library /wp-admin/upload.php3.23 ▲0.0033.02 ▼2.35

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Lazy Load Divi Slider Backgrounds
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.31 ▲0.031.93 ▲0.3941.55 ▼1.52
Dashboard /wp-admin2,198 ▲245.63 ▼0.0183.38 ▼4.6139.55 ▼3.20
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0234.34 ▼10.1835.92 ▼1.12
Add New Post /wp-admin/post-new.php1,526 ▼223.62 ▲0.52601.38 ▼79.2562.21 ▲9.27
Media Library /wp-admin/upload.php1,403 ▲64.15 ▼0.0198.55 ▼6.0741.53 ▼6.31

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 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
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lazy-load-divi-slider-backgrounds/lazy-load-divi-slider-backgrounds.php:41

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
There were no plugin tags found

lazy-load-divi-slider-backgrounds/lazy-load-divi-slider-backgrounds.php 92% from 13 tests

The primary PHP file in "Lazy Load Divi Slider Backgrounds" version 1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 228 characters long)

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
There were no executable files found in this plugin20 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1101320

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
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%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin