Photo Gallery by Ays – Responsive Image Gallery

Photo Gallery is a cool responsive image gallery plugin with beautiful views

v6.7.8Ays ProUpdated Added 1k+ installs96% rating
25
Score
466
Errors
820
Warnings
-1
Change

Category Scores

Security0
Repo100
Performance100
Maintainability2

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

1,286 findings

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 more
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.

28 domains

Outbound calls

187

External assets

2

Incoming endpoints

13

Notable Domains

ays-pro.com93 · outbound
ays-demo.com9 · outbound
youtube.com5 · outbound
datatables.net3 · outbound
bit.ly2 · outbound
daneden.me2 · outbound

Platform / Reference Domains

w3.org21 · platform/reference
wordpress.org19 · platform/reference
github.com8 · platform/reference
opensource.org3 · platform/reference
downloads.wordpress.org2 · platform/reference
codex.wordpress.org1 · platform/reference
gnu.org1 · platform/reference

External Asset Domains

Incoming Endpoints

wp_ajax_nopriv_ays_calculate_gallery_viewspublic

wp_ajax

wp_ajax_nopriv_ays_gpg_activate_pluginpublic

wp_ajax

wp_ajax_nopriv_ays_gpg_author_user_searchpublic

wp_ajax

wp_ajax_nopriv_ays_gpg_dismiss_buttonpublic

wp_ajax

wp_ajax_nopriv_ays_gpg_install_pluginpublic

wp_ajax

wp_ajax_nopriv_deactivate_plugin_option_pmpublic

wp_ajax

Admin AJAX endpoints7
wp_ajax_ays_calculate_gallery_viewsauthenticated

wp_ajax

wp_ajax_ays_gpg_activate_pluginauthenticated

wp_ajax

wp_ajax_ays_gpg_author_user_searchauthenticated

wp_ajax

wp_ajax_ays_gpg_dismiss_buttonauthenticated

wp_ajax

wp_ajax_ays_gpg_install_pluginauthenticated

wp_ajax

wp_ajax_deactivate_plugin_option_pmauthenticated

wp_ajax

wp_ajax_gen_ays_gpg_shortcodeauthenticated

wp_ajax

Score History

2 score snapshots

-1
1007550250Jun 21, 2026, 07:04 PM UTC Score 26/100 Plugin v6.7.7 Plugin Check 2.0.0 463 errors, 818 warningsJun 24, 2026, 12:04 PM UTC Score 25/100 Plugin v6.7.8 Plugin Check 2.0.0 466 errors, 820 warningsJun 21, 2026Jun 24, 2026

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

Relationship Map

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

37 nodes

Related Plugins

Album Gallery for Flickr

4k+ active installs

100
100
100
Simple Block Gallery

1k+ active installs

100
WF Magnific Lightbox

1k+ active installs

100
Gallery Styles

500 active installs

99