84% lazy-load-divi-section-backgrounds

Code Review | Lazy Load Divi Section Backgrounds

WordPress plugin Lazy Load Divi Section Backgrounds scored 84% from 54 tests.

About plugin

  • Plugin page: lazy-load-divi-se...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 2, 2018
  • Latest release: Dec 15, 2019
  • Number of updates: 31
  • Update frequency: every 12.2 days
  • Top authors: emandiev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active / 3,416 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
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Lazy Load Divi Section Backgrounds
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.00 ▲1.24
Dashboard /wp-admin3.32 ▲0.0144.41 ▼0.76
Posts /wp-admin/edit.php3.37 ▲0.0144.75 ▼1.46
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.99 ▼5.23
Media Library /wp-admin/upload.php3.24 ▲0.0133.80 ▲3.31

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Lazy Load Divi Section Backgrounds
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.29 ▼1.081.67 ▼0.1145.89 ▲2.87
Dashboard /wp-admin2,206 ▲184.87 ▼1.03106.75 ▲6.3438.23 ▼6.23
Posts /wp-admin/edit.php2,086 ▼32.06 ▲0.0136.31 ▼1.5335.62 ▼4.24
Add New Post /wp-admin/post-new.php1,533 ▲1423.48 ▲0.50663.41 ▲3.5860.32 ▲5.98
Media Library /wp-admin/upload.php1,388 ▼04.15 ▼0.06103.18 ▲2.7844.23 ▼2.08

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

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
The smoke test was a success, however most plugin functionality was not tested

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× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lazy-load-divi-section-backgrounds/lazy-load-divi-section-backgrounds.php:43

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
There were not plugin tags detected

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

The principal PHP file in "Lazy Load Divi Section Backgrounds" v. 1.2 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 240 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin21 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1111321

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.12
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
No PNG files were detected