Polls CP

Create classic polls and advanced polls with dependant questions. Voting / survey system.

v1.0.84codepeopleUpdated Added 400 installs52% rating
27
Score
399
Errors
500
Warnings
+0
Change

Category Scores

Security0
Repo100
Performance100
Maintainability11

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

899 findings

Security

712

10 issue groups

Maintainability

161

13 issue groups

I18n

13

2 issue groups

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

Sample message

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

WARNINGSecurityRequest data is not unslashed$_COOKIE['rand_code'.$sequence] not unslashed before sanitization. Use wp_unslash() or similar122
Category
Security
Occurrences
122
Severity
warning

Sample message

$_COOKIE['rand_code'.$sequence] not unslashed before sanitization. Use wp_unslash() or similar

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

Sample message

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

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

Sample message

Processing form data without nonce verification.

WARNINGSecurityInput is not sanitizedDetected usage of a non-sanitized input variable: $_COOKIE['rand_code'.$sequence]67
Category
Security
Occurrences
67
Severity
warning

Sample message

Detected usage of a non-sanitized input variable: $_COOKIE['rand_code'.$sequence]

ERRORSecuritySQL query is not preparedUse placeholders and $wpdb->prepare(); found $cond60
Category
Security
Occurrences
60
Severity
error

Sample message

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

WARNINGMaintainabilityDirect QueryUse of a direct database call is discouraged.40
Category
Maintainability
Occurrences
40
Severity
warning

Sample message

Use of a direct database call is discouraged.

WARNINGMaintainabilityNo CachingDirect database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().34
Category
Maintainability
Occurrences
34
Severity
warning

Sample message

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

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

Sample message

Processing form data without nonce verification.

ERRORMaintainabilitydate datedate() is affected by runtime timezone changes which can cause date/time to be incorrectly displayed. Use gmdate() instead.13
Category
Maintainability
Occurrences
13
Severity
error

Sample message

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

Show 15 more
WARNINGMaintainabilityMissing Version13
Category
Maintainability
Occurrences
13
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.

ERRORMaintainabilityMissing direct file access protection11
Category
Maintainability
Occurrences
11
Severity
error

Sample message

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

ERRORMaintainabilitywp function not compatible with requires wp11
Category
Maintainability
Occurrences
11
Severity
error

Sample message

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

ERRORMaintainabilityNon Enqueued Script10
Category
Maintainability
Occurrences
10
Severity
error

Sample message

Scripts must be registered/enqueued via wp_enqueue_script()

ERRORI18nNon Singular String Literal Text10
Category
I18n
Occurrences
10
Severity
error

Sample message

The $text parameter must be a single text string literal. Found: $button_label

ERRORMaintainabilityrand mt rand8
Category
Maintainability
Occurrences
8
Severity
error

Sample message

mt_rand() is discouraged. Use the far less predictable wp_rand() instead.

ERRORSecurityDatabase parameter is not escaped7
Category
Security
Occurrences
7
Severity
error

Sample message

Unescaped parameter $cond used in $wpdb->get_results()\n$cond assigned unsafely at line 1049.

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.

WARNINGSecurityInterpolated SQL is not prepared6
Category
Security
Occurrences
6
Severity
warning

Sample message

Use placeholders and $wpdb->prepare(); found interpolated variable {$name} at "ALTER TABLE {$tab} CHANGE {$name} {$name} {$type} COLLATE `{$target_charset}`"

ERRORMaintainabilitystrip tags strip tags6
Category
Maintainability
Occurrences
6
Severity
error

Sample message

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

ERRORMaintainabilityfile system operations fclose3
Category
Maintainability
Occurrences
3
Severity
error

Sample message

File operations should use WP_Filesystem methods instead of direct PHP filesystem calls. Found: fclose().

ERRORMaintainabilityfile system operations fopen3
Category
Maintainability
Occurrences
3
Severity
error

Sample message

File operations should use WP_Filesystem methods instead of direct PHP filesystem calls. Found: fopen().

ERRORI18nText Domain Mismatch3
Category
I18n
Occurrences
3
Severity
error

Sample message

Mismatched text domain. Expected 'cp-polls' but got "cppolls".

WARNINGSecurityDatabase parameter is not escaped2
Category
Security
Occurrences
2
Severity
warning

Sample message

Unescaped parameter $table used in $wpdb->get_results()

ERRORMaintainabilityfile system operations fwrite2
Category
Maintainability
Occurrences
2
Severity
error

Sample message

File operations should use WP_Filesystem methods instead of direct PHP filesystem calls. Found: fwrite().

External Connections

Potential connections found in static code analysis.

14 domains

Outbound calls

142

External assets

2

Incoming endpoints

1

Notable Domains

docs.jquery.com43 · outbound
jqueryui.com14 · outbound
jquery.org13 · outbound
apache.org1 · outbound

Platform / Reference Domains

wordpress.org15 · platform/reference
gnu.org1 · platform/reference
opensource.org1 · platform/reference

External Asset Domains

ajax.googleapis.com4 · asset + outbound

Incoming Endpoints

No public endpoints detected.

Admin AJAX endpoints1
wp_ajax_cpcppolls_feedbackauthenticated

wp_ajax

Score History

First score snapshot

v1.0.84

27

Latest

Findings
899
Errors
399
Warnings
500
Check
2.0.0

Relationship Map

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

37 nodes

Related Plugins