Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼5.36ms] Passed 4 tests
An overview of server-side resources used by Better Images - Sharpen, compress, optimize and resize image after upload
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.12 | 44.22 ▲2.56 |
Dashboard /wp-admin | 3.42 ▲0.08 | 46.23 ▼13.67 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 54.24 ▲7.39 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 84.47 ▼11.21 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 33.69 ▲0.89 |
Better Images /wp-admin/options-general.php?page=better-images | 3.31 | 31.56 |
Server storage [IO: ▲0.61MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 14 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
wnbi_better_images_version |
can_compress_scripts |
wnbi_better_images_quality |
wnbi_better_images_resize_image |
wnbi_better_images_sharpen_image |
wnbi_better_images_convert_cmyk |
db_upgraded |
wnbi_better_images_convert_png |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Better Images - Sharpen, compress, optimize and resize image after upload
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.36 ▼0.06 | 1.78 ▲0.20 | 45.43 ▲3.08 |
Dashboard /wp-admin | 2,196 ▲16 | 5.61 ▲0.01 | 88.03 ▲4.67 | 45.71 ▲3.78 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.03 ▲0.06 | 35.84 ▲0.68 | 33.95 ▼1.05 |
Add New Post /wp-admin/post-new.php | 1,540 ▲14 | 18.34 ▼5.16 | 625.10 ▼51.74 | 64.31 ▲11.03 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.17 ▼0.04 | 93.31 ▼14.34 | 42.88 ▼3.73 |
Better Images /wp-admin/options-general.php?page=better-images | 1,579 | 1.99 | 22.99 | 31.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/better-images/better-images.php
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 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Tags: There are too many tags (12 tag instead of maximum 10)
better-images/better-images.php 92% from 13 tests
The main PHP file in "Better Images - Sharpen, compress, optimize and resize image after upload" ver. 1.2.6 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 239 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin866 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 170 | 206 | 593 |
PO File | 1 | 41 | 57 | 180 |
CSS | 1 | 15 | 0 | 71 |
Markdown | 1 | 10 | 0 | 22 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
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 | 27 | |
▷ Named functions | 27 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected