Sunshine Photo Cart – Client Photo Gallery & Photo Proofing for Photographers

Create professional client photo galleries and photo proofing galleries for your photography business. Sell photos directly to clients with zero commi …

v3.6.10.1sunshinephotocartUpdated Added 1k+ installs94% rating100% support resolved
25
Score
348
Errors
1,481
Warnings
+0
Change

Category Scores

Security0
Repo97
Performance100
Maintainability0

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

1,829 findings

Security

880

8 issue groups

Maintainability

856

17 issue groups

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

Sample message

Processing form data without nonce verification.

WARNINGSecurityRequest data is not unslashed$_COOKIE[SUNSHINE_SESSION_COOKIE] not unslashed before sanitization. Use wp_unslash() or similar225
Category
Security
Occurrences
225
Severity
warning

Sample message

$_COOKIE[SUNSHINE_SESSION_COOKIE] not unslashed before sanitization. Use wp_unslash() or similar

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

Sample message

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

ERRORMaintainabilityMissing direct file access protectionPHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;194
Category
Maintainability
Occurrences
194
Severity
error

Sample message

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

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

Sample message

Processing form data without nonce verification.

WARNINGSecurityInput is not sanitizedDetected usage of a non-sanitized input variable: $_COOKIE[SUNSHINE_SESSION_COOKIE]112
Category
Security
Occurrences
112
Severity
warning

Sample message

Detected usage of a non-sanitized input variable: $_COOKIE[SUNSHINE_SESSION_COOKIE]

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

Sample message

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

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

Sample message

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

WARNINGMaintainabilityNon-prefixed classClasses declared by a theme/plugin should start with the theme/plugin prefix. Found: "SPC_Addon_Updater".67
Category
Maintainability
Occurrences
67
Severity
warning

Sample message

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

Show 15 more
ERRORMaintainabilitydate date42
Category
Maintainability
Occurrences
42
Severity
error

Sample message

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

ERRORSecuritySQL query is not prepared28
Category
Security
Occurrences
28
Severity
error

Sample message

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

WARNINGMaintainabilityslow db query meta query26
Category
Maintainability
Occurrences
26
Severity
warning

Sample message

Detected usage of meta_query, possible slow query.

WARNINGMaintainabilityNon-prefixed hook name26
Category
Maintainability
Occurrences
26
Severity
warning

Sample message

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

WARNINGMaintainabilityerror log print r24
Category
Maintainability
Occurrences
24
Severity
warning

Sample message

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

WARNINGMaintainabilityNo PHP code found22
Category
Maintainability
Occurrences
22
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.

WARNINGMaintainabilityslow db query meta key22
Category
Maintainability
Occurrences
22
Severity
warning

Sample message

Detected usage of meta_key, possible slow query.

WARNINGSecuritywp redirect wp redirect18
Category
Security
Occurrences
18
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.

ERRORMaintainabilitywp function not compatible with requires wp17
Category
Maintainability
Occurrences
17
Severity
error

Sample message

Function "str_contains()" requires WordPress 5.9.0, but your plugin minimum supported version is WordPress 5.5.0.

WARNINGSecurityInterpolated SQL is not prepared10
Category
Security
Occurrences
10
Severity
warning

Sample message

Use placeholders and $wpdb->prepare(); found interpolated variable $placeholders at \t\t\tAND meta_value IN ($placeholders)"

WARNINGMaintainabilityDynamic hook name10
Category
Maintainability
Occurrences
10
Severity
warning

Sample message

Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "$this->identifier . '_cron_interval'".

ERRORMaintainabilityunlink unlink10
Category
Maintainability
Occurrences
10
Severity
error

Sample message

unlink() is discouraged. Use wp_delete_file() to delete a file.

WARNINGMaintainabilityslow db query meta value9
Category
Maintainability
Occurrences
9
Severity
warning

Sample message

Detected usage of meta_value, possible slow query.

WARNINGMaintainabilityMissing Version8
Category
Maintainability
Occurrences
8
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.

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

External Connections

Potential connections found in static code analysis.

31 domains

Outbound calls

179

External assets

4

Incoming endpoints

100

Notable Domains

sunshinephotocart.com113 · outbound
paypal.com5 · outbound
docs.stripe.com4 · outbound
sandbox.paypal.com4 · outbound
api.stripe.com3 · outbound

Platform / Reference Domains

github.com7 · platform/reference
w3.org7 · platform/reference
wordpress.org3 · platform/reference
gnu.org1 · platform/reference

External Asset Domains

maps.googleapis.com2 · asset + outbound
js.stripe.com1 · asset

Incoming Endpoints

wp_ajax_nopriv_public

wp_ajax

wp_ajax_nopriv_sunshine_add_to_favoritespublic

wp_ajax

wp_ajax_nopriv_sunshine_checkout_init_orderpublic

wp_ajax

wp_ajax_nopriv_sunshine_checkout_payment_failedpublic

wp_ajax

wp_ajax_nopriv_sunshine_checkout_paypal_approvepublic

wp_ajax

wp_ajax_nopriv_sunshine_checkout_paypal_create_orderpublic

wp_ajax

Admin AJAX endpoints68
admin_post_sunshine_download_error_logauthenticated

admin_post

admin_post_sunshine_download_logauthenticated

admin_post

wp_ajax_load_edit_image_modalauthenticated

wp_ajax

wp_ajax_save_attachment_fieldsauthenticated

wp_ajax

wp_ajax_sunshine_activate_payment_methodauthenticated

wp_ajax

wp_ajax_sunshine_active_emailsauthenticated

wp_ajax

wp_ajax_sunshine_active_shipping_methodsauthenticated

wp_ajax

wp_ajax_sunshine_add_shipping_methodauthenticated

wp_ajax

wp_ajax_sunshine_add_to_favoritesauthenticated

wp_ajax

wp_ajax_sunshine_addon_toggleauthenticated

wp_ajax

wp_ajax_sunshine_checkout_init_orderauthenticated

wp_ajax

wp_ajax_sunshine_checkout_payment_failedauthenticated

wp_ajax

56 more hidden

Score History

First score snapshot

v3.6.10.1

25

Latest

Findings
1,829
Errors
348
Warnings
1,481
Check
2.0.0

Relationship Map

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

32 nodes