WordPress polls plugin with multiple-choice, custom answers, cache compatibility, widgets, and shortcodes.
Category Scores
Issues to Review
Prioritized issue groups from the latest Plugin Check scan
Maintainability
465
12 issue groups
Security
317
10 issue groups
I18n
16
3 issue groups
ERRORMaintainabilityShort PHP open tag foundShort PHP opening tag used with echo; expected "<?php echo $additional ..." but found "<?= $additional ..."181
- Category
- Maintainability
- Occurrences
- 181
- Severity
- error
Sample message
Short PHP opening tag used with echo; expected "<?php echo $additional ..." but found "<?= $additional ..."
ERRORSecurityOutput is not escapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"<h2 style='text-align:center;'>$ex</h2>"'.119
- Category
- Security
- Occurrences
- 119
- Severity
- error
Sample message
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"<h2 style='text-align:center;'>$ex</h2>"'.
WARNINGMaintainabilityDirect QueryUse of a direct database call is discouraged.87
- Category
- Maintainability
- Occurrences
- 87
- 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().77
- Category
- Maintainability
- Occurrences
- 77
- Severity
- warning
Sample message
Direct database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().
WARNINGMaintainabilityNon-prefixed global variableGlobal variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$additional".60
- Category
- Maintainability
- Occurrences
- 60
- Severity
- warning
Sample message
Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$additional".
WARNINGSecurityInput is not sanitizedDetected usage of a non-sanitized input variable: $_COOKIE[$this->cookie_key]35
- Category
- Security
- Occurrences
- 35
- Severity
- warning
Sample message
Detected usage of a non-sanitized input variable: $_COOKIE[$this->cookie_key]
WARNINGSecurityRequest data is not unslashed$_COOKIE[$this->cookie_key] not unslashed before sanitization. Use wp_unslash() or similar34
- Category
- Security
- Occurrences
- 34
- Severity
- warning
Sample message
$_COOKIE[$this->cookie_key] not unslashed before sanitization. Use wp_unslash() or similar
WARNINGSecurityNonce verification recommendedProcessing form data without nonce verification.31
- Category
- Security
- Occurrences
- 31
- Severity
- warning
Sample message
Processing form data without nonce verification.
ERRORSecuritySQL query is not preparedUse placeholders and $wpdb->prepare(); found $del_ids25
- Category
- Security
- Occurrences
- 25
- Severity
- error
Sample message
Use placeholders and $wpdb->prepare(); found $del_ids
WARNINGMaintainabilityNon-prefixed hook nameHook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "dem_admin_polls_list_answers_column_row".23
- Category
- Maintainability
- Occurrences
- 23
- Severity
- warning
Sample message
Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "dem_admin_polls_list_answers_column_row".
Show 15 moreShow less
WARNINGSecurityMissing nonce verification20
- Category
- Security
- Occurrences
- 20
- Severity
- warning
Sample message
Processing form data without nonce verification.
ERRORSecurityDatabase parameter is not escaped18
- Category
- Security
- Occurrences
- 18
- Severity
- error
Sample message
Unescaped parameter $AND_NOT_IN used in $wpdb->get_col()\n$AND_NOT_IN assigned unsafely at line 197.
WARNINGSecurityInterpolated SQL is not prepared17
- Category
- Security
- Occurrences
- 17
- Severity
- warning
Sample message
Use placeholders and $wpdb->prepare(); found interpolated variable $AND_NOT_IN at "SELECT aid FROM $wpdb->democracy_a WHERE qid = $poll_id $AND_NOT_IN"
WARNINGSecurityInput is not validated13
- Category
- Security
- Occurrences
- 13
- Severity
- warning
Sample message
Detected usage of a possibly undefined superglobal array index: $_COOKIE[$this->cookie_key]. Check that the array index exists before using it.
WARNINGMaintainabilitySchema Change11
- Category
- Maintainability
- Occurrences
- 11
- Severity
- warning
Sample message
Attempting a database schema change is discouraged.
ERRORI18nMissing Translators Comment10
- 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.
ERRORMaintainabilityNot Allowed7
- Category
- Maintainability
- Occurrences
- 7
- Severity
- error
Sample message
Use of heredoc syntax (<<<) is not allowed; use standard strings or inline HTML instead
ERRORMaintainabilitydate date6
- Category
- Maintainability
- Occurrences
- 6
- Severity
- error
Sample message
date() is affected by runtime timezone changes which can cause date/time to be incorrectly displayed. Use gmdate() instead.
WARNINGMaintainabilityNon-prefixed function6
- Category
- Maintainability
- Occurrences
- 6
- Severity
- warning
Sample message
Functions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: "democr_delete_plugin".
WARNINGSecuritywp redirect wp redirect5
- Category
- Security
- Occurrences
- 5
- Severity
- warning
Sample message
wp_redirect() found. Using wp_safe_redirect(), along with the "allowed_redirect_hosts" filter if needed, can help avoid any chances of malicious redirects within code. It is also important to remember to call exit() after a redirect so that no other unwanted code is executed.
ERRORI18nNon Singular String Literal Text3
- Category
- I18n
- Occurrences
- 3
- Severity
- error
Sample message
The $text parameter must be a single text string literal. Found: $key
ERRORI18nUnordered Placeholders Text3
- Category
- I18n
- Occurrences
- 3
- Severity
- error
Sample message
Multiple placeholders in translatable strings should be ordered. Expected "%1$d, %2$d, %3$d", but got "%d, %d, %d" in 'Polls copied: %d. Answers copied: %d. Logs copied: %d'.
ERRORMaintainabilityMissing direct file access protection3
- Category
- Maintainability
- Occurrences
- 3
- Severity
- error
Sample message
PHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;
WARNINGMaintainabilityerror log print r2
- Category
- Maintainability
- Occurrences
- 2
- Severity
- warning
Sample message
print_r() found. Debug code should not normally be used in production.
ERRORMaintainabilityrand rand2
- Category
- Maintainability
- Occurrences
- 2
- Severity
- error
Sample message
rand() is discouraged. Use the far less predictable wp_rand() instead.
Score History
First score snapshot
v6.3.1
24
Latest
- Findings
- 813
- Errors
- 388
- Warnings
- 425
- Check
- 2.0.0
| Scan | Score | Findings | Errors | Warnings | Plugin | Check |
|---|---|---|---|---|---|---|
| Latest | 24 | 813 | 388 | 425 | v6.3.1 | 2.0.0 |