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 gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼9.20ms] Passed 4 tests
Analyzing server-side resources used by WP Imsizer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 37.03 ▼3.17 |
Dashboard /wp-admin | 3.39 ▲0.04 | 44.06 ▼25.07 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 46.82 ▲0.38 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 89.08 ▼8.94 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 32.18 ▲4.01 |
WP Imsizer /wp-admin/options-general.php?page=wp-imsizer | 3.27 | 29.33 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 18 new options
New WordPress options |
---|
widget_recent-comments |
wp_imsizer_height |
wp_imsizer_convertpng_yesno |
theysaidso_admin_options |
wp_imsizer_file_size_error |
wp_imsizer_wplimit_onoff |
widget_recent-posts |
widget_theysaidso_widget |
wp_imsizer_width |
wp_imsizer_setalts |
... |
Browser metrics Passed 4 tests
A check of browser resources used by WP Imsizer
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲32 | 14.23 ▼0.49 | 1.89 ▲0.12 | 43.90 ▲0.72 |
Dashboard /wp-admin | 2,202 ▲22 | 5.62 ▼0.04 | 84.21 ▼7.53 | 38.61 ▼0.48 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.00 ▲0.04 | 38.89 ▲2.35 | 35.20 ▼2.56 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 22.99 ▼0.18 | 595.22 ▼61.98 | 52.21 ▲1.11 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.26 ▲0.10 | 97.14 ▲0.97 | 44.72 ▲3.56 |
WP Imsizer /wp-admin/options-general.php?page=wp-imsizer | 1,035 | 2.01 | 24.19 | 32.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: Please add an image for screenshot #1 (WP Imsizer options page.)
wp-imsizer/wp-imsizer.php 92% from 13 tests
The main PHP file in "WP Imsizer" ver. 1.2.6 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 141 characters long)
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 detected422 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 60 | 132 | 422 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
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 | 9 | |
▷ Named functions | 9 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.25MB with 0.17MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
wp-imsizer-logo.png | 37.00KB | 12.77KB | ▼ 65.49% |
screenshot-1.png | 217.96KB | 67.26KB | ▼ 69.14% |