Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.65ms] Passed 4 tests
A check of server-side resources used by Better image sizes
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 40.22 ▼0.81 |
Dashboard /wp-admin | 3.33 ▲0.03 | 50.43 ▲3.18 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 44.94 ▼5.05 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 84.43 ▼14.34 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 32.65 ▼2.40 |
Better image sizes /wp-admin/tools.php?page=better-image-sizes/better-image-sizes.php | 3.22 | 31.31 |
Server storage [IO: ▲0.71MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Better image sizes
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲36 | 14.35 ▼0.20 | 1.79 ▲0.09 | 43.18 ▼1.13 |
Dashboard /wp-admin | 2,200 ▲23 | 5.58 ▼0.10 | 88.32 ▼9.49 | 38.37 ▼5.20 |
Posts /wp-admin/edit.php | 2,108 ▲5 | 2.02 ▲0.05 | 35.73 ▼9.85 | 33.66 ▼11.48 |
Add New Post /wp-admin/post-new.php | 1,533 ▼4 | 23.46 ▲5.33 | 627.20 ▲4.50 | 62.07 ▼0.04 |
Media Library /wp-admin/upload.php | 1,405 ▲5 | 4.21 ▲0.02 | 99.57 ▲0.08 | 43.36 ▼2.56 |
Better image sizes /wp-admin/tools.php?page=better-image-sizes/better-image-sizes.php | 917 | 2.15 | 31.79 | 32.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
7 plugin tags: optimize, images, responsive, retina, sizes...
better-image-sizes/better-image-sizes.php 92% from 13 tests
The primary PHP file in "Better image sizes" version 3.5 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
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
No dangerous file extensions were detected874 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 103 | 26 | 736 |
CSS | 1 | 0 | 0 | 73 |
JavaScript | 1 | 5 | 0 | 65 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of 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.41 |
Average class complexity | 32.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 91.00 |
Average method complexity | 5.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 26 | 86.67% |
▷ Protected methods | 4 | 13.33% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 6 | 66.67% |
▷ Anonymous functions | 3 | 33.33% |
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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected