Random Banner

Display random image, SWF, or script ads across your WordPress site with this powerful, customizable, and user-friendly Random Banner plugin.

v4.2.12M A Vinoth KumarUpdated Added 1k+ installs92% rating
40
Score
59
Errors
125
Warnings
+0
Change

Category Scores

Security0
Repo94
Performance100
Maintainability78

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

184 findings

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-&gt;prepare(); found interpolated variable $bc_random_banner at &quot;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 &#039;yes&#039; AFTER cost_per_impression&quot;13
Category
Security
Occurrences
13
Severity
warning

Sample message

Use placeholders and $wpdb-&gt;prepare(); found interpolated variable $bc_random_banner at &quot;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 &#039;yes&#039; AFTER cost_per_impression&quot;

WARNINGSecurityInput Not SanitizedDetected usage of a non-sanitized input variable: $_REQUEST[&#039;bc_delete_dbs&#039;]10
Category
Security
Occurrences
10
Severity
warning

Sample message

Detected usage of a non-sanitized input variable: $_REQUEST[&#039;bc_delete_dbs&#039;]

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[&#039;bc_delete_dbs&#039;] not unslashed before sanitization. Use wp_unslash() or similar8
Category
Security
Occurrences
8
Severity
warning

Sample message

$_REQUEST[&#039;bc_delete_dbs&#039;] 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-&gt;get_var()4
Category
Security
Occurrences
4
Severity
warning

Sample message

Unescaped parameter $bc_random_banner used in $wpdb-&gt;get_var()

Show 6 more
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[&#039;bc_delete_dbs&#039;]. 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

Related Plugins