89% speed-up-lazy-load

Code Review | Speed Up - Lazy Load

WordPress plugin Speed Up - Lazy Load scored89%from 54 tests.

About plugin

  • Plugin page: speed-up-lazy-load
  • Plugin version: 1.0.25
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.0
  • WordPress version: 6.3.1
  • First release: Aug 19, 2016
  • Latest release: Mar 5, 2023
  • Number of updates: 60
  • Update frequency: every 39.8 days
  • Top authors: nigro.simone (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

1,000+ active /42,616 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.62ms] Passed 4 tests

An overview of server-side resources used by Speed Up - Lazy Load
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0437.57 ▼5.36
Dashboard /wp-admin3.33 ▲0.0348.67 ▼0.85
Posts /wp-admin/edit.php3.38 ▲0.0251.11 ▼0.11
Add New Post /wp-admin/post-new.php5.91 ▲0.0286.50 ▼20.15
Media Library /wp-admin/upload.php3.25 ▲0.0236.39 ▲0.21

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Speed Up - Lazy Load
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,013 ▲26713.78 ▼0.648.44 ▲6.5042.40 ▼2.81
Dashboard /wp-admin2,209 ▲215.87 ▲0.9499.50 ▼6.3040.17 ▼2.37
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0140.28 ▼0.0534.55 ▼1.88
Add New Post /wp-admin/post-new.php1,522 ▼2023.20 ▲4.96623.21 ▼34.3254.70 ▼4.85
Media Library /wp-admin/upload.php1,388 ▼04.21 ▼0.0195.11 ▼4.9343.25 ▼4.73

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means 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
Everything seems fine, however this is by no means an exhaustive test

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)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 15 tag instead of maximum 10
You can look at the official readme.txt

speed-up-lazy-load/speed-up-lazy-load.php 92% from 13 tests

The main file in "Speed Up - Lazy Load" v. 1.0.25 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 256 characters long)

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
Everything looks great! No dangerous files found in this plugin244 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP14993139
PO File1232561
JavaScript2222344

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity27.00
▷ Minimum class complexity27.00
▷ Maximum class complexity27.00
Average method complexity4.25
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods112.50%
▷ Public methods787.50%
▷ Protected methods00.00%
▷ Private methods112.50%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants00.00%
▷ Class constants5100.00%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin