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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.71ms] Passed 4 tests
Analyzing server-side resources used by Host Header Injection Fix
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 34.49 ▼7.87 |
Dashboard /wp-admin | 3.34 ▲0.03 | 44.06 ▼1.35 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 44.28 ▼2.45 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 81.14 ▼11.16 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 33.67 ▲1.27 |
HHIF /wp-admin/options-general.php?page=hhif | 3.25 | 30.71 |
Server storage [IO: ▲0.05MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Host Header Injection Fix
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.38 ▲0.01 | 2.07 ▲0.35 | 40.45 ▼0.84 |
Dashboard /wp-admin | 2,196 ▲16 | 5.53 ▼0.14 | 82.81 ▼3.42 | 38.09 ▼3.47 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▼0.01 | 32.29 ▼7.93 | 32.79 ▼5.44 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.26 ▲0.35 | 685.75 ▲22.54 | 56.45 ▼5.08 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.15 ▼0.00 | 107.37 ▲5.58 | 48.32 ▲4.13 |
HHIF /wp-admin/options-general.php?page=hhif | 871 | 2.05 | 26.33 | 34.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
No output text or server-side errors detected on direct access of PHP files
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
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: notification, injection, security, patch, email...
host-header-injection-fix/host-header-injection-fix.php Passed 13 tests
The main PHP script in "Host Header Injection Fix" version 2.9 is automatically included on every request by WordPress
102 characters long description:
Sets custom headers for WP notification emails. Also fixes a security issue with WP versions < 5.5.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin278 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 196 | 31 | 259 |
JavaScript | 1 | 6 | 0 | 19 |
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.42 |
Average class complexity | 62.00 |
▷ Minimum class complexity | 62.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 3.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 27 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 27 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.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
There were not PNG files found in your plugin