Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼7.86ms] Passed 4 tests
A check of server-side resources used by Featured Image Notes
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.42 ▼6.07 |
Dashboard /wp-admin | 3.32 ▲0.02 | 46.09 ▼2.39 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 46.51 ▼4.57 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 87.50 ▼18.41 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.69 ▲1.03 |
Featured Image Notes /wp-admin/options-general.php?page=featured-image-notes | 3.25 | 41.95 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
featured-image-notes |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Featured Image Notes
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲11 | 14.35 ▲0.04 | 1.75 ▼0.22 | 39.74 ▼3.89 |
Dashboard /wp-admin | 2,203 ▲23 | 5.64 ▲0.08 | 92.11 ▲2.18 | 42.72 ▲1.18 |
Posts /wp-admin/edit.php | 2,105 ▲5 | 2.00 ▲0.02 | 36.20 ▼5.33 | 33.29 ▼7.49 |
Add New Post /wp-admin/post-new.php | 1,538 ▲4 | 23.00 ▼0.18 | 581.90 ▼47.04 | 50.36 ▲4.97 |
Media Library /wp-admin/upload.php | 1,405 ▲5 | 4.30 ▲0.07 | 101.24 ▼3.02 | 43.99 ▼0.91 |
Featured Image Notes /wp-admin/options-general.php?page=featured-image-notes | 855 | 2.02 | 22.55 | 28.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- featured-image-notes
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/featured-image-notes/public/partials/featured-image-notes-public-display.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/featured-image-notes/admin/partials/featured-image-notes-admin-display.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: notes, meta box, featured image
featured-image-notes/featured-image-notes.php Passed 13 tests
This is the main PHP file of "Featured Image Notes" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
87 characters long description:
This plugin allows you to add notes to the Featured Image box for certain posts / pages
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin289 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 132 | 515 | 238 |
Markdown | 1 | 16 | 0 | 24 |
CSS | 2 | 6 | 8 | 21 |
JavaScript | 2 | 4 | 54 | 6 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 2 | 7.14% |
▷ Public methods | 23 | 82.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.86% |
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 images were found in this plugin