Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.95ms] Passed 4 tests
Server-side resources used by Native Image Lazy Loading
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 43.81 ▼4.04 |
Dashboard /wp-admin | 3.33 ▲0.03 | 53.75 ▼3.77 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 51.96 ▼0.22 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 87.84 ▼19.76 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 40.70 ▲4.62 |
Native Lazy Loading /wp-admin/options-general.php?page=jdm-native-lazy-loading | 3.22 | 36.01 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Native Image Lazy Loading
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.26 ▼0.09 | 1.75 ▲0.07 | 44.13 ▼0.65 |
Dashboard /wp-admin | 2,199 ▲25 | 5.63 ▲0.05 | 97.62 ▼15.25 | 44.21 ▼5.07 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.01 ▲0.02 | 36.00 ▼5.38 | 33.86 ▼3.50 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 22.91 ▼0.75 | 697.02 ▼17.30 | 50.81 ▼9.95 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.16 ▼0.14 | 108.76 ▲7.66 | 49.02 ▲6.33 |
Native Lazy Loading /wp-admin/options-general.php?page=jdm-native-lazy-loading | 912 | 2.17 | 24.33 | 28.54 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 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
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/native-image-lazy-loading/settings.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: lazy load, performance, loading, lazyload, images
native-image-lazy-loading/native-image-lazy-loading.php Passed 13 tests
The main PHP script in "Native Image Lazy Loading" version 1.1 is automatically included on every request by WordPress
113 characters long description:
Automatically add the new `loading` attribute to images within your content to support native image lazy loading.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected128 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 25 | 29 | 104 |
Markdown | 1 | 16 | 0 | 24 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
2 compressed PNG files occupy 0.13MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
loading-attribute-plugin.png | 43.56KB | 45.52KB | 0.00% |
loading-attribute-plugin@2x.png | 85.40KB | 86.43KB | 0.00% |