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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 42.68 ▲1.24 |
Dashboard /wp-admin | 3.33 ▲0.03 | 49.41 ▼5.87 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 50.20 ▼0.43 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 83.57 ▼21.58 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.48 ▲1.91 |
Comments Avatar Lazyload /wp-admin/options-general.php?page=comments-avatar-lazyload/comments-avatar-lazyload.php | 3.22 | 32.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.22 ▼0.13 | 1.72 ▲0.08 | 41.78 ▼3.41 |
Dashboard /wp-admin | 2,202 ▲28 | 5.59 ▲0.02 | 89.99 ▼1.72 | 39.57 ▼5.68 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▲0.06 | 36.40 ▼1.38 | 34.04 ▼5.41 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 23.03 ▼0.02 | 604.21 ▼33.22 | 53.36 ▼1.60 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.19 ▲0.05 | 99.58 ▼3.16 | 41.60 ▼1.58 |
Comments Avatar Lazyload /wp-admin/options-general.php?page=comments-avatar-lazyload/comments-avatar-lazyload.php | 854 | 1.99 | 22.85 | 25.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
- > PHP Fatal error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 23 | 18 | 125 |
Markdown | 2 | 48 | 0 | 77 |
JavaScript | 2 | 0 | 7 | 36 |
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 code | 0.26 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 2.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 5 | 100.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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