Gift Cards (Gift Vouchers and Packages) (WooCommerce Supported)

Let your customers buy gift cards/certificates for your services & products directly on your website.

v4.7.2CodemenschenUpdated Added 1k+ installs94% rating25% support resolved
25
Score
50
Errors
1,043
Warnings
+0
Change

Category Scores

Security0
Repo100
Performance100
Maintainability0

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

1,093 findings

Maintainability

709

15 issue groups

Security

369

9 issue groups

I18n

5

1 issue group

WARNINGMaintainabilityNon-prefixed global variableGlobal variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$active".282
Category
Maintainability
Occurrences
282
Severity
warning

Sample message

Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$active".

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

Sample message

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

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

Sample message

Processing form data without nonce verification.

WARNINGSecurityInterpolated SQL is not preparedUse placeholders and $wpdb->prepare(); found interpolated variable $activity_table at "SELECT * FROM $activity_table WHERE voucher_id = %d AND action = %s"70
Category
Security
Occurrences
70
Severity
warning

Sample message

Use placeholders and $wpdb->prepare(); found interpolated variable $activity_table at "SELECT * FROM $activity_table WHERE voucher_id = %d AND action = %s"

WARNINGSecurityRequest data is not unslashed$_GET['items'] not unslashed before sanitization. Use wp_unslash() or similar62
Category
Security
Occurrences
62
Severity
warning

Sample message

$_GET['items'] not unslashed before sanitization. Use wp_unslash() or similar

WARNINGSecurityDatabase parameter is not escapedUnescaped parameter $activity_table used in $wpdb->get_results()\n$activity_table assigned unsafely at line 9.59
Category
Security
Occurrences
59
Severity
warning

Sample message

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

WARNINGMaintainabilityerror log error logerror_log() found. Debug code should not normally be used in production.48
Category
Maintainability
Occurrences
48
Severity
warning

Sample message

error_log() found. Debug code should not normally be used in production.

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

Sample message

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

ERRORMaintainabilitywp function not compatible with requires wpFunction "add_term_meta()" requires WordPress 4.4.0, but your plugin minimum supported version is WordPress 4.0.0.35
Category
Maintainability
Occurrences
35
Severity
error

Sample message

Function "add_term_meta()" requires WordPress 4.4.0, but your plugin minimum supported version is WordPress 4.0.0.

Show 15 more
WARNINGSecurityInput is not validated34
Category
Security
Occurrences
34
Severity
warning

Sample message

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

WARNINGMaintainabilityNon-prefixed function24
Category
Maintainability
Occurrences
24
Severity
warning

Sample message

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

WARNINGMaintainabilityMixed line endings18
Category
Maintainability
Occurrences
18
Severity
warning

Sample message

File has mixed line endings; this may cause incorrect results

WARNINGSecurityMissing nonce verification14
Category
Security
Occurrences
14
Severity
warning

Sample message

Processing form data without nonce verification.

WARNINGMaintainabilitySchema Change8
Category
Maintainability
Occurrences
8
Severity
warning

Sample message

Attempting a database schema change is discouraged.

WARNINGMaintainabilityNon-prefixed constant8
Category
Maintainability
Occurrences
8
Severity
warning

Sample message

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

WARNINGMaintainabilityNon-prefixed class7
Category
Maintainability
Occurrences
7
Severity
warning

Sample message

Classes declared by a theme/plugin should start with the theme/plugin prefix. Found: "PayPalAuth".

WARNINGMaintainabilityMissing Version7
Category
Maintainability
Occurrences
7
Severity
warning

Sample message

Resource version not set in call to wp_enqueue_style(). This means new versions of the style may not always be loaded due to browser caching.

WARNINGMaintainabilityslow db query tax query5
Category
Maintainability
Occurrences
5
Severity
warning

Sample message

Detected usage of tax_query, possible slow query.

ERRORI18nMissing Translators Comment5
Category
I18n
Occurrences
5
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.

WARNINGMaintainabilityNon-prefixed hook name4
Category
Maintainability
Occurrences
4
Severity
warning

Sample message

Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "active_plugins".

ERRORSecurityDatabase parameter is not escaped3
Category
Security
Occurrences
3
Severity
error

Sample message

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

ERRORSecuritySQL query is not prepared3
Category
Security
Occurrences
3
Severity
error

Sample message

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

WARNINGMaintainabilityslow db query meta query2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

Detected usage of meta_query, possible slow query.

WARNINGMaintainabilityerror log print r2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

print_r() found. Debug code should not normally be used in production.

External Connections

Potential connections found in static code analysis.

42 domains

Outbound calls

266

External assets

1

Incoming endpoints

33

Notable Domains

jqueryui.com88 · outbound
jquery.org49 · outbound
api.jqueryui.com48 · outbound
wp-giftcard.com9 · outbound
wp-sofa.chat8 · outbound
bugs.jquery.com3 · outbound

Platform / Reference Domains

github.com6 · platform/reference
w3.org4 · platform/reference
wordpress.org4 · platform/reference
gnu.org3 · platform/reference
opensource.org1 · platform/reference

External Asset Domains

Incoming Endpoints

wp_ajax_nopriv_ajax_select_voucher_templatepublic

wp_ajax

wp_ajax_nopriv_update_voucher_datepublic

wp_ajax

wp_ajax_nopriv_update_voucher_notepublic

wp_ajax

wp_ajax_nopriv_update_voucher_pricepublic

wp_ajax

wp_ajax_nopriv_voucher_slider_templatepublic

wp_ajax

wp_ajax_nopriv_wpgv_doajax_front_templatepublic

wp_ajax

Admin AJAX endpoints20
admin_post_save_voucher_settings_optionauthenticated

admin_post

wp_ajax_ajax_add_wpgv_voucher_amountauthenticated

wp_ajax

wp_ajax_ajax_remove_wpgv_voucher_amountauthenticated

wp_ajax

wp_ajax_ajax_select_voucher_templateauthenticated

wp_ajax

wp_ajax_update_voucher_dateauthenticated

wp_ajax

wp_ajax_update_voucher_noteauthenticated

wp_ajax

wp_ajax_update_voucher_priceauthenticated

wp_ajax

wp_ajax_voucher_slider_templateauthenticated

wp_ajax

wp_ajax_wpgv_admin_get_voucher_regen_dataauthenticated

wp_ajax

wp_ajax_wpgv_admin_regenerate_modern_pdfauthenticated

wp_ajax

wp_ajax_wpgv_admin_regenerate_standard_pdfauthenticated

wp_ajax

wp_ajax_wpgv_doajax_front_templateauthenticated

wp_ajax

8 more hidden

Score History

First score snapshot

v4.7.2

25

Latest

Findings
1,093
Errors
50
Warnings
1,043
Check
2.0.0

Relationship Map

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

35 nodes

Related Plugins