Photo Gallery is a cool responsive image gallery plugin with beautiful views
Category Scores
Issues to Review
Prioritized issue groups from the latest Plugin Check scan
Security
737
10 issue groups
Maintainability
535
15 issue groups
ERRORSecurityOutput is not escapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"$name ({$size['width']}x{$size['height']})"'.310
- Category
- Security
- Occurrences
- 310
- Severity
- error
Sample message
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"$name ({$size['width']}x{$size['height']})"'.
WARNINGMaintainabilityNon-prefixed global variableGlobal variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$accordion_active".300
- Category
- Maintainability
- Occurrences
- 300
- Severity
- warning
Sample message
Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$accordion_active".
WARNINGSecurityNonce verification recommendedProcessing form data without nonce verification.113
- Category
- Security
- Occurrences
- 113
- Severity
- warning
Sample message
Processing form data without nonce verification.
WARNINGSecurityRequest data is not unslashed$_COOKIE['ays_gpg_page_tab_free'] not unslashed before sanitization. Use wp_unslash() or similar86
- Category
- Security
- Occurrences
- 86
- Severity
- warning
Sample message
$_COOKIE['ays_gpg_page_tab_free'] not unslashed before sanitization. Use wp_unslash() or similar
WARNINGMaintainabilityDirect QueryUse of a direct database call is discouraged.81
- Category
- Maintainability
- Occurrences
- 81
- 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().74
- Category
- Maintainability
- Occurrences
- 74
- 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 preparedUse placeholders and $wpdb->prepare(); found $cat_table63
- Category
- Security
- Occurrences
- 63
- Severity
- error
Sample message
Use placeholders and $wpdb->prepare(); found $cat_table
WARNINGSecurityInput is not sanitizedDetected usage of a non-sanitized input variable: $_COOKIE['ays_gpg_page_tab_free']47
- Category
- Security
- Occurrences
- 47
- Severity
- warning
Sample message
Detected usage of a non-sanitized input variable: $_COOKIE['ays_gpg_page_tab_free']
ERRORSecurityDatabase parameter is not escapedUnescaped parameter $query used in $wpdb->get_results()\n$query assigned unsafely at line 1246.42
- Category
- Security
- Occurrences
- 42
- Severity
- error
Sample message
Unescaped parameter $query used in $wpdb->get_results()\n$query assigned unsafely at line 1246.
WARNINGSecurityInput is not validatedDetected usage of a possibly undefined superglobal array index: $_GET['gallery_category']. Check that the array index exists before using it.37
- Category
- Security
- Occurrences
- 37
- Severity
- warning
Sample message
Detected usage of a possibly undefined superglobal array index: $_GET['gallery_category']. Check that the array index exists before using it.
Show 15 moreShow less
WARNINGSecuritywp redirect wp redirect20
- Category
- Security
- Occurrences
- 20
- 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.
ERRORMaintainabilityMissing direct file access protection19
- Category
- Maintainability
- Occurrences
- 19
- Severity
- error
Sample message
PHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;
WARNINGSecurityMissing nonce verification14
- Category
- Security
- Occurrences
- 14
- Severity
- warning
Sample message
Processing form data without nonce verification.
ERRORMaintainabilitydate date13
- Category
- Maintainability
- Occurrences
- 13
- Severity
- error
Sample message
date() is affected by runtime timezone changes which can cause date/time to be incorrectly displayed. Use gmdate() instead.
WARNINGMaintainabilityNon-prefixed function9
- Category
- Maintainability
- Occurrences
- 9
- Severity
- warning
Sample message
Functions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: "activate_gallery_photo_gallery".
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: "AYS_GALLERY_NAME".
WARNINGMaintainabilityNon-prefixed hook name7
- Category
- Maintainability
- Occurrences
- 7
- Severity
- warning
Sample message
Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "upgrader_clear_destination".
WARNINGSecurityDatabase parameter is not escaped5
- Category
- Security
- Occurrences
- 5
- Severity
- warning
Sample message
Unescaped parameter $cat_table used in $wpdb->query()\n$cat_table assigned unsafely at line 36.
WARNINGMaintainabilityNon-prefixed class5
- Category
- Maintainability
- Occurrences
- 5
- Severity
- warning
Sample message
Classes declared by a theme/plugin should start with the theme/plugin prefix. Found: "Ays_Gallery_Extra_Shortcodes_Public".
WARNINGMaintainabilitySchema Change4
- Category
- Maintainability
- Occurrences
- 4
- Severity
- warning
Sample message
Attempting a database schema change is discouraged.
ERRORMaintainabilitywp function not compatible with requires wp4
- Category
- Maintainability
- Occurrences
- 4
- Severity
- error
Sample message
Function "get_user_locale()" requires WordPress 4.7.0, but your plugin minimum supported version is WordPress 4.0.0.
WARNINGMaintainabilityslow db query meta key3
- Category
- Maintainability
- Occurrences
- 3
- Severity
- warning
Sample message
Detected usage of meta_key, possible slow query.
WARNINGMaintainabilityerror log print r3
- Category
- Maintainability
- Occurrences
- 3
- Severity
- warning
Sample message
print_r() found. Debug code should not normally be used in production.
ERRORMaintainabilityNon Enqueued Script3
- Category
- Maintainability
- Occurrences
- 3
- Severity
- error
Sample message
Scripts must be registered/enqueued via wp_enqueue_script()
ERRORMaintainabilityOffloaded Content2
- Category
- Maintainability
- Occurrences
- 2
- Severity
- error
Sample message
Found call to wp_enqueue_style() with external resource. Offloading styles to your servers or any remote service is disallowed.
External Connections
Potential connections found in static code analysis.
Outbound calls
187
External assets
2
Incoming endpoints
13
Notable Domains
Platform / Reference Domains
External Asset Domains
Incoming Endpoints
wp_ajax
wp_ajax
wp_ajax
wp_ajax
wp_ajax
wp_ajax
Admin AJAX endpoints7
wp_ajax
wp_ajax
wp_ajax
wp_ajax
wp_ajax
wp_ajax
wp_ajax
Score History
2 score snapshots
v6.7.8
25
Latest
- Findings
- 1,286
- Errors
- 466
- Warnings
- 820
- Check
- 2.0.0
v6.7.7
26
Score
- Findings
- 1,281
- Errors
- 463
- Warnings
- 818
- Check
- 2.0.0
| Scan | Score | Findings | Errors | Warnings | Plugin | Check |
|---|---|---|---|---|---|---|
| Latest | 25 | 1,286 | 466 | 820 | v6.7.8 | 2.0.0 |
| 26 | 1,281 | 463 | 818 | v6.7.7 | 2.0.0 |
Relationship Map
Author, categories, issues, domains, and nearby plugins.