Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Warning in wp-admin/includes/class-wp-filesystem-direct.php+558
mkdir(): File exists
Server metrics [RAM: ▲1.73MB] [CPU: ▲3.10ms] Passed 4 tests
Analyzing server-side resources used by Image Regenerate & Select Crop
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.33 ▲1.86 | 55.69 ▲17.70 |
Dashboard /wp-admin | 5.17 ▲1.83 | 65.02 ▲2.02 |
Posts /wp-admin/edit.php | 5.29 ▲1.93 | 63.68 ▲16.63 |
Add New Post /wp-admin/post-new.php | 7.23 ▲1.35 | 75.28 ▼23.96 |
Media Library /wp-admin/upload.php | 5.11 ▲1.88 | 54.05 ▲22.52 |
Features Manager4 /wp-admin/admin.php?page=image-regenerate-select-crop-extensions | 5.07 | 55.60 |
Advanced Rules /wp-admin/admin.php?page=image-regenerate-select-crop-rules | 5.07 | 46.26 |
General Settings /wp-admin/admin.php?page=image-regenerate-select-crop-settings | 5.08 | 54.31 |
Server storage [IO: ▲1.41MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 43 new files
Database: no new tables, 10 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
sirsc_version |
sirsc_types_options |
sirsc_db_version |
widget_recent-posts |
sirsc_logs_prefix |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Image Regenerate & Select Crop
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,916 ▲169 | 14.35 ▲0.04 | 1.82 ▲0.21 | 44.15 ▲3.38 |
Dashboard /wp-admin | 2,306 ▲128 | 5.59 ▼0.12 | 98.17 ▼5.57 | 87.96 ▲45.25 |
Posts /wp-admin/edit.php | 2,236 ▲133 | 2.13 ▲0.18 | 34.68 ▼3.54 | 33.91 ▼2.43 |
Add New Post /wp-admin/post-new.php | 1,795 ▲269 | 22.06 ▼1.37 | 727.73 ▲20.67 | 66.54 ▲6.89 |
Media Library /wp-admin/upload.php | 1,754 ▲363 | 4.13 ▼0.10 | 96.77 ▼3.90 | 85.08 ▲38.02 |
Features Manager4 /wp-admin/admin.php?page=image-regenerate-select-crop-extensions | 1,356 | 1.69 | 27.34 | 61.99 |
Advanced Rules /wp-admin/admin.php?page=image-regenerate-select-crop-rules | 3,115 | 1.71 | 28.93 | 60.07 |
General Settings /wp-admin/admin.php?page=image-regenerate-select-crop-settings | 2,438 | 1.97 | 27.80 | 63.23 |
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 did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- sirsc_db_version
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 12× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-regenerate-select-crop/inc/integration.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-regenerate-select-crop/inc/iterator.php:12
- > PHP Warning
Use of undefined constant SIRSC_PLUGIN_URL - assumed 'SIRSC_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/image-regenerate-select-crop/inc/placeholder.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-regenerate-select-crop/inc/debug.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-regenerate-select-crop/inc/calls.php:12
- > PHP Warning
Use of undefined constant SIRSC_PLUGIN_FOLDER - assumed 'SIRSC_PLUGIN_FOLDER' (this will throw an Error in a future version of PHP) in wp-content/plugins/image-regenerate-select-crop/inc/placeholder.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/image-regenerate-select-crop/inc/adons-api.php:50
- > PHP Fatal error
Uncaught Error: Call to undefined function SIRSC\\Placeholder\\wp_mkdir_p() in wp-content/plugins/image-regenerate-select-crop/inc/placeholder.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/image-regenerate-select-crop/image-regenerate-select-crop.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-regenerate-select-crop/inc/admin.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Requires at least: Invalid plugin version format
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
image-regenerate-select-crop/image-regenerate-select-crop.php 85% from 13 tests
The main file in "Image Regenerate & Select Crop" v. 7.3.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 221 characters long)
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin12,018 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 1,328 | 2,998 | 10,795 |
PO File | 1 | 383 | 472 | 781 |
JavaScript | 6 | 26 | 4 | 252 |
CSS | 4 | 34 | 1 | 187 |
SVG | 1 | 0 | 1 | 3 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 135.12 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 592.00 |
Average method complexity | 6.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 183 | |
▷ Static methods | 164 | 89.62% |
▷ Public methods | 173 | 94.54% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 5.46% |
Functions | 168 | |
▷ Named functions | 164 | 97.62% |
▷ Anonymous functions | 4 | 2.38% |
Constants | 53 | |
▷ Global constants | 19 | 35.85% |
▷ Class constants | 34 | 64.15% |
▷ Public constants | 34 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.15MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/adon-import-export-image.png | 26.67KB | 25.41KB | ▼ 4.74% |
assets/images/icon-128x128.png | 28.75KB | 11.80KB | ▼ 58.94% |
assets/images/buy-me-a-coffee.png | 19.75KB | 7.15KB | ▼ 63.78% |
assets/images/adon-uploads-inspector-image.png | 23.90KB | 23.22KB | ▼ 2.85% |
assets/images/adon-uploads-folder-info-image.png | 27.31KB | 26.86KB | ▼ 1.65% |