84% comments-avatar-lazyload

Code Review | Comments Avatar Lazyload

WordPress plugin Comments Avatar Lazyload scored84%from 54 tests.

About plugin

  • Plugin page: comments-avatar-l...
  • Plugin version: 2.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.7.3
  • WordPress version: 6.3.1
  • First release: Jan 9, 2012
  • Latest release: Mar 26, 2017
  • Number of updates: 49
  • Update frequency: every 38.9 days
  • Top authors: lite3 (89.8%)litefeel (12.24%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /3,134 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 gracefully, with no errors

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

An overview of server-side resources used by Comments Avatar Lazyload
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.68 ▲1.24
Dashboard /wp-admin3.33 ▲0.0349.41 ▼5.87
Posts /wp-admin/edit.php3.39 ▲0.0350.20 ▼0.43
Add New Post /wp-admin/post-new.php5.92 ▲0.0383.57 ▼21.58
Media Library /wp-admin/upload.php3.26 ▲0.0336.48 ▲1.91
Comments Avatar Lazyload /wp-admin/options-general.php?page=comments-avatar-lazyload/comments-avatar-lazyload.php3.2232.20

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Comments Avatar Lazyload
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.22 ▼0.131.72 ▲0.0841.78 ▼3.41
Dashboard /wp-admin2,202 ▲285.59 ▲0.0289.99 ▼1.7239.57 ▼5.68
Posts /wp-admin/edit.php2,104 ▲42.02 ▲0.0636.40 ▼1.3834.04 ▼5.41
Add New Post /wp-admin/post-new.php1,536 ▲823.03 ▼0.02604.21 ▼33.2253.36 ▼1.60
Media Library /wp-admin/upload.php1,404 ▲74.19 ▲0.0599.58 ▼3.1641.60 ▼1.58
Comments Avatar Lazyload /wp-admin/options-general.php?page=comments-avatar-lazyload/comments-avatar-lazyload.php8541.9922.8525.92

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • commentsAvatarLazyload_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
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/comments-avatar-lazyload/comments-avatar-lazyload.php:125

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (display) image required
You can look at the official readme.txt

comments-avatar-lazyload/comments-avatar-lazyload.php Passed 13 tests

Analyzing the main PHP file in "Comments Avatar Lazyload" version 2.7
139 characters long description:
Comments Avatar Lazyload at server side load replace the src property of img tag. It is relly lazyload. It was successfully checked by W3C.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin238 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP12318125
Markdown248077
JavaScript20736

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.60
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods5100.00%
▷ Public methods5100.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

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin