Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.10MB] [CPU: ▼22.15ms] Passed 4 tests
An overview of server-side resources used by Compress Images with Squeezeimg (Webp/Jp2/Avif)
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.06 ▲0.60 | 42.05 ▼1.90 |
Dashboard /wp-admin | 3.90 ▲0.56 | 51.69 ▼14.09 |
Posts /wp-admin/edit.php | 3.95 ▲0.60 | 52.40 ▼1.27 |
Add New Post /wp-admin/post-new.php | 3.72 ▼2.17 | 37.82 ▼71.35 |
Media Library /wp-admin/upload.php | 3.83 ▲0.60 | 46.98 ▲12.44 |
Images Compress Squeezeimg /wp-admin/upload.php?page=wp-imagecompress-media | 3.79 | 42.65 |
Image Compress Squeezeimg /wp-admin/options-general.php?page=wp-imagecompress-settings | 4.05 | 302.51 |
Server storage [IO: ▲0.55MB] [DB: ▲0.02MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 58 new files
Database: 2 new tables, 6 new options
New tables |
---|
imagecompress_settings |
wp_image_compress_squeezeimg_replace |
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Compress Images with Squeezeimg (Webp/Jp2/Avif): an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,884 ▲138 | 13.83 ▼0.39 | 8.58 ▲6.94 | 42.72 ▼2.07 |
Dashboard /wp-admin | 2,207 ▲30 | 5.60 ▼0.02 | 88.20 ▼5.80 | 39.17 ▼1.68 |
Posts /wp-admin/edit.php | 2,115 ▲18 | 2.03 ▲0.06 | 42.69 ▲5.34 | 34.74 ▼1.27 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 23.10 ▼0.10 | 684.15 ▼28.16 | 51.63 ▼0.04 |
Media Library /wp-admin/upload.php | 1,415 ▲18 | 4.23 ▲0.14 | 98.70 ▼20.76 | 43.50 ▼1.62 |
Images Compress Squeezeimg /wp-admin/upload.php?page=wp-imagecompress-media | 1,017 | 2.05 | 27.02 | 22.96 |
Image Compress Squeezeimg /wp-admin/options-general.php?page=wp-imagecompress-settings | 2,231 | 1.92 | 29.43 | 29.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_image_compress_squeezeimg_replace
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 8 occurences, only the last one shown
- > GET request to /wp-admin/upload.php?page=wp-imagecompress-media
- > Warning in wp-content/plugins/compress-images-with-squeezeimg/admin/partials/imagecompresssqueezeimg-admin-media.php+62
Division by zero
SRP 0% 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
The following issues need your attention
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/compress-images-with-squeezeimg/admin/partials/modal/back.php
- > /wp-content/plugins/compress-images-with-squeezeimg/admin/partials/modal/header.php
- > /wp-content/plugins/compress-images-with-squeezeimg/config/getimage.php
- > /wp-content/plugins/compress-images-with-squeezeimg/public/partials/imagecompresssqueezeimg-public-display.php
- 16× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant IMAGECOMPRESSSQUEEZ_PLUGIN_BASENAME - assumed 'IMAGECOMPRESSSQUEEZ_PLUGIN_BASENAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/compress-images-with-squeezeimg/includes/class-imagecompresssqueezeimg-ajax.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function images_compress_squeezeimg\\get_home_url() in wp-content/plugins/compress-images-with-squeezeimg/includes/images_compress_squeezeimg/images.php:7
- > PHP Warning
require_once(IMAGECOMPRESSSQUEEZ_PLUGIN_DIR/includes/class-imagecompresssqueezeimg-db.php): failed to open stream: No such file or directory in wp-content/plugins/compress-images-with-squeezeimg/admin/partials/imagecompresssqueezeimg-admin-media.php on line 2
- > PHP Warning
Use of undefined constant IMAGECOMPRESSSQUEEZ_PLUGIN_DIR - assumed 'IMAGECOMPRESSSQUEEZ_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/compress-images-with-squeezeimg/includes/class-imagecompresssqueezeimg-ajax.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function Imagecompresspro\\plugin_dir_path() in wp-content/plugins/compress-images-with-squeezeimg/imagecompresssqueezeimg-plugin.php:4
- > PHP Fatal error
require_once(): Failed opening required 'IMAGECOMPRESSSQUEEZ_PLUGIN_DIRhelper/IMAGECOMPRESSSQUEEZ_PLUGIN_BASENAME-modal-constructor.php' (include_path='.:/usr/share/php') in wp-content/plugins/compress-images-with-squeezeimg/includes/class-imagecompresssqueezeimg-ajax.php on line 5
- > PHP Warning
require_once(IMAGECOMPRESSSQUEEZ_PLUGIN_DIR/includes/class-imagecompresssqueezeimg-db.php): failed to open stream: No such file or directory in wp-content/plugins/compress-images-with-squeezeimg/admin/partials/imagecompresssqueezeimg-admin-display.php on line 2
- > PHP Warning
Use of undefined constant IMAGECOMPRESSSQUEEZ_PLUGIN_DIR - assumed 'IMAGECOMPRESSSQUEEZ_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/compress-images-with-squeezeimg/admin/partials/imagecompresssqueezeimg-admin-display.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/compress-images-with-squeezeimg/admin/class-imagecompresssqueezeimg-admin.php:13
- > PHP Fatal error
require_once(): Failed opening required 'IMAGECOMPRESSSQUEEZ_PLUGIN_DIR/includes/class-imagecompresssqueezeimg-db.php' (include_path='.:/usr/share/php') in wp-content/plugins/compress-images-with-squeezeimg/admin/partials/imagecompresssqueezeimg-admin-display.php on line 2
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Tags: Too many tags (18 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== compress-images-with-squeezeimg ===
) - Screenshots: Please add descriptions for these screenshots #1, #1, #10, #11, #12, #13, #14, #15, #16, #17, #18, #19, #2, #2, #20, #3, #3, #4, #4, #5, #5, #6, #6, #7, #7, #8, #9 in compress-images-with-squeezeimg/assets to your readme.txt
compress-images-with-squeezeimg/imagecompresssqueezeimg.php 92% from 13 tests
The entry point to "Compress Images with Squeezeimg (Webp/Jp2/Avif)" version 1.0.7 is a PHP file that has certain tags in its header comment area
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 ("compress-images-with-squeezeimg.php" instead of "imagecompresssqueezeimg.php")
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
Good job! No executable or dangerous file extensions detected3,985 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 30 | 594 | 1,266 | 2,737 |
CSS | 2 | 90 | 8 | 538 |
JavaScript | 2 | 78 | 30 | 472 |
PO File | 1 | 54 | 1 | 108 |
Markdown | 1 | 31 | 0 | 93 |
JSON | 2 | 2 | 0 | 36 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 18.58 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 125.00 |
Average method complexity | 3.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 1 | 5.26% |
▷ Concrete classes | 18 | 94.74% |
▷ Final classes | 1 | 5.56% |
Methods | 161 | |
▷ Static methods | 5 | 3.11% |
▷ Public methods | 147 | 91.30% |
▷ Protected methods | 1 | 0.62% |
▷ Private methods | 13 | 8.07% |
Functions | 13 | |
▷ Named functions | 12 | 92.31% |
▷ Anonymous functions | 1 | 7.69% |
Constants | 19 | |
▷ Global constants | 16 | 84.21% |
▷ Class constants | 3 | 15.79% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/check.png | 0.48KB | 0.46KB | ▼ 3.29% |