Benchmarks
Plugin footprint 65% 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: ▲2.45MB] [CPU: ▲23.58ms] Passed 4 tests
Server-side resources used by ShortPixel Image Optimizer - Optimize Images, Convert WebP & AVIF
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.29 ▲1.83 | 53.55 ▲11.31 |
Dashboard /wp-admin | 5.73 ▲2.38 | 73.35 ▲8.73 |
Posts /wp-admin/edit.php | 6.15 ▲2.79 | 82.73 ▲34.93 |
Add New Post /wp-admin/post-new.php | 8.70 ▲2.81 | 134.00 ▲39.35 |
Media Library /wp-admin/upload.php | 6.24 ▲3.01 | 85.11 ▲48.96 |
Bulk ShortPixel /wp-admin/upload.php?page=wp-short-pixel-bulk | 7.22 | 117.01 |
Custom Media /wp-admin/upload.php?page=wp-short-pixel-custom | 6.12 | 78.77 |
ShortPixel /wp-admin/options-general.php?page=wp-shortpixel-settings | 6.39 | 126.45 |
Server storage [IO: ▲2.69MB] [DB: ▲0.01MB] 67% from 3 tests
Filesystem and database footprint
Just a few items left to fix
- Illegal file modification found: 1 file (0.79KB) outside of "wp-content/plugins/shortpixel-image-optimiser/" and "wp-content/uploads/"
- (modified) .htaccess
Filesystem: 277 new files
Database: 4 new tables, 14 new options
New tables |
---|
wp_shortpixel_meta |
wp_shortpixel_folders |
wp_shortpixel_queue |
wp_shortpixel_postmeta |
New WordPress options |
---|
widget_recent-posts |
wp-short-pixel-redirected-settings |
can_compress_scripts |
ShortPixel-notices |
wp-short-pixel-current-total-files |
shortqwp_SPIO |
widget_theysaidso_widget |
widget_recent-comments |
wp-short-pixel-apiKey |
wp-short-pixel-currentVersion |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ShortPixel Image Optimizer - Optimize Images, Convert WebP & AVIF
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲81 | 14.21 ▼0.06 | 1.74 ▼0.03 | 42.95 ▼0.57 |
Dashboard /wp-admin | 2,221 ▲47 | 5.69 ▲0.07 | 94.68 ▼6.78 | 74.23 ▲29.38 |
Posts /wp-admin/edit.php | 2,193 ▲93 | 2.46 ▲0.50 | 39.66 ▼2.37 | 34.48 ▲0.05 |
Add New Post /wp-admin/post-new.php | 1,764 ▲228 | 22.35 ▼0.80 | 745.12 ▲80.80 | 29.58 ▼29.60 |
Media Library /wp-admin/upload.php | 1,440 ▲40 | 2.28 ▼1.95 | 32.35 ▼83.38 | 33.21 ▼16.39 |
Bulk ShortPixel /wp-admin/upload.php?page=wp-short-pixel-bulk | 2,473 | 2.19 | 39.05 | 47.20 |
Custom Media /wp-admin/upload.php?page=wp-short-pixel-custom | 1,127 | 2.26 | 28.77 | 29.94 |
ShortPixel /wp-admin/options-general.php?page=wp-shortpixel-settings | 1,160 | 2.60 | 40.54 | 47.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The plugin did not uninstall successfully, leaving 3 tables in the database
- wp_shortpixel_folders
- wp_shortpixel_postmeta
- wp_shortpixel_meta
- This plugin did not uninstall successfully, leaving 9 options in the database
- wp-short-pixel-view-mode
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- shortqwp_SPIO
- widget_recent-comments
- wp-short-pixel-currentVersion
- widget_recent-posts
- widget_theysaidso_widget
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
These server-side errors were triggered
- > GET request to /wp-admin/upload.php?page=wp-short-pixel-custom
- > Notice in wp-content/plugins/shortpixel-image-optimiser/class/view/view-other-media.php+49
Undefined index: sortable
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/shortpixel-image-optimiser/wp-shortpixel.php
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function ShortPixel\\ShortPixelLogger\\wp_enqueue_script() in wp-content/plugins/shortpixel-image-optimiser/build/shortpixel/log/src/view-debug-box.php:4
- > PHP Fatal error
Uncaught Error: Interface 'ShortPixel\\ShortQ\\DataProvider\\DataProvider' not found in wp-content/plugins/shortpixel-image-optimiser/build/shortpixel/shortq/src/DataProvider/MysqlDataProvider.php:10
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/shortpixel-image-optimiser/class/view/snippets/part-single-actions.php:2
- > PHP Fatal error
Uncaught Error: Interface 'ShortPixel\\ShortQ\\Queue\\Queue' not found in wp-content/plugins/shortpixel-image-optimiser/build/shortpixel/shortq/src/Queue/WPQ.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% 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
These attributes need to be fixed:
- Tags: Too many tags (19 tag instead of maximum 10); only the first 5 tags are used in your directory listing
shortpixel-image-optimiser/wp-shortpixel.php 77% from 13 tests
"ShortPixel Image Optimizer - Optimize Images, Convert WebP & AVIF" version 5.5.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("shortpixel-image-optimiser.php" instead of "wp-shortpixel.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 295 characters long)
- Domain Path: The domain path is invalid: folder "/lang" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin39,783 lines of code in 219 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 145 | 7,328 | 3,121 | 27,639 |
JavaScript | 22 | 1,187 | 561 | 5,514 |
CSS | 13 | 71 | 63 | 3,248 |
Sass | 22 | 390 | 109 | 3,048 |
SVG | 10 | 1 | 1 | 137 |
Markdown | 1 | 42 | 0 | 111 |
JSON | 6 | 1 | 0 | 86 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 34.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 480.00 |
Average method complexity | 4.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 64.00 |
Code structure | ||
---|---|---|
Namespaces | 22 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 110 | |
▷ Abstract classes | 6 | 5.45% |
▷ Concrete classes | 104 | 94.55% |
▷ Final classes | 2 | 1.92% |
Methods | 1,282 | |
▷ Static methods | 120 | 9.36% |
▷ Public methods | 877 | 68.41% |
▷ Protected methods | 269 | 20.98% |
▷ Private methods | 136 | 10.61% |
Functions | 7 | |
▷ Named functions | 1 | 14.29% |
▷ Anonymous functions | 6 | 85.71% |
Constants | 140 | |
▷ Global constants | 18 | 12.86% |
▷ Class constants | 122 | 87.14% |
▷ Public constants | 122 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
33 PNG files occupy 0.56MB with 0.31MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
res/img/robo-cool@x2.png | 12.27KB | 4.90KB | ▼ 60.10% |
res/img/robo-winky.png | 3.24KB | 1.89KB | ▼ 41.70% |
res/img/robo-cool@2x.png | 12.27KB | 4.90KB | ▼ 60.10% |
res/img/robo-magnifier@2x.png | 11.49KB | 4.56KB | ▼ 60.28% |
res/img/resize-inner@2x.png | 38.81KB | 16.27KB | ▼ 58.08% |