Buy Me a Coffee – Button and Widget Plugin

A free, fast, and friendly way to accept donations and memberships (recurring payments) from your visitors.

v4.4.7Buy Me a CoffeeUpdated Added 6k+ installs76% rating0% support resolved
30
Score
139
Errors
140
Warnings
+0
Change

Category Scores

Security0
Repo94
Performance100
Maintainability31

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

279 findings

Security

169

10 issue groups

Maintainability

97

13 issue groups

I18n

4

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 '$args['after_widget']'.74
Category
Security
Occurrences
74
Severity
error

Sample message

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

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

Sample message

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

WARNINGMaintainabilityDirect QueryUse of a direct database call is discouraged.19
Category
Maintainability
Occurrences
19
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().17
Category
Maintainability
Occurrences
17
Severity
warning

Sample message

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

WARNINGSecurityInput is not sanitizedDetected usage of a non-sanitized input variable: $_POST['align']16
Category
Security
Occurrences
16
Severity
warning

Sample message

Detected usage of a non-sanitized input variable: $_POST['align']

WARNINGSecurityRequest data is not unslashed$_POST['align'] not unslashed before sanitization. Use wp_unslash() or similar16
Category
Security
Occurrences
16
Severity
warning

Sample message

$_POST['align'] not unslashed before sanitization. Use wp_unslash() or similar

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

Sample message

Processing form data without nonce verification.

ERRORMaintainabilitystrip tags strip tagsstrip_tags() is discouraged. Use the more comprehensive wp_strip_all_tags() instead.13
Category
Maintainability
Occurrences
13
Severity
error

Sample message

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

WARNINGSecuritywp redirect wp redirectwp_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.11
Category
Security
Occurrences
11
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.

ERRORMaintainabilityNon Enqueued StylesheetStylesheets must be registered/enqueued via wp_enqueue_style()11
Category
Maintainability
Occurrences
11
Severity
error

Sample message

Stylesheets must be registered/enqueued via wp_enqueue_style()

Show 15 more
ERRORMaintainabilityNon Enqueued Script8
Category
Maintainability
Occurrences
8
Severity
error

Sample message

Scripts must be registered/enqueued via wp_enqueue_script()

WARNINGSecurityDatabase parameter is not escaped5
Category
Security
Occurrences
5
Severity
warning

Sample message

Unescaped parameter $table used in $wpdb->get_row()\n$table assigned unsafely at line 264.

WARNINGSecurityInterpolated SQL is not prepared5
Category
Security
Occurrences
5
Severity
warning

Sample message

Use placeholders and $wpdb->prepare(); found interpolated variable $table at "SELECT * FROM $table"

WARNINGMaintainabilityNon-prefixed constant5
Category
Maintainability
Occurrences
5
Severity
warning

Sample message

Global constants defined by a theme/plugin should start with the theme/plugin prefix. Found: "FCSS".

ERRORMaintainabilitycurl curl setopt5
Category
Maintainability
Occurrences
5
Severity
error

Sample message

Using cURL functions is highly discouraged. Use wp_remote_get() instead.

ERRORSecuritySQL query is not prepared4
Category
Security
Occurrences
4
Severity
error

Sample message

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

ERRORMaintainabilitydate date4
Category
Maintainability
Occurrences
4
Severity
error

Sample message

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

ERRORMaintainabilitybadly named files4
Category
Maintainability
Occurrences
4
Severity
error

Sample message

File and folder names must not contain spaces or special characters.

ERRORMaintainabilitywp function not compatible with requires wp4
Category
Maintainability
Occurrences
4
Severity
error

Sample message

Function "wp_unslash()" requires WordPress 3.6.0, but your plugin minimum supported version is WordPress 3.0.1.

ERRORSecurityDatabase parameter is not escaped3
Category
Security
Occurrences
3
Severity
error

Sample message

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

WARNINGMaintainabilityNon-prefixed function3
Category
Maintainability
Occurrences
3
Severity
warning

Sample message

Functions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: "activate_buy_me_a_coffee".

ERRORI18nText Domain Mismatch3
Category
I18n
Occurrences
3
Severity
error

Sample message

Mismatched text domain. Expected 'buymeacoffee' but got 'bmc-menu'.

WARNINGMaintainabilitySchema Change2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

Attempting a database schema change is discouraged.

ERRORMaintainabilityMissing direct file access protection2
Category
Maintainability
Occurrences
2
Severity
error

Sample message

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

WARNINGI18nDiscouraged text-domain loading1
Category
I18n
Occurrences
1
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.

External Connections

Not analyzed yet.

Score History

First score snapshot

v4.4.7

30

Latest

Findings
279
Errors
139
Warnings
140
Check
2.0.0

Relationship Map

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

29 nodes

Related Plugins