Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲4.73MB] [CPU: ▲32.65ms] Passed 4 tests
Server-side resources used by Smush - Optimize, Compress and Lazy Load Images
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.10 ▲3.64 | 64.76 ▲27.32 |
Dashboard /wp-admin | 8.40 ▲5.09 | 88.56 ▲38.09 |
Posts /wp-admin/edit.php | 8.44 ▲5.08 | 82.15 ▲33.81 |
Add New Post /wp-admin/post-new.php | 11.11 ▲5.22 | 131.61 ▲31.39 |
Media Library /wp-admin/upload.php | 8.32 ▲5.09 | 74.44 ▲39.60 |
Smush Pro /wp-admin/admin.php?page=smush-upgrade | 8.36 | 65.26 |
Directory Smush /wp-admin/admin.php?page=smush-directory | 8.62 | 90.75 |
Local WebP /wp-admin/admin.php?page=smush-webp | 8.69 | 127.11 |
Bulk Smush /wp-admin/admin.php?page=smush-bulk | 8.70 | 88.56 |
Tutorials /wp-admin/admin.php?page=smush-tutorials | 8.37 | 66.39 |
Settings /wp-admin/admin.php?page=smush-settings | 8.43 | 79.89 |
Dashboard /wp-admin/admin.php?page=smush | 8.74 | 144.01 |
Lazy Load /wp-admin/admin.php?page=smush-lazy-load | 8.61 | 77.55 |
CDN /wp-admin/admin.php?page=smush-cdn | 8.61 | 71.22 |
Integrations /wp-admin/admin.php?page=smush-integrations | 8.42 | 70.66 |
Server storage [IO: ▲12.52MB] [DB: ▲0.01MB] 67% from 3 tests
A short overview of filesystem and database impact
These are issues you should consider
- Illegal file modification detected: 1 file (0.06KB) outside of "wp-content/plugins/wp-smushit/" and "wp-content/uploads/"
- (new file) wp-content/smush-webp/smush-webp-test.png.webp
Filesystem: 584 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_smush_dir_images |
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
wp_smush_image_sizes_state |
wp-smush-settings |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Smush - Optimize, Compress and Lazy Load Images
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,924 ▲162 | 14.38 ▲0.10 | 1.68 ▼0.11 | 43.11 ▼2.24 |
Dashboard /wp-admin | 2,332 ▲152 | 5.69 ▲0.03 | 90.44 ▼6.81 | 42.34 ▼3.94 |
Posts /wp-admin/edit.php | 2,181 ▲81 | 2.00 ▲0.06 | 40.44 ▲1.70 | 37.26 ▲4.20 |
Add New Post /wp-admin/post-new.php | 1,590 ▲60 | 23.81 ▲0.78 | 618.24 ▲9.06 | 32.43 ▼20.10 |
Media Library /wp-admin/upload.php | 1,541 ▲144 | 6.12 ▲1.92 | 122.94 ▲21.91 | 42.83 ▼0.24 |
Smush Pro /wp-admin/admin.php?page=smush-upgrade | 1,782 | 9.51 | 197.92 | 165.77 |
Directory Smush /wp-admin/admin.php?page=smush-directory | 1,718 | 2.76 | 47.79 | 90.06 |
Local WebP /wp-admin/admin.php?page=smush-webp | 1,545 | 3.50 | 64.79 | 69.16 |
Bulk Smush /wp-admin/admin.php?page=smush-bulk | 2,235 | 3.32 | 58.41 | 82.09 |
Tutorials /wp-admin/admin.php?page=smush-tutorials | 1,585 | 5.63 | 57.68 | 78.39 |
Settings /wp-admin/admin.php?page=smush-settings | 1,463 | 3.39 | 58.85 | 75.91 |
Dashboard /wp-admin/admin.php?page=smush | 2,728 | 6.53 | 96.05 | 93.03 |
Lazy Load /wp-admin/admin.php?page=smush-lazy-load | 1,507 | 2.74 | 52.26 | 54.68 |
CDN /wp-admin/admin.php?page=smush-cdn | 1,534 | 2.76 | 49.50 | 54.39 |
Integrations /wp-admin/admin.php?page=smush-integrations | 1,536 | 2.64 | 49.26 | 77.87 |
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
- Zombie tables detected upon uninstall: 1 table
- wp_smush_dir_images
- The uninstall procedure has failed, leaving 8 options in the database
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- wp_smush_image_sizes_state
- widget_recent-comments
- wp-smush-settings
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Please take a closer look at the following
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/wp-smushit/app/views/email/footer.php
- > /wp-content/plugins/wp-smushit/vendor/mixpanel/mixpanel-php/examples/custom_consumer.php
- > /wp-content/plugins/wp-smushit/vendor/mixpanel/mixpanel-php/examples/error_handling.php
- 206× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Smush\\Core\\Controller' not found in wp-content/plugins/wp-smushit/core/smush/class-smush-controller.php:10
- > PHP Fatal error
Uncaught Error: Class 'Smush\\Core\\Media\\Media_Item_Optimization_Global_Stats' not found in wp-content/plugins/wp-smushit/core/smush/class-smush-optimization-global-stats.php:7
- > [ Base_MixpanelBase - line 94 ]
destruct flush attempt #1
- > [ Base_MixpanelBase - line 76 ]
Using token: MIXPANEL_PROJECT_TOKEN
- > PHP Fatal error
Uncaught Error: Class 'Smush\\Core\\Media\\Media_Item_Stats' not found in wp-content/plugins/wp-smushit/core/smush/class-smush-media-item-stats.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-smushit/app/common/circle-progress-bar.php:9
- > [ Base_MixpanelBase - line 213 ]
Socket wrote 485 bytes
- > [ Base_MixpanelBase - line 18 ]
Instantiated new Consumer
- > [ ObConsumer - line 8 ]
This is the data from a fake error
- > [ Base_MixpanelBase - line 196 ]
Queued message: {"event":"test_event","properties":{"mp_lib":"php","color":"blue","token":"MIXPANEL_PROJECT_TOKEN","time":1700124716.38044}}
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=smush
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=smush - Access to fetch at 'https://wpmudev.com/blog/wp-json/wp/v2/media/194208' from origin '' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
- > GET request to /wp-admin/admin.php?page=smush
- > Network (severe)
https://wpmudev.com/blog/wp-json/wp/v2/media/194208 - Failed to load resource: net::ERR_FAILED
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
wp-smushit/wp-smush.php 85% from 13 tests
Analyzing the main PHP file in "Smush - Optimize, Compress and Lazy Load Images" version 3.15.1
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 143 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-smushit.php" instead of "wp-smush.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected57,987 lines of code in 399 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 256 | 7,637 | 15,586 | 32,103 |
HTML | 24 | 1,633 | 168 | 10,659 |
JavaScript | 72 | 1,222 | 1,798 | 7,538 |
Sass | 10 | 407 | 50 | 2,844 |
CSS | 12 | 130 | 31 | 1,867 |
SVG | 12 | 4 | 26 | 1,481 |
JSX | 6 | 79 | 55 | 973 |
Markdown | 4 | 100 | 0 | 418 |
JSON | 2 | 0 | 0 | 78 |
XML | 1 | 3 | 0 | 26 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 27.13 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 223.00 |
Average method complexity | 3.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 24 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 165 | |
▷ Abstract classes | 14 | 8.48% |
▷ Concrete classes | 151 | 91.52% |
▷ Final classes | 2 | 1.32% |
Methods | 2,170 | |
▷ Static methods | 97 | 4.47% |
▷ Public methods | 1,476 | 68.02% |
▷ Protected methods | 122 | 5.62% |
▷ Private methods | 572 | 26.36% |
Functions | 67 | |
▷ Named functions | 3 | 4.48% |
▷ Anonymous functions | 64 | 95.52% |
Constants | 109 | |
▷ Global constants | 20 | 18.35% |
▷ Class constants | 89 | 81.65% |
▷ Public constants | 89 | 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
110 PNG files occupy 1.09MB with 0.56MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
app/assets/images/incsub-logo@2x.png | 4.15KB | 2.29KB | ▼ 44.90% |
core/external/free-dashboard/assets/images/giveaway/success/common@2x.png | 6.88KB | 3.56KB | ▼ 48.22% |
core/external/plugin-notice/assets/images/plugins-hustle.png | 16.29KB | 5.50KB | ▼ 66.23% |
core/external/free-dashboard/assets/images/giveaway/form/defender.png | 4.24KB | 2.41KB | ▼ 43.20% |
app/assets/images/onboarding/graphic-onboarding-usage@2x.png | 20.49KB | 9.39KB | ▼ 54.17% |