Comments – wpDiscuz

Advanced AJAX-powered WordPress comments plugin with live commenting, comment voting, inline feedback, social login, custom comment forms, and engagem …

v7.6.58AdvancedCodingUpdated Added 70k+ installs94% rating14% support resolved
23
Score
620
Errors
1,180
Warnings
+0
Change

Category Scores

Security0
Repo88
Performance98
Maintainability0

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

1,800 findings

Security

915

7 issue groups

Maintainability

556

13 issue groups

I18n

295

5 issue groups

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

Sample message

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

WARNINGSecurityRequest data is not unslashed$_COOKIE["comment_author_email_" . COOKIEHASH] not unslashed before sanitization. Use wp_unslash() or similar327
Category
Security
Occurrences
327
Severity
warning

Sample message

$_COOKIE["comment_author_email_" . COOKIEHASH] not unslashed before sanitization. Use wp_unslash() or similar

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

Sample message

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

WARNINGSecurityInput is not validatedDetected usage of a possibly undefined superglobal array index: $_FILES[self::INPUT_NAME]. Check that the array index exists before using it.213
Category
Security
Occurrences
213
Severity
warning

Sample message

Detected usage of a possibly undefined superglobal array index: $_FILES[self::INPUT_NAME]. Check that the array index exists before using it.

ERRORI18nNon Singular String Literal TextThe $text parameter must be a single text string literal. Found: !empty($currentUser->ID) ? "wpdiscuz-comment-message-auth" : "wpdiscuz-comment-message-unauth"127
Category
I18n
Occurrences
127
Severity
error

Sample message

The $text parameter must be a single text string literal. Found: !empty($currentUser->ID) ? "wpdiscuz-comment-message-auth" : "wpdiscuz-comment-message-unauth"

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

Sample message

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

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

Sample message

Processing form data without nonce verification.

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.53
Category
I18n
Occurrences
53
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["comment_author_email_" . COOKIEHASH]50
Category
Security
Occurrences
50
Severity
warning

Sample message

Detected usage of a non-sanitized input variable: $_COOKIE["comment_author_email_" . COOKIEHASH]

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

Sample message

Processing form data without nonce verification.

Show 15 more
WARNINGMaintainabilityNon-prefixed hook name36
Category
Maintainability
Occurrences
36
Severity
warning

Sample message

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

ERRORI18nText Domain Mismatch30
Category
I18n
Occurrences
30
Severity
error

Sample message

Mismatched text domain. Expected 'wpdiscuz' but got "default".

ERRORMaintainabilitystrip tags strip tags29
Category
Maintainability
Occurrences
29
Severity
error

Sample message

strip_tags() is discouraged. Use the more comprehensive wp_strip_all_tags() instead.

ERRORMaintainabilityByte order mark found21
Category
Maintainability
Occurrences
21
Severity
error

Sample message

File contains UTF-8 byte order mark, which may corrupt your application

ERRORMaintainabilitydate date15
Category
Maintainability
Occurrences
15
Severity
error

Sample message

date() is affected by runtime timezone changes which can cause date/time to be incorrectly displayed. Use gmdate() instead.

WARNINGMaintainabilityMissing Version11
Category
Maintainability
Occurrences
11
Severity
warning

Sample message

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

ERRORMaintainabilityparse url parse url10
Category
Maintainability
Occurrences
10
Severity
error

Sample message

parse_url() is discouraged because of inconsistency in the output across PHP versions; use wp_parse_url() instead.

WARNINGMaintainabilityslow db query meta query8
Category
Maintainability
Occurrences
8
Severity
warning

Sample message

Detected usage of meta_query, possible slow query.

WARNINGMaintainabilityNot In Footer7
Category
Maintainability
Occurrences
7
Severity
warning

Sample message

In footer ($in_footer) is not set explicitly wp_enqueue_script; It is recommended to load scripts in the footer. Please set this value to `true` to load it in the footer, or explicitly `false` if it should be loaded in the header.

WARNINGMaintainabilityMixed line endings6
Category
Maintainability
Occurrences
6
Severity
warning

Sample message

File has mixed line endings; this may cause incorrect results

ERRORMaintainabilityMissing direct file access protection5
Category
Maintainability
Occurrences
5
Severity
error

Sample message

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

WARNINGMaintainabilityDirect Query4
Category
Maintainability
Occurrences
4
Severity
warning

Sample message

Use of a direct database call is discouraged.

WARNINGMaintainabilityNo Caching4
Category
Maintainability
Occurrences
4
Severity
warning

Sample message

Direct database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().

ERRORSecuritySQL query is not prepared4
Category
Security
Occurrences
4
Severity
error

Sample message

Use placeholders and $wpdb->prepare(); found $sql

ERRORI18nUnordered Placeholders Text4
Category
I18n
Occurrences
4
Severity
error

Sample message

Multiple placeholders in translatable strings should be ordered. Expected "%1\$s, %2\$s", but got "%s, %s" in "<strong>%s</strong> in these <strong>%s</strong> accept reviews.".

Score History

First score snapshot

v7.6.58

23

Latest

Findings
1,800
Errors
620
Warnings
1,180
Check
2.0.0

Related Plugins

Simply Disable Comments

6k+ active installs

100
Turn Comments Off

1k+ active installs

100
Block List Updater

4k+ active installs

99
Lazy Load for Comments

2k+ active installs

99
One Click Close Comments

4k+ active installs

99
No Page Comment

10k+ active installs

98