Security Headers

Plug-in to ease the setting of TLS headers for HSTS and similar

v1.1SimonRWatersUpdated Added 3k+ installs100% rating
74
Score
31
Errors
11
Warnings
+0
Change

Category Scores

Security63
Repo89
Performance100
Maintainability82

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

42 findings

Maintainability

29

6 issue groups

Security

11

1 issue group

Repo Compliance

2

2 issue groups

ERRORMaintainabilityDeprecated parameter: unregister_setting parameter 3The parameter "'ischecked'" at position #3 of unregister_setting() has been deprecated since WordPress version 4.7.0. Instead do not pass the parameter.16
Category
Maintainability
Occurrences
16
Severity
error

Sample message

The parameter "'ischecked'" at position #3 of unregister_setting() has been deprecated since WordPress version 4.7.0. Instead do not pass the parameter.

ERRORSecurityOutput is not escapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"<input type='text' name='security_headers_ect_time' value='$setting' />"'.11
Category
Security
Occurrences
11
Severity
error

Sample message

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"<input type='text' name='security_headers_ect_time' value='$setting' />"'.

WARNINGMaintainabilityNon-prefixed functionFunctions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: &quot;ischecked&quot;.9
Category
Maintainability
Occurrences
9
Severity
warning

Sample message

Functions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: &quot;ischecked&quot;.

WARNINGMaintainabilityNon-prefixed global variableGlobal variables defined by a theme/plugin should start with the theme/plugin prefix. Found: &quot;$referrer_policies&quot;.1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: &quot;$referrer_policies&quot;.

WARNINGMaintainabilityerror log error logerror_log() found. Debug code should not normally be used in production.1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

error_log() found. Debug code should not normally be used in production.

ERRORRepo Complianceinvalid licenseYour plugin has an invalid license declared. Please update your readme with a valid SPDX license identifier.1
Category
Repo Compliance
Occurrences
1
Severity
error

Sample message

Your plugin has an invalid license declared. Please update your readme with a valid SPDX license identifier.

ERRORMaintainabilityMissing direct file access protectionPHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;1
Category
Maintainability
Occurrences
1
Severity
error

Sample message

PHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;

ERRORRepo Complianceoutdated tested upto headerTested up to: 5.1 < 7.0. The "Tested up to" value in your plugin is not set to the current version of WordPress. This means your plugin will not show up in searches, as we require plugins to be compatible and documented as tested up to the most recent version of WordPress.1
Category
Repo Compliance
Occurrences
1
Severity
error

Sample message

Tested up to: 5.1 < 7.0. The "Tested up to" value in your plugin is not set to the current version of WordPress. This means your plugin will not show up in searches, as we require plugins to be compatible and documented as tested up to the most recent version of WordPress.

ERRORMaintainabilitytrunk stable tagIncorrect Stable Tag. It's recommended not to use "Stable Tag: trunk". Your Stable Tag is meant to be the stable version of your plugin and it needs to be exactly the same with the Version in your main plugin file's header. Any mismatch can prevent users from downloading the correct plugin files from WordPress.org.1
Category
Maintainability
Occurrences
1
Severity
error

Sample message

Incorrect Stable Tag. It's recommended not to use "Stable Tag: trunk". Your Stable Tag is meant to be the stable version of your plugin and it needs to be exactly the same with the Version in your main plugin file's header. Any mismatch can prevent users from downloading the correct plugin files from WordPress.org.

Score History

First score snapshot

v1.1

74

Latest

Findings
42
Errors
31
Warnings
11
Check
2.0.0

Related Plugins

92
Cloudflare SSL by Weslink

2k+ active installs

90
HSTS Ready

3k+ active installs

85
Hostinger Tools

3m+ active installs

81
One Click SSL

10k+ active installs

40