Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/wp-featured-image-widget/index.php+202
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼50.11ms] Passed 4 tests
Server-side resources used by WP Featured Image Widget
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 3.66 ▼34.52 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.85 ▼42.45 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 7.29 ▼37.38 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.48 ▼86.09 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.25 ▼30.15 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_wpfeaturedimagewidget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
WP Featured Image Widget: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,885 ▲150 | 13.56 ▼0.74 | 5.06 ▲3.17 | 38.58 ▼0.28 |
Dashboard /wp-admin | 2,209 ▲18 | 5.91 ▲0.05 | 106.95 ▲2.51 | 41.83 ▼1.33 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 1.99 ▼0.01 | 39.65 ▲4.85 | 35.75 ▲1.20 |
Add New Post /wp-admin/post-new.php | 1,533 ▲13 | 23.49 ▲0.49 | 633.28 ▲5.23 | 64.11 ▲5.25 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.23 ▼0.07 | 95.65 ▲0.59 | 42.31 ▲0.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/wp-featured-image-widget/index.php+202
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 7 options in the database
- widget_wpfeaturedimagewidget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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/wp-featured-image-widget/index.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: widget, wordpress widget, post thumbnail, siderbar, featured image...
wp-featured-image-widget/index.php 92% from 13 tests
The main PHP script in "WP Featured Image Widget" version 0.1 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-featured-image-widget.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin561 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 128 | 211 | 316 |
PHP | 1 | 14 | 8 | 181 |
CSS | 3 | 1 | 15 | 64 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 49.00 |
▷ Minimum class complexity | 49.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 10.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 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