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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼139.69ms] Passed 4 tests
This is a short check of server-side resources used by Progressive Images
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 35.50 ▲14.50 |
Dashboard /wp-admin | 3.08 ▲0.02 | 53.48 ▲12.16 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 46.10 ▼1.73 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 95.20 ▼565.23 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 32.00 ▼3.94 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Progressive Images
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲112 | 15.90 ▼0.05 | 9.31 ▼0.12 | 45.87 ▲1.22 |
Dashboard /wp-admin | 2,973 ▲39 | 5.88 ▼0.05 | 139.44 ▼9.13 | 110.82 ▲0.01 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.70 ▼0.02 | 77.55 ▲6.43 | 84.28 ▼9.38 |
Add New Post /wp-admin/post-new.php | 1,500 ▼172 | 18.63 ▼0.27 | 401.99 ▼11.32 | 107.89 ▼6.65 |
Media Library /wp-admin/upload.php | 1,807 ▼3 | 5.03 ▲0.01 | 159.51 ▲10.48 | 116.49 ▼2.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however 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
Almost there! Just fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function Progressive_Images\\add_action() in wp-content/plugins/progressive-images/src/enqueue.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function Progressive_Images\\add_filter() in wp-content/plugins/progressive-images/src/image-replacement.php:58
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 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
2 plugin tags: performance, images
progressive-images/progressive-images.php Passed 13 tests
The principal PHP file in "Progressive Images" v. 0.0.5 is loaded by WordPress automatically on each request
44 characters long description:
Load images after everything else has loaded
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
There were no executable files found in this plugin222 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 33 | 50 | 83 |
JavaScript | 3 | 7 | 8 | 52 |
JSON | 2 | 0 | 0 | 34 |
Markdown | 1 | 6 | 0 | 33 |
Sass | 1 | 3 | 0 | 19 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
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 | 1 | |
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 | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
PNG images were not found in this plugin