Broadstreet

Integrate Broadstreet adserving power into your site.

v1.53.2BroadstreetUpdated Added 700 installs100% rating
20
Score
434
Errors
273
Warnings
+0
Change

Category Scores

Security0
Repo66
Performance100
Maintainability0

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

707 findings

Security

396

9 issue groups

Maintainability

206

14 issue groups

I18n

60

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 '"<script data-cfasync='false'>$code</script>"'.220
Category
Security
Occurrences
220
Severity
error

Sample message

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"<script data-cfasync='false'>$code</script>"'.

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

Sample message

Processing form data without nonce verification.

WARNINGMaintainabilityNon-prefixed global variableGlobal variables defined by a theme/plugin should start with the theme/plugin prefix. Found: &quot;$advertiser&quot;.52
Category
Maintainability
Occurrences
52
Severity
warning

Sample message

Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: &quot;$advertiser&quot;.

WARNINGSecurityRequest data is not unslashed$_GET[&#039;nonce&#039;] not unslashed before sanitization. Use wp_unslash() or similar46
Category
Security
Occurrences
46
Severity
warning

Sample message

$_GET[&#039;nonce&#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;46
Category
Maintainability
Occurrences
46
Severity
error

Sample message

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

WARNINGSecurityInput is not sanitizedDetected usage of a non-sanitized input variable: $_GET[&#039;nonce&#039;]34
Category
Security
Occurrences
34
Severity
warning

Sample message

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

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

Sample message

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

ERRORI18nText Domain MismatchMismatched text domain. Expected 'broadstreet' but got 'broadstreet_textdomain'.28
Category
I18n
Occurrences
28
Severity
error

Sample message

Mismatched text domain. Expected 'broadstreet' but got 'broadstreet_textdomain'.

ERRORMaintainabilitywp function not compatible with requires wpFunction "get_queried_object_id()" requires WordPress 3.1.0, but your plugin minimum supported version is WordPress 3.0.0.26
Category
Maintainability
Occurrences
26
Severity
error

Sample message

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

WARNINGMaintainabilityMissing VersionResource 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.22
Category
Maintainability
Occurrences
22
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.

Show 15 more
WARNINGSecurityInput is not validated16
Category
Security
Occurrences
16
Severity
warning

Sample message

Detected usage of a possibly undefined superglobal array index: $_POST[&#039;api_key&#039;]. Check that the array index exists before using it.

WARNINGMaintainabilityNot In Footer12
Category
Maintainability
Occurrences
12
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.

ERRORMaintainabilitydate date10
Category
Maintainability
Occurrences
10
Severity
error

Sample message

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

ERRORSecurityHeredoc Output Not Escaped8
Category
Security
Occurrences
8
Severity
error

Sample message

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found interpolation in unescaped heredoc.

ERRORMaintainabilityNon Enqueued Script8
Category
Maintainability
Occurrences
8
Severity
error

Sample message

Scripts must be registered/enqueued via wp_enqueue_script()

WARNINGMaintainabilityslow db query tax query6
Category
Maintainability
Occurrences
6
Severity
warning

Sample message

Detected usage of tax_query, possible slow query.

WARNINGMaintainabilityNo PHP code found4
Category
Maintainability
Occurrences
4
Severity
warning

Sample message

No PHP code was found in this file and short open tags are not allowed by this install of PHP. This file may be using short open tags but PHP does not allow them.

ERRORMaintainabilityOffloaded Content4
Category
Maintainability
Occurrences
4
Severity
error

Sample message

Offloading images, js, css, and other scripts to your servers or any remote service is disallowed.

ERRORSecurityDatabase parameter is not escaped4
Category
Security
Occurrences
4
Severity
error

Sample message

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

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

ERRORSecurityException output is not escaped4
Category
Security
Occurrences
4
Severity
error

Sample message

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"$key value wasn't decodable."'.

ERRORMaintainabilityfile system operations fclose4
Category
Maintainability
Occurrences
4
Severity
error

Sample message

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

ERRORMaintainabilityfile system operations fwrite4
Category
Maintainability
Occurrences
4
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.

20 domains

Outbound calls

76

External assets

18

Incoming endpoints

16

Notable Domains

broadstreetads.com14 · outbound
my.broadstreetads.com12 · outbound
angularjs.org2 · outbound

Platform / Reference Domains

github.com16 · platform/reference
plugins.trac.wordpress.org2 · platform/reference

External Asset Domains

Incoming Endpoints

/wp-json/broadstreet/v1/refreshREST

register_rest_route

/wp-json/broadstreet/v1/targetsREST

register_rest_route

Admin AJAX endpoints6
wp_ajax_bs_save_settingsauthenticated

wp_ajax

wp_ajax_create_advertiserauthenticated

wp_ajax

wp_ajax_get_sponsored_metaauthenticated

wp_ajax

wp_ajax_import_facebookauthenticated

wp_ajax

wp_ajax_registerauthenticated

wp_ajax

wp_ajax_save_zone_settingsauthenticated

wp_ajax

Score History

First score snapshot

v1.53.2

20

Latest

Findings
707
Errors
434
Warnings
273
Check
2.0.0

Relationship Map

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

32 nodes

Related Plugins

Ad Widget for WordPress

2k+ active installs

35