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
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼2.55ms] Passed 4 tests
This is a short check of server-side resources used by Custom Featured Image Metabox
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 40.13 ▼2.21 |
Dashboard /wp-admin | 3.39 ▲0.09 | 55.96 ▲1.02 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 49.56 ▲2.41 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 100.71 ▼11.42 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 37.74 ▲4.22 |
Custom Featured Image Metabox /wp-admin/options-general.php?page=cfim | 3.28 | 32.00 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 9 new options
New WordPress options |
---|
cfim_post |
cfim_page |
widget_recent-comments |
cfim-display-activation-message |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Custom Featured Image Metabox
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.76 ▲0.12 | 1.78 ▼0.38 | 40.30 ▼3.80 |
Dashboard /wp-admin | 2,202 ▲22 | 5.56 ▼0.05 | 87.28 ▼4.63 | 38.14 ▼6.15 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.94 ▼0.01 | 35.84 ▼3.22 | 33.88 ▲0.91 |
Add New Post /wp-admin/post-new.php | 1,537 ▲11 | 18.26 ▼4.61 | 611.05 ▼74.10 | 68.27 ▲10.97 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.20 ▼0.05 | 103.57 ▼1.00 | 42.72 ▼4.18 |
Custom Featured Image Metabox /wp-admin/options-general.php?page=cfim | 850 | 1.99 | 22.81 | 25.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/custom-featured-image-metabox/admin/views/admin.php:20
- > PHP Fatal error
Uncaught Error: Class 'Custom_Featured_Image_Metabox' not found in wp-content/plugins/custom-featured-image-metabox/admin/includes/settings.php:34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
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
2 plugin tags: metabox, featured image
custom-featured-image-metabox/custom-featured-image-metabox.php 92% from 13 tests
The main PHP file in "Custom Featured Image Metabox" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- 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 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected394 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 178 | 357 | 344 |
PO File | 1 | 13 | 18 | 50 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 13.67 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 28 | |
▷ Static methods | 8 | 28.57% |
▷ Public methods | 22 | 78.57% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 21.43% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin