Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▼0.62MB] [CPU: ▼161.07ms] Passed 4 tests
This is a short check of server-side resources used by Image lazyloading by Fastseen
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 40.04 ▲19.09 |
Dashboard /wp-admin | 3.08 ▲0.03 | 46.38 ▲0.58 |
Posts /wp-admin/edit.php | 3.13 ▲0.03 | 47.36 ▲0.98 |
Add New Post /wp-admin/post-new.php | 2.86 ▼2.57 | 23.12 ▼641.76 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 30.31 ▼4.09 |
Server storage [IO: ▲0.71MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Image lazyloading by Fastseen
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,731 ▲135 | 15.92 ▲0.67 | 11.81 ▲2.66 | 45.30 ▼2.04 |
Dashboard /wp-admin | 2,994 ▲60 | 5.94 ▼0.01 | 141.80 ▼8.71 | 104.28 ▼9.35 |
Posts /wp-admin/edit.php | 2,763 ▲24 | 2.72 ▼0.00 | 70.29 ▼0.95 | 84.60 ▲6.06 |
Add New Post /wp-admin/post-new.php | 1,632 ▲17 | 21.49 ▼0.01 | 295.36 ▲3.96 | 104.92 ▼1.79 |
Media Library /wp-admin/upload.php | 1,831 ▲24 | 5.07 ▲0.05 | 148.00 ▼8.18 | 110.71 ▼7.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/fastseen-lazyloading/templates/admin_page.php:2
- > PHP Fatal error
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
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: You are using too many tags: 11 tag instead of maximum 10
fastseen-lazyloading/fastseen.php 92% from 13 tests
"Image lazyloading by Fastseen" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("fastseen-lazyloading.php" instead of "fastseen.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin386 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 36 | 51 | 156 |
CSS | 1 | 31 | 0 | 137 |
JavaScript | 1 | 12 | 8 | 93 |
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 code | 0.25 |
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 | 9 | |
▷ Named functions | 7 | 77.78% |
▷ Anonymous functions | 2 | 22.22% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.50MB with 0.38MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 236.87KB | 54.97KB | ▼ 76.79% |
assets/screenshot-2.png | 280.05KB | 68.03KB | ▼ 75.71% |