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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▲1.13ms] Passed 4 tests
A check of server-side resources used by WP Headmaster
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 48.83 ▲5.09 |
Dashboard /wp-admin | 3.33 ▲0.03 | 57.17 ▲7.02 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 54.82 ▲0.01 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 93.14 ▼6.10 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 41.36 ▲5.50 |
WP Headmaster /wp-admin/options-general.php?page=Headmaster | 3.37 | 41.56 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Headmaster
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲55 | 13.24 ▼1.19 | 2.16 ▲0.53 | 38.06 ▼7.75 |
Dashboard /wp-admin | 2,207 ▲7 | 4.83 ▼0.02 | 101.24 ▼5.96 | 41.77 ▲2.82 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.03 ▼0.02 | 36.65 ▼4.18 | 33.77 ▼1.60 |
Add New Post /wp-admin/post-new.php | 6,495 ▲4,962 | 23.21 ▼0.06 | 875.38 ▲180.15 | 85.45 ▲28.59 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.32 ▲0.13 | 98.15 ▼2.08 | 40.78 ▼2.66 |
WP Headmaster /wp-admin/options-general.php?page=Headmaster | 1,946 | 5.20 | 106.93 | 46.59 |
Uninstaller [IO: ✅] [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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=Headmaster
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=Headmaster
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=Headmaster
- > User deprecated in wp-includes/functions.php+5453
Function get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead.
SRP 0% 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
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-headmaster/creare-footer.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-headmaster/wp-headmaster.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/wp-headmaster/wp-headmaster-settings.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% 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
Attributes that need to be fixed:
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Plugin Name: Please specify the plugin name on the first line (
=== wp-headmaster ===
)
wp-headmaster/wp-headmaster.php Passed 13 tests
The main PHP file in "WP Headmaster" ver. 0.3 adds more information about the plugin and also serves as the entry point for this plugin
104 characters long description:
A simple plugin for adding, enqueuing and organising common items into the Head tag without hard-coding.
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
There were no executable files found in this plugin692 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 123 | 20 | 612 |
JavaScript | 3 | 23 | 18 | 55 |
CSS | 1 | 4 | 0 | 25 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 28 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/apple-reflected-shine.png | 2.77KB | 2.29KB | ▼ 17.15% |