Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼6.12ms] Passed 4 tests
A check of server-side resources used by Resize Image After Upload
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 41.96 ▲4.32 |
Dashboard /wp-admin | 3.37 ▲0.07 | 47.50 ▼3.82 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 50.32 ▲2.60 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 82.41 ▼27.27 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 34.19 ▲4.00 |
Resize Image Upload /wp-admin/options-general.php?page=resize-after-upload | 3.26 | 30.95 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 15 new options
New WordPress options |
---|
widget_theysaidso_widget |
jr_resizeupload_recompress_yesno |
widget_recent-posts |
widget_recent-comments |
jr_resizeupload_convertpng_yesno |
jr_resizeupload_resize_yesno |
jr_resizeupload_width |
can_compress_scripts |
jr_resizeupload_quality |
jr_resizeupload_convertgif_yesno |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Resize Image After Upload
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.72 ▼0.00 | 2.03 ▲0.36 | 44.60 ▲3.12 |
Dashboard /wp-admin | 2,199 ▲22 | 5.56 ▼0.11 | 80.50 ▼12.94 | 39.03 ▼7.95 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.00 ▲0.03 | 33.74 ▼3.63 | 35.31 ▼2.49 |
Add New Post /wp-admin/post-new.php | 1,538 ▲4 | 18.37 ▼0.06 | 591.05 ▼61.55 | 70.71 ▼5.76 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.27 ▲0.08 | 96.05 ▼1.97 | 45.07 ▼0.65 |
Resize Image Upload /wp-admin/options-general.php?page=resize-after-upload | 1,567 | 2.12 | 23.08 | 35.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 15 options in the database
- jr_resizeupload_resize_yesno
- db_upgraded
- jr_resizeupload_recompress_yesno
- widget_recent-posts
- jr_resizeupload_convertgif_yesno
- jr_resizeupload_convertbmp_yesno
- jr_resizeupload_width
- jr_resizeupload_convertpng_yesno
- jr_resizeupload_quality
- widget_recent-comments
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/resize-image-after-upload/resize-image-after-upload.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: Please add an image for screenshot #1 (Full preview of the settings screen.)
resize-image-after-upload/resize-image-after-upload.php 92% from 13 tests
The main PHP script in "Resize Image After Upload" version 1.8.6 is automatically included on every request by WordPress
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 255 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin402 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 145 | 68 | 402 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
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 | 0 | |
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 | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
3 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/shortpixel.png | 5.41KB | 4.93KB | ▼ 8.90% |
icon-128x128.png | 6.45KB | 4.75KB | ▼ 26.35% |
img/sp.png | 4.63KB | 2.34KB | ▼ 49.41% |