Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.19MB] [CPU: ▼14.90ms] Passed 4 tests
Analyzing server-side resources used by WordPress Host Headers
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.83 ▼0.63 | 20.53 ▼21.83 |
Dashboard /wp-admin | 3.32 ▲0.02 | 43.52 ▼3.24 |
Posts /wp-admin/edit.php | 3.18 ▼0.17 | 30.36 ▼14.58 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 81.56 ▼19.94 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 32.34 ▼1.02 |
Host Header Settings /wp-admin/options-general.php?page=host-header-settings | 3.19 | 28.15 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for WordPress Host Headers
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.51 ▲0.11 | 1.82 ▼0.22 | 42.67 ▼1.91 |
Dashboard /wp-admin | 2,210 ▲21 | 5.83 ▲0.90 | 94.77 ▼13.95 | 41.37 ▲2.52 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▲0.01 | 34.61 ▼2.13 | 34.54 ▼5.47 |
Add New Post /wp-admin/post-new.php | 1,545 ▲12 | 18.00 ▼4.96 | 611.68 ▲28.83 | 52.60 ▼10.28 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.20 ▲0.00 | 94.80 ▼3.20 | 41.99 ▼3.65 |
Host Header Settings /wp-admin/options-general.php?page=host-header-settings | 803 | 2.02 | 24.97 | 26.17 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=host-header-settings
- > Notice in wp-content/plugins/host-header/host-header.php+93
Trying to access array offset on value of type bool
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: hosting, security
host-header/host-header.php Passed 13 tests
Analyzing the main PHP file in "WordPress Host Headers" version 1.0.1
76 characters long description:
Add a Host-Header to track down hosting partners in helping combat web spam.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin105 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 19 | 27 | 72 |
Markdown | 1 | 13 | 0 | 29 |
JSON | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
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 | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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 files were detected