Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/image-upload-widget/widget_guide.php+132
Function create_function() is deprecated
Server metrics [RAM: ▼1.93MB] [CPU: ▼54.77ms] Passed 4 tests
A check of server-side resources used by Image Upload Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.39 | 7.07 ▼35.70 |
Dashboard /wp-admin | 2.09 ▼1.25 | 6.05 ▼49.12 |
Posts /wp-admin/edit.php | 2.09 ▼1.26 | 6.98 ▼42.50 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.79 | 6.06 ▼91.75 |
Media Library /wp-admin/upload.php | 2.09 ▼1.14 | 5.12 ▼28.57 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_image_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Image Upload Widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,939 ▲168 | 14.78 ▲1.71 | 1.65 ▼3.18 | 40.82 ▼1.55 |
Dashboard /wp-admin | 2,345 ▲157 | 6.42 ▲1.52 | 118.95 ▲10.78 | 42.61 ▼1.05 |
Posts /wp-admin/edit.php | 2,254 ▲165 | 3.35 ▲1.29 | 49.32 ▲8.15 | 32.01 ▼4.07 |
Add New Post /wp-admin/post-new.php | 1,530 ▼12 | 23.30 ▲0.33 | 609.08 ▼55.23 | 28.51 ▼18.76 |
Media Library /wp-admin/upload.php | 1,390 ▲2 | 4.20 ▲0.01 | 80.14 ▼19.19 | 42.25 ▼2.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/image-upload-widget/widget_guide.php+132
Function create_function() is deprecated
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_image_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/image-upload-widget/widget_guide.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
Please fix the following attributes:
- Screenshots: Add a description for screenshot #2 in image-upload-widget/assets to your readme.txt
image-upload-widget/widget_guide.php 92% from 13 tests
This is the main PHP file of "Image Upload Widget" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("image-upload-widget.php" instead of "widget_guide.php")
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
Success! There were no dangerous files found in this plugin96 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 13 | 53 | 71 |
JavaScript | 1 | 0 | 3 | 25 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
No PNG images were found in this plugin