Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.08MB] [CPU: ▼13.58ms] Passed 4 tests
This is a short check of server-side resources used by WP Image Sizes
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 39.80 ▼5.11 |
Dashboard /wp-admin | 3.36 ▲0.01 | 51.61 ▼12.11 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 53.69 ▼6.51 |
Add New Post /wp-admin/post-new.php | 5.50 ▼0.39 | 77.21 ▼30.33 |
Media Library /wp-admin/upload.php | 3.26 ▲0.02 | 31.64 ▼5.37 |
WP Image Sizes /wp-admin/options-general.php?page=wpis | 3.25 | 36.38 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
wpis_session |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for WP Image Sizes
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲51 | 13.68 ▼0.67 | 4.84 ▲3.13 | 43.04 ▼3.33 |
Dashboard /wp-admin | 2,218 ▲38 | 4.82 ▼0.85 | 92.56 ▲4.14 | 40.30 ▼0.41 |
Posts /wp-admin/edit.php | 2,129 ▲22 | 2.30 ▲0.18 | 39.60 ▼1.53 | 38.55 ▲2.45 |
Add New Post /wp-admin/post-new.php | 6,264 ▲4,736 | 21.71 ▼1.39 | 917.33 ▲204.39 | 35.38 ▼19.45 |
Media Library /wp-admin/upload.php | 1,490 ▲87 | 4.54 ▲0.37 | 107.82 ▲6.27 | 42.75 ▼2.47 |
WP Image Sizes /wp-admin/options-general.php?page=wpis | 974 | 1.93 | 30.88 | 34.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- wpis_session
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wpis
- > Notice in wp-content/plugins/wp-image-sizes/includes/wpis-settings.php+10
Trying to access array offset on value of type bool
- 21 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wpis
- > Notice in wp-content/plugins/wp-image-sizes/includes/tab-templates/image-sizes.php+56
Trying to access array offset on value of type null
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
wp-image-sizes/wp-image-sizes.php 85% from 13 tests
Analyzing the main PHP file in "WP Image Sizes" version 1.1.3
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Description: Please don't use more than 140 characters for the plugin description (currently 184 characters long)
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 detected623 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 96 | 27 | 468 |
CSS | 1 | 3 | 0 | 126 |
JavaScript | 2 | 6 | 0 | 29 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
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 | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected