Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼2.85ms] Passed 4 tests
Analyzing server-side resources used by Image Widget
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 49.59 ▲3.03 |
Dashboard /wp-admin | 3.37 ▲0.07 | 48.51 ▲1.27 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 48.86 ▼6.12 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 92.98 ▼8.31 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 38.79 ▲1.76 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_widget_sp_image |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Image Widget
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.72 ▲0.47 | 2.55 ▲0.72 | 45.16 ▲1.81 |
Dashboard /wp-admin | 2,189 ▲15 | 5.67 ▲0.08 | 92.69 ▲3.08 | 44.97 ▼0.56 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.03 ▲0.05 | 39.87 ▼2.43 | 35.79 ▼5.66 |
Add New Post /wp-admin/post-new.php | 1,537 ▼1 | 18.11 ▼4.91 | 653.03 ▲5.45 | 70.43 ▲13.66 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.21 ▲0.00 | 101.80 ▼10.80 | 46.39 ▼0.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 7 options
- widget_widget_sp_image
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 4× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/image-widget/image-widget.php
- > /wp-content/plugins/image-widget/views/widget-admin.deprecated.php
- > /wp-content/plugins/image-widget/views/widget-admin.php
- > /wp-content/plugins/image-widget/views/widget.php
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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: Please add descriptions for these screenshots #2, #3 in image-widget/assets to your readme.txt
image-widget/image-widget.php Passed 13 tests
"Image Widget" version 4.4.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
101 characters long description:
A simple image widget that uses the native WordPress media manager to add image widgets to your site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin768 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 126 | 196 | 516 |
JavaScript | 3 | 58 | 59 | 232 |
CSS | 1 | 3 | 0 | 20 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 43.00 |
▷ Minimum class complexity | 30.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 4.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 3 | 13.04% |
▷ Public methods | 17 | 73.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 26.09% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.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