Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼2.66ms] Passed 4 tests
A check of server-side resources used by Easy Image Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 37.75 ▲1.71 |
Dashboard /wp-admin | 3.35 ▲0.04 | 46.19 ▼0.14 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 49.59 ▲1.06 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 80.43 ▼13.27 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.44 ▲1.91 |
Server storage [IO: ▲0.02MB] [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: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_siw_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Easy Image Widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 13.27 ▼1.33 | 4.63 ▲2.88 | 41.41 ▼0.96 |
Dashboard /wp-admin | 2,203 ▲15 | 5.90 ▲0.01 | 115.17 ▲5.49 | 40.97 ▲2.10 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.05 ▲0.08 | 40.92 ▲0.21 | 33.63 ▼0.13 |
Add New Post /wp-admin/post-new.php | 1,535 ▲2 | 23.17 ▼0.06 | 656.19 ▼47.72 | 59.25 ▲1.32 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.25 ▲0.02 | 96.89 ▼15.74 | 41.10 ▼8.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_siw_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
Please fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/easy-image-widget/widget.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/easy-image-widget/widget.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: simple, upload, widget-only, widget, thickbox...
easy-image-widget/easy-image-widget.php Passed 13 tests
The principal PHP file in "Easy Image Widget" v. 1.1.1 is loaded by WordPress automatically on each request
51 characters long description:
A simple WordPress plugin to add image in sidebars.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin214 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 48 | 50 | 106 |
PO File | 2 | 22 | 26 | 73 |
JavaScript | 1 | 8 | 7 | 25 |
CSS | 1 | 1 | 0 | 10 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 10 | |
▷ Static methods | 2 | 20.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 images were found in this plugin