Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼142.64ms] Passed 4 tests
This is a short check of server-side resources used by Header Code
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.00 | 35.41 ▼1.50 |
Dashboard /wp-admin | 3.08 ▲0.02 | 46.62 ▼1.53 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 47.77 ▲2.86 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 101.02 ▼563.44 |
Media Library /wp-admin/upload.php | 3.02 ▲0.01 | 33.98 ▼4.08 |
Header Code /wp-admin/options-general.php?page=header-code | 2.99 | 31.32 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Header Code
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲112 | 15.97 ▼0.00 | 9.08 ▼0.27 | 48.14 ▼4.89 |
Dashboard /wp-admin | 2,975 ▲41 | 5.91 ▼0.30 | 147.70 ▼10.67 | 106.03 ▼3.04 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.70 ▼0.02 | 73.64 ▲8.63 | 86.64 ▼1.86 |
Add New Post /wp-admin/post-new.php | 1,503 ▼180 | 18.41 ▼0.11 | 393.97 ▼17.58 | 107.12 ▼17.04 |
Media Library /wp-admin/upload.php | 1,812 ▲61 | 5.03 ▲0.09 | 152.28 ▼2.09 | 138.03 ▲17.69 |
Header Code /wp-admin/options-general.php?page=header-code | 1,017 | 2.09 | 62.79 | 74.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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 SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== header-code ===
)
header-code/header-code.php Passed 13 tests
The main PHP script in "Header Code" version 1.2 is automatically included on every request by WordPress
53 characters long description:
Simplest plugin that injects any code into wp_head().
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin78 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 16 | 8 | 57 |
PO File | 1 | 3 | 4 | 21 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin