Post Ratings

Simple, developer-friendly, straightforward post rating plugin. Relies on post meta to store avg. rating / vote count.

v3.0digitalnatureUpdated Added 600 installs90% rating
40
Score
160
Errors
32
Warnings
+0
Change

Category Scores

Security0
Repo86
Performance100
Maintainability85

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

192 findings

Security

114

6 issue groups

I18n

67

3 issue groups

Maintainability

8

5 issue groups

Repo Compliance

3

3 issue groups

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

Sample message

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

ERRORI18nNon Singular String Literal DomainThe $domain parameter must be a single text string literal. Found: Post_Ratings::ID56
Category
I18n
Occurrences
56
Severity
error

Sample message

The $domain parameter must be a single text string literal. Found: Post_Ratings::ID

ERRORI18nMissing Translators CommentA 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.10
Category
I18n
Occurrences
10
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.

WARNINGSecurityInput is not sanitizedDetected usage of a non-sanitized input variable: $_COOKIE[$this->get_record_key( 'posts_rated' )]8
Category
Security
Occurrences
8
Severity
warning

Sample message

Detected usage of a non-sanitized input variable: $_COOKIE[$this->get_record_key( 'posts_rated' )]

WARNINGSecurityRequest data is not unslashed$_COOKIE[$this->get_record_key( 'posts_rated' )] not unslashed before sanitization. Use wp_unslash() or similar8
Category
Security
Occurrences
8
Severity
warning

Sample message

$_COOKIE[$this->get_record_key( 'posts_rated' )] not unslashed before sanitization. Use wp_unslash() or similar

WARNINGSecurityNonce verification recommendedProcessing form data without nonce verification.4
Category
Security
Occurrences
4
Severity
warning

Sample message

Processing form data without nonce verification.

WARNINGMaintainabilityNon-prefixed global variableGlobal variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$classes".3
Category
Maintainability
Occurrences
3
Severity
warning

Sample message

Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$classes".

WARNINGSecurityInput is not validatedDetected usage of a possibly undefined superglobal array index: $_REQUEST['post_id']. 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: $_REQUEST['post_id']. Check that the array index exists before using it.

ERRORMaintainabilityForbidden PHP function foundThe use of function eval() is forbidden2
Category
Maintainability
Occurrences
2
Severity
error

Sample message

The use of function eval() is forbidden

WARNINGSecurityMissing nonce verificationProcessing form data without nonce verification.2
Category
Security
Occurrences
2
Severity
warning

Sample message

Processing form data without nonce verification.

Show 7 more
WARNINGI18nDiscouraged text-domain loading1
Category
I18n
Occurrences
1
Severity
warning

Sample message

load_plugin_textdomain() has been discouraged since WordPress version 4.6. When your plugin is hosted on WordPress.org, you no longer need to manually include this function call for translations under your plugin slug. WordPress will automatically load the translations for you as needed.

WARNINGMaintainabilityNon-prefixed hook name1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

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

ERRORMaintainabilityDeprecated function: screen_icon1
Category
Maintainability
Occurrences
1
Severity
error

Sample message

screen_icon() has been deprecated since WordPress version 3.8.0.

WARNINGMaintainabilityMissing Version1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

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

ERRORRepo Complianceinvalid license1
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.

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

Sample message

Tested up to: 4.5 < 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 too many tags1
Category
Repo Compliance
Occurrences
1
Severity
warning

Sample message

One or more tags were ignored. Please limit your plugin to 5 tags.

External Connections

Potential connections found in static code analysis.

6 domains

Outbound calls

17

External assets

0

Incoming endpoints

2

Notable Domains

dfactory.eu10 · outbound
en.wikipedia.org1 · outbound
gist.github.com1 · outbound
wbotelhos.com1 · outbound

Platform / Reference Domains

opensource.org3 · platform/reference
wordpress.org1 · platform/reference

External Asset Domains

No external asset domains detected.

Incoming Endpoints

wp_ajax_nopriv_rate_postpublic

wp_ajax

Admin AJAX endpoints1
wp_ajax_rate_postauthenticated

wp_ajax

Score History

First score snapshot

v3.0

40

Latest

Findings
192
Errors
160
Warnings
32
Check
2.0.0

Relationship Map

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

33 nodes

Related Plugins

Absolute Reviews

6k+ active installs

99
Custom Post Exporter

3k+ active installs

99
Header and Footer Scripts

200k+ active installs

99
Hide Broken Shortcodes

400 active installs

99
Link Shortner

800 active installs

99