Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/webdoone-simple-image-widget/simple-image.php+217
Function create_function() is deprecated
Server metrics [RAM: ▼1.84MB] [CPU: ▼55.18ms] Passed 4 tests
A check of server-side resources used by Webdoone Simple Image Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.16 ▼1.31 | 6.88 ▼32.32 |
Dashboard /wp-admin | 2.18 ▼1.17 | 6.56 ▼56.87 |
Posts /wp-admin/edit.php | 2.18 ▼1.18 | 6.62 ▼41.93 |
Add New Post /wp-admin/post-new.php | 2.18 ▼3.71 | 6.32 ▼89.60 |
Media Library /wp-admin/upload.php | 2.18 ▼1.05 | 6.49 ▼28.64 |
Server storage [IO: ▲0.62MB] [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-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_webdoonesimpleimage_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Webdoone Simple Image Widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,928 ▲167 | 14.43 ▲0.15 | 1.77 ▲0.26 | 44.94 ▲1.92 |
Dashboard /wp-admin | 2,334 ▲157 | 6.16 ▲0.48 | 106.95 ▲15.10 | 36.04 ▼3.06 |
Posts /wp-admin/edit.php | 2,259 ▲159 | 3.44 ▲1.49 | 47.35 ▲8.70 | 32.73 ▼3.76 |
Add New Post /wp-admin/post-new.php | 1,528 ▼1 | 23.52 ▲0.49 | 593.66 ▲4.42 | 33.61 ▼23.52 |
Media Library /wp-admin/upload.php | 1,402 ▼1 | 4.13 ▼0.08 | 83.31 ▼13.94 | 45.59 ▲1.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/webdoone-simple-image-widget/simple-image.php+217
Function create_function() is deprecated
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- widget_webdoonesimpleimage_widget
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/webdoone-simple-image-widget/simple-image.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: image widget, picture, image, widget, photo...
webdoone-simple-image-widget/simple-image.php 92% from 13 tests
The main PHP file in "Webdoone Simple Image Widget" ver. 1.1.2 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("webdoone-simple-image-widget.php" instead of "simple-image.php")
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 plugin257 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 20 | 47 | 196 |
PO File | 1 | 9 | 9 | 35 |
JavaScript | 1 | 1 | 3 | 26 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 26.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 7.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.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 | 3 | |
▷ Named functions | 3 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected