Same Category Posts

Show posts related to the current category or other custom post types.

v1.1.20Daniel FloeterUpdated Added 3k+ installs94% rating
40
Score
183
Errors
8
Warnings
+0
Change

Category Scores

Security0
Repo94
Performance97
Maintainability83

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

191 findings

Security

136

2 issue groups

I18n

35

3 issue groups

Maintainability

17

6 issue groups

Performance

2

1 issue group

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

Sample message

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

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

Sample message

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

ERRORI18nMissing Arg DomainMissing $domain parameter in function call to __().31
Category
I18n
Occurrences
31
Severity
error

Sample message

Missing $domain parameter in function call to __().

ERRORMaintainabilitywp function not compatible with requires wpFunction "get_queried_object()" requires WordPress 3.1.0, but your plugin minimum supported version is WordPress 3.0.0.11
Category
Maintainability
Occurrences
11
Severity
error

Sample message

Function "get_queried_object()" requires WordPress 3.1.0, but your plugin minimum supported version is WordPress 3.0.0.

ERRORI18nText Domain MismatchMismatched text domain. Expected 'same-category-posts' but got 'same-posts'.3
Category
I18n
Occurrences
3
Severity
error

Sample message

Mismatched text domain. Expected 'same-category-posts' but got 'same-posts'.

WARNINGMaintainabilityDeprecated parameter: get_terms parameter 2The parameter "$args" at position #2 of get_terms() has been deprecated since WordPress version 4.5.0. Instead do not pass the parameter.2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

The parameter "$args" at position #2 of get_terms() has been deprecated since WordPress version 4.5.0. Instead do not pass the parameter.

WARNINGPerformancePost Not In post not inUsing exclusionary parameters, like post__not_in, in calls to get_posts() should be done with caution, see https://wpvip.com/documentation/performance-improvements-by-removing-usage-of-post__not_in/ for more information.2
Category
Performance
Occurrences
2
Severity
warning

Sample message

Using exclusionary parameters, like post__not_in, in calls to get_posts() should be done with caution, see https://wpvip.com/documentation/performance-improvements-by-removing-usage-of-post__not_in/ for more information.

WARNINGMaintainabilityslow db query tax queryDetected usage of tax_query, possible slow query.1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

Detected usage of tax_query, possible slow query.

WARNINGMaintainabilityNon-prefixed constantGlobal constants defined by a theme/plugin should start with the theme/plugin prefix. Found: "SAME_CATEGORY_POSTS_VERSION".1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

Global constants defined by a theme/plugin should start with the theme/plugin prefix. Found: "SAME_CATEGORY_POSTS_VERSION".

WARNINGMaintainabilityNon-prefixed hook nameHook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "the_excerpt".1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "the_excerpt".

Show 3 more
WARNINGMaintainabilityMissing Version1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

Resource version not set in call to wp_register_style(). This means new versions of the style may not always be loaded due to browser caching.

ERRORI18nMissing Translators Comment1
Category
I18n
Occurrences
1
Severity
error

Sample message

A function call to __() with texts containing placeholders was found, but was not accompanied by a "translators:" comment on the line above to clarify the meaning of the placeholders.

ERRORRepo Complianceplugin header no license1
Category
Repo Compliance
Occurrences
1
Severity
error

Sample message

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

Score History

First score snapshot

v1.1.20

40

Latest

Findings
191
Errors
183
Warnings
8
Check
2.0.0

Related Plugins