Gallery Widget

Simple widget to show the latest/random images of the WordPress media library as a Widget, using a shortcode or directly with a php-function.

v1.2.1cybioUpdated Added 500 installs80% rating
39
Score
122
Errors
11
Warnings
+0
Change

Category Scores

Security0
Repo80
Performance100
Maintainability87

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

133 findings

Security

102

5 issue groups

I18n

19

2 issue groups

Maintainability

8

5 issue groups

Repo Compliance

4

4 issue groups

ERRORSecurityOutput is not escapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$after_title'.77
Category
Security
Occurrences
77
Severity
error

Sample message

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

ERRORI18nText Domain MismatchMismatched text domain. Expected 'gallery-widget' but got "gallerywidget".18
Category
I18n
Occurrences
18
Severity
error

Sample message

Mismatched text domain. Expected 'gallery-widget' but got "gallerywidget".

ERRORSecurityUnsafe printing functionAll output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'.15
Category
Security
Occurrences
15
Severity
error

Sample message

All output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'.

WARNINGSecurityInterpolated SQL is not preparedUse placeholders and $wpdb->prepare(); found interpolated variable $_list at AND posts.post_parent IN ( $_list ) ${_groupby}${_orderby}LIMIT 0 , %d"6
Category
Security
Occurrences
6
Severity
warning

Sample message

Use placeholders and $wpdb->prepare(); found interpolated variable $_list at AND posts.post_parent IN ( $_list ) ${_groupby}${_orderby}LIMIT 0 , %d"

ERRORSecurityDatabase parameter is not escapedUnescaped parameter $_query used in $wpdb->get_results()\n$_query assigned unsafely at line 193.2
Category
Security
Occurrences
2
Severity
error

Sample message

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

WARNINGMaintainabilityDirect QueryUse of a direct database call is discouraged.2
Category
Maintainability
Occurrences
2
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().2
Category
Maintainability
Occurrences
2
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 $_query2
Category
Security
Occurrences
2
Severity
error

Sample message

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

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

Sample message

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

ERRORMaintainabilityForbidden PHP function foundThe use of function create_function() is forbidden1
Category
Maintainability
Occurrences
1
Severity
error

Sample message

The use of function create_function() is forbidden

Show 6 more
ERRORI18nDeprecated parameter: load_plugin_textdomain parameter 21
Category
I18n
Occurrences
1
Severity
error

Sample message

The parameter "WP_PLUGIN_DIR.'/gallery-widget/lang/'" at position #2 of load_plugin_textdomain() has been deprecated since WordPress version 2.7.0. Use "" instead.

ERRORRepo Complianceinvalid license1
Category
Repo Compliance
Occurrences
1
Severity
error

Sample message

Your plugin has an invalid license declared. Please update your readme with a valid SPDX license identifier.

ERRORRepo Complianceoutdated tested upto header1
Category
Repo Compliance
Occurrences
1
Severity
error

Sample message

Tested up to: 3.1 < 7.0. The "Tested up to" value in your plugin is not set to the current version of WordPress. This means your plugin will not show up in searches, as we require plugins to be compatible and documented as tested up to the most recent version of WordPress.

ERRORRepo Complianceplugin header no license1
Category
Repo Compliance
Occurrences
1
Severity
error

Sample message

Missing "License" in Plugin Header. Please update your Plugin Header with a valid GPLv2 (or later) compatible license.

WARNINGRepo Compliancereadme parser warnings too many tags1
Category
Repo Compliance
Occurrences
1
Severity
warning

Sample message

One or more tags were ignored. Please limit your plugin to 5 tags.

ERRORMaintainabilitywp function not compatible with requires wp1
Category
Maintainability
Occurrences
1
Severity
error

Sample message

Function "get_intermediate_image_sizes()" requires WordPress 3.0.0, but your plugin minimum supported version is WordPress 2.8.0.

External Connections

Potential connections found in static code analysis.

2 domains

Outbound calls

5

External assets

0

Incoming endpoints

0

Notable Domains

blog.splash.de4 · outbound

Platform / Reference Domains

codex.wordpress.org1 · platform/reference

External Asset Domains

No external asset domains detected.

Incoming Endpoints

No public endpoints detected.

Score History

First score snapshot

v1.2.1

39

Latest

Findings
133
Errors
122
Warnings
11
Check
2.0.0

Relationship Map

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

30 nodes

Related Plugins

Category Icon

2k+ active installs

100
Export Media as ZIP

1k+ active installs

100
100
100
Simple Block Gallery

1k+ active installs

100
WF Magnific Lightbox

1k+ active installs

100