Single Post Template

Single Post Template adds the ability for your theme to include "Post Templates" in much the same way you can add "Page Templates" …

v1.4.4Nathan RiceUpdated Added 4k+ installs88% rating
62
Score
14
Errors
8
Warnings
+0
Change

Category Scores

Security37
Repo86
Performance100
Maintainability93

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

22 findings

Security

12

5 issue groups

I18n

4

1 issue group

Maintainability

3

3 issue groups

Repo Compliance

3

3 issue groups

ERRORI18nText Domain MismatchMismatched text domain. Expected 'single-post-template' but got 'genesis'.4
Category
I18n
Occurrences
4
Severity
error

Sample message

Mismatched text domain. Expected 'single-post-template' but got 'genesis'.

ERRORSecurityUnsafe printing functionAll output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'.3
Category
Security
Occurrences
3
Severity
error

Sample message

All output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'.

WARNINGSecurityInput is not validatedDetected usage of a possibly undefined superglobal array index: $_POST['_wp_post_template']. Check that the array index exists before using it.3
Category
Security
Occurrences
3
Severity
warning

Sample message

Detected usage of a possibly undefined superglobal array index: $_POST['_wp_post_template']. Check that the array index exists before using it.

ERRORSecurityOutput is not escapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$opt'.2
Category
Security
Occurrences
2
Severity
error

Sample message

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$opt'.

WARNINGSecurityInput is not sanitizedDetected usage of a non-sanitized input variable: $_POST['_wp_post_template']2
Category
Security
Occurrences
2
Severity
warning

Sample message

Detected usage of a non-sanitized input variable: $_POST['_wp_post_template']

WARNINGSecurityRequest data is not unslashed$_POST['_wp_post_template'] not unslashed before sanitization. Use wp_unslash() or similar2
Category
Security
Occurrences
2
Severity
warning

Sample message

$_POST['_wp_post_template'] not unslashed before sanitization. Use wp_unslash() or similar

ERRORMaintainabilityForbidden PHP function foundThe use of function _cleanup_header_comment() is forbidden1
Category
Maintainability
Occurrences
1
Severity
error

Sample message

The use of function _cleanup_header_comment() is forbidden

ERRORMaintainabilityinvalid plugin namePlugin name header in your readme is missing or invalid. Please update your readme with a valid plugin name header. Eg: "=== Example Name ==="1
Category
Maintainability
Occurrences
1
Severity
error

Sample message

Plugin name header in your readme is missing or invalid. Please update your readme with a valid plugin name header. Eg: "=== Example Name ==="

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 Complianceno licenseMissing "License". Please update your readme with a valid GPLv2 (or later) compatible license.1
Category
Repo Compliance
Occurrences
1
Severity
error

Sample message

Missing "License". Please update your readme with a valid GPLv2 (or later) compatible license.

Show 2 more
ERRORRepo Complianceoutdated tested upto header1
Category
Repo Compliance
Occurrences
1
Severity
error

Sample message

Tested up to: 3.6 < 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.

WARNINGRepo Compliancereadme parser warnings trimmed short description1
Category
Repo Compliance
Occurrences
1
Severity
warning

Sample message

The "Short Description" section is too long and was truncated. A maximum of 150 characters is supported.

External Connections

Not analyzed yet.

Score History

First score snapshot

v1.4.4

62

Latest

Findings
22
Errors
14
Warnings
8
Check
2.0.0

Relationship Map

Author, categories, issues, domains, and nearby plugins.

27 nodes

Related Plugins

Post Layouts for Gutenberg

2k+ active installs

96