90% by-lazy-load

Code Review | By Lazy Load

WordPress plugin By Lazy Load scored90%from 54 tests.

About plugin

  • Plugin page: by-lazy-load
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-5.3.2
  • WordPress version: 6.3.1
  • First release: Feb 5, 2020
  • Latest release: Feb 5, 2020
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: machoxz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /450 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
Install script ran successfully

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

A check of server-side resources used by By Lazy Load
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.84 ▼6.42
Dashboard /wp-admin3.33 ▲0.0357.22 ▲0.79
Posts /wp-admin/edit.php3.39 ▲0.0352.82 ▲2.46
Add New Post /wp-admin/post-new.php5.92 ▲0.0390.50 ▼12.67
Media Library /wp-admin/upload.php3.26 ▲0.0336.07 ▼1.21

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for By Lazy Load
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲3914.32 ▼0.053.47 ▲1.6641.98 ▼1.39
Dashboard /wp-admin2,195 ▲185.53 ▼0.0384.90 ▼15.5542.92 ▼1.27
Posts /wp-admin/edit.php2,100 ▼02.05 ▼0.0138.36 ▲0.7532.42 ▼4.52
Add New Post /wp-admin/post-new.php1,540 ▼721.29 ▼1.96632.62 ▼51.9248.54 ▼7.45
Media Library /wp-admin/upload.php1,403 ▼04.17 ▲0.0397.52 ▼17.2845.12 ▼1.37

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 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 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: lazy load, image lazy loading, lazy loading, lazy load images

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

"By Lazy Load" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
117 characters long description:
By Lazy Load for images, videos, iframes. With lightweight script instantly improve your sites load time. Simple use.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin177 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP162111140
JavaScript10037

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity22.00
▷ Minimum class complexity22.00
▷ Maximum class complexity22.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods17.14%
▷ Public methods964.29%
▷ Protected methods214.29%
▷ Private methods321.43%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
PNG images were not found in this plugin