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 successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.14MB] [CPU: ▼9.24ms] Passed 4 tests
Analyzing server-side resources used by AVIF, WebP, Image Optimization, CDN, Service Worker & Client Hints All in One
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.87 ▼5.05 |
Dashboard /wp-admin | 3.22 ▼0.08 | 36.42 ▼11.54 |
Posts /wp-admin/edit.php | 3.29 ▼0.07 | 38.55 ▼10.12 |
Add New Post /wp-admin/post-new.php | 5.46 ▼0.42 | 73.35 ▼10.26 |
Media Library /wp-admin/upload.php | 3.23 ▼0.00 | 29.42 ▼3.44 |
IMGHaste /wp-admin/options-general.php?page=imghaste | 3.20 | 29.86 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for AVIF, WebP, Image Optimization, CDN, Service Worker & Client Hints All in One
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲78 | 13.22 ▼1.18 | 1.55 ▼0.43 | 39.74 ▼9.66 |
Dashboard /wp-admin | 2,216 ▲28 | 4.85 ▼0.03 | 107.54 ▲4.60 | 41.31 ▼0.33 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.04 ▲0.03 | 38.41 ▼2.67 | 35.11 ▲0.13 |
Add New Post /wp-admin/post-new.php | 1,546 ▲12 | 23.45 ▲0.45 | 683.19 ▲0.98 | 55.19 ▲4.57 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.18 ▼0.03 | 103.17 ▼1.45 | 50.22 ▲8.02 |
IMGHaste /wp-admin/options-general.php?page=imghaste | 1,118 | 2.03 | 23.69 | 28.55 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=imghaste
- > Notice in wp-content/plugins/imghaste/admin/class-imghaste-admin.php+431
Trying to access array offset on value of type bool
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
Almost there! Just fix the following items
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'Imghaste_Public' not found in wp-content/plugins/imghaste/public/inc/class-imghaste-buffer.php:10
- > PHP Fatal error
Uncaught Error: Class 'Imghaste_Public' not found in wp-content/plugins/imghaste/public/inc/class-imghaste-slimcss.php:3
- > PHP Fatal error
Uncaught Error: Class 'Imghaste_Public' not found in wp-content/plugins/imghaste/public/inc/class-imghaste-overwrite.php:10
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- > GET request to /wp-admin/options-general.php?page=imghaste
- > Javascript (severe) in unknown
/wp-content/plugins/imghaste/admin/js/plugin-imghaste-settings.js?ver=1.2.0 3:75 Uncaught TypeError: Cannot read properties of null (reading 'value')
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots lack descriptions #3, #4, #5, #6 in imghaste/assets to your readme.txt
imghaste/imghaste.php Passed 13 tests
The primary PHP file in "AVIF, WebP, Image Optimization, CDN, Service Worker & Client Hints All in One" version 1.2.0 is used by WordPress to initiate all plugin functionality
63 characters long description:
Get your images run with the speed of light all over the world.
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 plugin2,283 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 630 | 1,154 | 2,055 |
XML | 1 | 1 | 2 | 85 |
JavaScript | 2 | 12 | 14 | 84 |
YAML | 3 | 5 | 10 | 52 |
Markdown | 1 | 4 | 0 | 7 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 13.35 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 90 | |
▷ Static methods | 10 | 11.11% |
▷ Public methods | 80 | 88.89% |
▷ Protected methods | 5 | 5.56% |
▷ Private methods | 5 | 5.56% |
Functions | 32 | |
▷ Named functions | 32 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin