Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.37MB] [CPU: ▼6.22ms] Passed 4 tests
An overview of server-side resources used by HTTP Headers
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.80 ▲0.33 | 44.86 ▲2.05 |
Dashboard /wp-admin | 3.70 ▲0.35 | 52.49 ▼15.43 |
Posts /wp-admin/edit.php | 3.81 ▲0.45 | 54.10 ▲7.00 |
Add New Post /wp-admin/post-new.php | 6.29 ▲0.40 | 95.14 ▼9.14 |
Media Library /wp-admin/upload.php | 3.64 ▲0.41 | 37.87 ▼2.34 |
HTTP Headers /wp-admin/options-general.php?page=http-headers | 3.65 | 36.49 |
Server storage [IO: ▲0.33MB] [DB: ▲0.01MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please try to fix the following items
- Illegal file modification detected: 1 file (2.55KB) outside of "wp-content/plugins/http-headers/" and "wp-content/uploads/"
- (modified) .htaccess
Filesystem: 67 new files
Database: no new tables, 115 new options
New WordPress options |
---|
hh_strict_transport_security |
hh_expect_ct |
hh_method |
hh_feature_policy |
hh_x_xxs_protection_value |
hh_expect_ct_report_uri |
hh_x_ua_compatible |
hh_www_authenticate |
hh_www_authenticate_user |
hh_age_value |
... |
Browser metrics Passed 4 tests
HTTP Headers: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.21 ▲0.03 | 1.59 ▼0.49 | 43.68 ▼0.85 |
Dashboard /wp-admin | 2,203 ▲23 | 5.67 ▲0.00 | 90.64 ▲3.24 | 44.76 ▲1.25 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 2.03 ▲0.05 | 39.75 ▲3.59 | 35.67 ▼2.87 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 23.19 ▲0.10 | 614.87 ▼75.93 | 59.76 ▲5.04 |
Media Library /wp-admin/upload.php | 1,408 ▲8 | 4.27 ▲0.06 | 98.42 ▼16.79 | 42.78 ▼4.28 |
HTTP Headers /wp-admin/options-general.php?page=http-headers | 907 | 2.06 | 24.80 | 36.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 5× PHP files output text when accessed directly:
- > /wp-content/plugins/http-headers/views/includes/csp-src.inc.php
- > /wp-content/plugins/http-headers/views/includes/csp-inc.inc.php
- > /wp-content/plugins/http-headers/views/includes/csp-text.inc.php
- > /wp-content/plugins/http-headers/views/includes/csp-sri.inc.php
- > /wp-content/plugins/http-headers/views/includes/csp-sandbox.inc.php
- 168× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: item in wp-content/plugins/http-headers/views/includes/csp-src.inc.php on line 25
- > PHP Notice
Undefined variable: item in wp-content/plugins/http-headers/views/includes/csp-src.inc.php on line 21
- > PHP Notice
Undefined variable: item in wp-content/plugins/http-headers/views/includes/csp-sri.inc.php on line 14
- > PHP Notice
Undefined variable: content_security_policy in wp-content/plugins/http-headers/views/includes/csp-sandbox.inc.php on line 24
- > PHP Notice
Undefined variable: item in wp-content/plugins/http-headers/views/includes/csp-sri.inc.php on line 13
- > PHP Notice
Undefined variable: item in wp-content/plugins/http-headers/views/includes/csp-src.inc.php on line 27
- > PHP Notice
Undefined variable: item in wp-content/plugins/http-headers/views/includes/csp-src.inc.php on line 21
- > PHP Notice
Undefined variable: content_security_policy in wp-content/plugins/http-headers/views/includes/csp-src.inc.php on line 26
- > PHP Notice
Undefined variable: content_security_policy in wp-content/plugins/http-headers/views/includes/csp-src.inc.php on line 26
- > PHP Notice
Undefined variable: item in wp-content/plugins/http-headers/views/includes/csp-sri.inc.php on line 13
- > PHP Notice
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)
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Tags: There are too many tags (22 tag instead of maximum 10)
http-headers/http-headers.php Passed 13 tests
The entry point to "HTTP Headers" version 1.19.1 is a PHP file that has certain tags in its header comment area
121 characters long description:
A plugin for HTTP headers management including security, access-control (CORS), caching, compression, and authentication.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected6,116 lines of code in 62 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 59 | 243 | 47 | 5,253 |
CSS | 1 | 9 | 0 | 348 |
JavaScript | 1 | 33 | 1 | 284 |
PO File | 1 | 110 | 110 | 231 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
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 | 73 | |
▷ Named functions | 73 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin