Display random image, SWF, or script ads across your WordPress site with this powerful, customizable, and user-friendly Random Banner plugin.
Category Scores
Issues to Review
Prioritized issue groups from the latest Plugin Check scan
Security
118
9 issue groups
Maintainability
63
5 issue groups
I18n
2
1 issue group
Repo Compliance
1
1 issue group
ERRORSecurityOutput Not EscapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"<script>\n'.46
- Category
- Security
- Occurrences
- 46
- Severity
- error
Sample message
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"<script>\n'.
WARNINGSecurityRecommendedProcessing form data without nonce verification.27
- Category
- Security
- Occurrences
- 27
- Severity
- warning
Sample message
Processing form data without nonce verification.
WARNINGMaintainabilityDirect QueryUse of a direct database call is discouraged.24
- Category
- Maintainability
- Occurrences
- 24
- 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().22
- Category
- Maintainability
- Occurrences
- 22
- Severity
- warning
Sample message
Direct database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().
WARNINGSecurityInterpolated Not PreparedUse placeholders and $wpdb->prepare(); found interpolated variable $bc_random_banner at "ALTER TABLE $bc_random_banner ADD ads_type VARCHAR(255) NOT NULL AFTER category, ADD max_click INT(11) NOT NULL DEFAULT -1 AFTER ads_type, ADD max_impression INT(11) NOT NULL DEFAULT -1 AFTER max_click, ADD total_click INT(11) NOT NULL DEFAULT -1 AFTER max_impression, ADD total_impression INT(11) NOT NULL DEFAULT -1 AFTER total_click, ADD slot_name VARCHAR(255) NOT NULL AFTER total_impression, ADD cost_per_click decimal(10,5) NOT NULL DEFAULT -1 AFTER slot_name, ADD cost_per_impression decimal(10,5) NOT NULL DEFAULT -1 AFTER cost_per_click, ADD is_enable VARCHAR(255) NOT NULL DEFAULT 'yes' AFTER cost_per_impression"13
- Category
- Security
- Occurrences
- 13
- Severity
- warning
Sample message
Use placeholders and $wpdb->prepare(); found interpolated variable $bc_random_banner at "ALTER TABLE $bc_random_banner ADD ads_type VARCHAR(255) NOT NULL AFTER category, ADD max_click INT(11) NOT NULL DEFAULT -1 AFTER ads_type, ADD max_impression INT(11) NOT NULL DEFAULT -1 AFTER max_click, ADD total_click INT(11) NOT NULL DEFAULT -1 AFTER max_impression, ADD total_impression INT(11) NOT NULL DEFAULT -1 AFTER total_click, ADD slot_name VARCHAR(255) NOT NULL AFTER total_impression, ADD cost_per_click decimal(10,5) NOT NULL DEFAULT -1 AFTER slot_name, ADD cost_per_impression decimal(10,5) NOT NULL DEFAULT -1 AFTER cost_per_click, ADD is_enable VARCHAR(255) NOT NULL DEFAULT 'yes' AFTER cost_per_impression"
WARNINGSecurityInput Not SanitizedDetected usage of a non-sanitized input variable: $_REQUEST['bc_delete_dbs']10
- Category
- Security
- Occurrences
- 10
- Severity
- warning
Sample message
Detected usage of a non-sanitized input variable: $_REQUEST['bc_delete_dbs']
WARNINGMaintainabilitySchema ChangeAttempting a database schema change is discouraged.8
- Category
- Maintainability
- Occurrences
- 8
- Severity
- warning
Sample message
Attempting a database schema change is discouraged.
WARNINGSecurityMissing Unslash$_REQUEST['bc_delete_dbs'] not unslashed before sanitization. Use wp_unslash() or similar8
- Category
- Security
- Occurrences
- 8
- Severity
- warning
Sample message
$_REQUEST['bc_delete_dbs'] not unslashed before sanitization. Use wp_unslash() or similar
ERRORMaintainabilitymissing direct file access protectionPHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;8
- Category
- Maintainability
- Occurrences
- 8
- Severity
- error
Sample message
PHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;
WARNINGSecurityUnescaped DBParameterUnescaped parameter $bc_random_banner used in $wpdb->get_var()4
- Category
- Security
- Occurrences
- 4
- Severity
- warning
Sample message
Unescaped parameter $bc_random_banner used in $wpdb->get_var()
Show 6 moreShow less
WARNINGSecurityMissing4
- Category
- Security
- Occurrences
- 4
- Severity
- warning
Sample message
Processing form data without nonce verification.
ERRORSecurityQuoted Simple Placeholder3
- Category
- Security
- Occurrences
- 3
- Severity
- error
Sample message
Simple placeholders should not be quoted in the query string in $wpdb->prepare(). Found: '%s'.
WARNINGSecurityInput Not Validated3
- Category
- Security
- Occurrences
- 3
- Severity
- warning
Sample message
Detected usage of a possibly undefined superglobal array index: $_REQUEST['bc_delete_dbs']. Check that the array index exists before using it.
WARNINGI18nload plugin textdomain Found2
- Category
- I18n
- Occurrences
- 2
- 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.
ERRORMaintainabilitylibrary core files1
- Category
- Maintainability
- Occurrences
- 1
- Severity
- error
Sample message
Library files that are already in the WordPress core are not permitted.
ERRORRepo Complianceoutdated tested upto header1
- Category
- Repo Compliance
- Occurrences
- 1
- Severity
- error
Sample message
Tested up to: 6.9 < 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.
Score History
First score snapshot
v4.2.12
40
Latest
- Findings
- 184
- Errors
- 59
- Warnings
- 125
- Check
- 2.0.0
| Scan | Score | Findings | Errors | Warnings | Plugin | Check |
|---|---|---|---|---|---|---|
| Latest | 40 | 184 | 59 | 125 | v4.2.12 | 2.0.0 |