Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼9.34ms] Passed 4 tests
This is a short check of server-side resources used by Featured Image in Admin Panel
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 42.00 ▲1.18 |
Dashboard /wp-admin | 3.32 ▼0.02 | 51.79 ▼13.70 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 53.89 ▼4.67 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 82.21 ▼20.18 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 40.31 ▲5.04 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Featured Image in Admin Panel
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 14.28 ▲0.16 | 1.75 ▼0.28 | 44.68 ▼1.75 |
Dashboard /wp-admin | 2,212 ▲41 | 5.68 ▲0.09 | 84.41 ▼13.62 | 80.69 ▲37.61 |
Posts /wp-admin/edit.php | 2,132 ▲32 | 1.98 ▼0.04 | 38.87 ▼1.35 | 36.11 ▼1.30 |
Add New Post /wp-admin/post-new.php | 1,694 ▲166 | 21.94 ▼1.00 | 726.84 ▲45.13 | 54.16 ▼7.67 |
Media Library /wp-admin/upload.php | 1,420 ▲20 | 4.11 ▼0.09 | 95.86 ▼13.75 | 78.50 ▲30.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/featured-image-in-admin-panel/featured-image-in-admin-panel.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (Admin Panel view of submitted form data.) image missing
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
featured-image-in-admin-panel/featured-image-in-admin-panel.php Passed 13 tests
The principal PHP file in "Featured Image in Admin Panel" v. 1.0 is loaded by WordPress automatically on each request
52 characters long description:
Add Featured Image in Admin Panel - Posts and Pages.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected173 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 16 | 0 | 79 |
PHP | 1 | 23 | 18 | 61 |
PO File | 1 | 7 | 8 | 33 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.29MB with 0.15MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 219.09KB | 57.54KB | ▼ 73.74% |
images/banner-772x250.png | 66.72KB | 21.52KB | ▼ 67.74% |
images/logo.png | 11.25KB | 4.39KB | ▼ 60.99% |
images/icon.png | 1.58KB | 1.43KB | ▼ 9.69% |