Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.27MB] [CPU: ▼1.51ms] Passed 4 tests
This is a short check of server-side resources used by Smart Image Loader
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 36.41 ▼8.26 |
Dashboard /wp-admin | 3.63 ▲0.32 | 54.55 ▲1.18 |
Posts /wp-admin/edit.php | 3.68 ▲0.32 | 53.60 ▲0.27 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 104.73 ▲14.33 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 38.42 ▲0.78 |
smart-image-loader /wp-admin/admin.php?page=smart-image-loader/options.php | 3.46 | 36.99 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 16 new options
New WordPress options |
---|
sil-cleanup |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
sil-loader |
sil-refresh-scroll |
sil-selector |
can_compress_scripts |
sil-fade |
sil-exclude |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Smart Image Loader
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,887 ▲87 | 13.60 ▼0.81 | 7.28 ▲5.41 | 39.23 ▼4.31 |
Dashboard /wp-admin | 2,206 ▼0 | 4.88 ▲0.08 | 99.39 ▼14.28 | 39.72 ▼2.87 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▲0.04 | 36.95 ▼3.37 | 33.50 ▼0.73 |
Add New Post /wp-admin/post-new.php | 1,533 ▼1 | 23.33 ▼0.05 | 579.88 ▼93.38 | 61.84 ▲5.13 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.22 ▲0.03 | 97.43 ▼16.03 | 42.30 ▼2.80 |
smart-image-loader /wp-admin/admin.php?page=smart-image-loader/options.php | 911 | 2.16 | 30.09 | 33.18 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 16 options
- sil-placeholder
- sil-refresh-resize
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- sil-lazy-load-at
- sil-refresh-scroll
- widget_recent-posts
- sil-exclude
- sil-fade
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means 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
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/smart-image-loader/options.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 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
5 plugin tags: speed, image, above the fold, lazy loading, performance
smart-image-loader/plugin.php 85% from 13 tests
Analyzing the main PHP file in "Smart Image Loader" version 0.5.1
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("smart-image-loader.php" instead of "plugin.php")
- Description: The description should be shorter than 140 characters (currently 144 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,822 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 252 | 279 | 1,478 |
JavaScript | 2 | 190 | 35 | 344 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 164.50 |
▷ Minimum class complexity | 131.00 |
▷ Maximum class complexity | 198.00 |
Average method complexity | 4.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 85 | |
▷ Static methods | 1 | 1.18% |
▷ Public methods | 69 | 81.18% |
▷ Protected methods | 16 | 18.82% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 21 | |
▷ Global constants | 21 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin