Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼1.24MB] [CPU: ▼46.92ms] Passed 4 tests
This is a short check of server-side resources used by WP Resized Image Quality
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.73 ▼0.73 | 18.80 ▼19.67 |
Dashboard /wp-admin | 2.78 ▼0.56 | 16.86 ▼47.49 |
Posts /wp-admin/edit.php | 2.78 ▼0.57 | 15.85 ▼37.49 |
Add New Post /wp-admin/post-new.php | 2.78 ▼3.10 | 18.85 ▼83.03 |
Media Library /wp-admin/upload.php | 2.78 ▼0.45 | 17.96 ▼16.97 |
Image Quality /wp-admin/options-general.php?page=riq-admin | 2.78 | 18.70 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Resized Image Quality
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲33 | 13.62 ▼0.75 | 4.81 ▲2.64 | 42.52 ▲0.27 |
Dashboard /wp-admin | 2,225 ▲25 | 5.85 ▲0.97 | 99.01 ▼18.08 | 37.95 ▼4.93 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.00 ▼0.04 | 35.27 ▼4.19 | 33.16 ▼3.36 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 23.52 ▲5.99 | 695.93 ▲44.29 | 64.39 ▲11.22 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.30 ▲0.07 | 95.14 ▼3.91 | 47.51 ▲0.59 |
Image Quality /wp-admin/options-general.php?page=riq-admin | 884 | 1.85 | 28.71 | 30.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/wp-resized-image-quality/wp-resized-image-quality.php+88
Use of undefined constant WPLANG - assumed 'WPLANG' (this will throw an Error in a future version of PHP)
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=riq-admin
- > Warning in wp-content/plugins/wp-resized-image-quality/wp-resized-image-quality.php+89
Use of undefined constant WPLANG - assumed 'WPLANG' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=riq-admin
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=riq-admin
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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 fix the following
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-resized-image-quality/wp-resized-image-quality.php:65
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-resized-image-quality/templates/riq-media-option-template.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-resized-image-quality/templates/riq-admin-page-template.php:11
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=riq-admin
- > Network (severe)
wp-content/plugins/wp-resized-image-quality/css/images/ui-bg_flat_75_ffffff_40x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=riq-admin
- > Network (severe)
wp-content/plugins/wp-resized-image-quality/css/images/ui-bg_glass_75_e6e6e6_1x400.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Tags: Please delete some tags, you are using 16 tag instead of maximum 10
wp-resized-image-quality/wp-resized-image-quality.php Passed 13 tests
"WP Resized Image Quality" version 2.1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
107 characters long description:
Change the compression-level of uploaded images and thumbnails. Get better image quality or save bandwidth.
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 plugin1,350 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 34 | 47 | 1,093 |
PHP | 3 | 112 | 74 | 204 |
PO File | 1 | 11 | 13 | 40 |
JavaScript | 1 | 1 | 2 | 13 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 50.41KB | 19.34KB | ▼ 61.63% |