Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼0.34ms] Passed 4 tests
Analyzing server-side resources used by Setup Default Featured Image
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 38.88 ▼1.76 |
Dashboard /wp-admin | 3.41 ▲0.11 | 52.36 ▲1.67 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 55.02 ▲11.31 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 88.38 ▼4.57 |
Media Library /wp-admin/upload.php | 3.31 ▲0.09 | 39.49 ▲3.31 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
wdfi_flake_image_type |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Setup Default Featured Image
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,949 ▲188 | 14.63 ▲0.28 | 1.66 ▼0.07 | 39.75 ▼5.97 |
Dashboard /wp-admin | 2,352 ▲178 | 6.21 ▲0.62 | 114.32 ▲20.16 | 39.54 ▼0.51 |
Posts /wp-admin/edit.php | 2,283 ▲180 | 3.51 ▲1.55 | 54.84 ▲17.68 | 34.38 ▼2.79 |
Add New Post /wp-admin/post-new.php | 1,546 ▲17 | 23.23 ▲0.07 | 646.66 ▲37.36 | 36.71 ▼15.26 |
Media Library /wp-admin/upload.php | 1,417 ▲17 | 4.19 ▼0.00 | 83.21 ▼18.96 | 44.29 ▼4.37 |
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
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- wdfi_flake_image_type
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/setup-default-feature-image/includes/WDFI_Advaced.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/setup-default-feature-image/includes/WDFI_General.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Screenshots: Add descriptions for screenshots #1, #2, #3 in setup-default-feature-image/assets to your readme.txt
- Contributors: Contributors not specified
setup-default-feature-image/default-feature-image.php 85% from 13 tests
"Setup Default Featured Image" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("setup-default-feature-image.php" instead of "default-feature-image.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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 plugin653 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 39 | 118 | 533 |
JavaScript | 1 | 3 | 13 | 79 |
CSS | 1 | 0 | 0 | 41 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 20.67 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 4.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 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 | 3 | |
▷ Global constants | 3 | 100.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
There are no PNG files in this plugin