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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼9.05ms] Passed 4 tests
Server-side resources used by Disable Media Sizes
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 39.44 ▲2.28 |
Dashboard /wp-admin | 3.39 ▲0.04 | 45.47 ▼15.14 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 44.93 ▼3.67 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 81.79 ▼19.68 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 34.65 ▲4.95 |
Disable Media Sizes /wp-admin/options-general.php?page=disable-media-sizes | 3.28 | 32.05 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Disable Media Sizes
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲47 | 14.51 ▲0.14 | 2.12 ▲0.31 | 44.00 ▲0.15 |
Dashboard /wp-admin | 2,202 ▲24 | 5.59 ▼0.11 | 79.96 ▼27.27 | 38.36 ▼4.61 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.97 ▼0.01 | 38.41 ▲4.66 | 35.75 ▼0.14 |
Add New Post /wp-admin/post-new.php | 1,529 ▼10 | 23.70 ▲0.54 | 676.46 ▲36.51 | 58.95 ▲9.28 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.24 ▲0.05 | 103.41 ▲2.93 | 41.97 ▼4.19 |
Disable Media Sizes /wp-admin/options-general.php?page=disable-media-sizes | 921 | 2.16 | 23.11 | 33.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: media, disable image sizes, images, uploads, disable
disable-media-sizes/disable-media-sizes.php Passed 13 tests
This is the main PHP file of "Disable Media Sizes" version 1.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
68 characters long description:
Provides options to disable the extra images generated by WordPress.
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
No dangerous file extensions were detected245 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 160 | 38 | 240 |
CSS | 1 | 2 | 1 | 5 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
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 | 25 | |
▷ Named functions | 25 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
PNG images were not found in this plugin