PhotoSwipe

A very light implementation of PhotoSwipe javascript plugin for WordPress

v4.1.1.1Louy AlakkadUpdated Added 1k+ installs90% rating
92
Score
4
Errors
9
Warnings
+0
Change

Category Scores

Security94
Repo86
Performance100
Maintainability89

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

13 findings

Maintainability

9

7 issue groups

Repo Compliance

3

3 issue groups

Security

1

1 issue group

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

ERRORMaintainabilityNot AllowedUse of heredoc syntax (<<<) is not allowed; use standard strings or inline HTML instead1
Category
Maintainability
Occurrences
1
Severity
error

Sample message

Use of heredoc syntax (<<<) is not allowed; use standard strings or inline HTML instead

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

Sample message

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

WARNINGSecurityInterpolated SQL is not preparedUse placeholders and $wpdb-&gt;prepare(); found interpolated variable {$prefix} at &quot;SELECT ID FROM {$prefix}posts WHERE guid RLIKE %s;&quot;1
Category
Security
Occurrences
1
Severity
warning

Sample message

Use placeholders and $wpdb-&gt;prepare(); found interpolated variable {$prefix} at &quot;SELECT ID FROM {$prefix}posts WHERE guid RLIKE %s;&quot;

WARNINGMaintainabilityNon-prefixed functionFunctions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: &quot;fjarrett_get_attachment_id_by_url&quot;.1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

Functions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: &quot;fjarrett_get_attachment_id_by_url&quot;.

WARNINGMaintainabilitymismatched plugin namePlugin name "PhotoSwipe" is different from the name declared in plugin header "PhotoSwipe Light".1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

Plugin name "PhotoSwipe" is different from the name declared in plugin header "PhotoSwipe Light".

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

Sample message

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

ERRORRepo Complianceoutdated tested upto headerTested up to: 4.4 < 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.1
Category
Repo Compliance
Occurrences
1
Severity
error

Sample message

Tested up to: 4.4 < 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 licenseMissing "License" in Plugin Header. Please update your Plugin Header with a valid GPLv2 (or later) compatible license.1
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.

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

External Connections

Potential connections found in static code analysis.

12 domains

Outbound calls

21

External assets

0

Incoming endpoints

0

Notable Domains

photoswipe.com4 · outbound
facebook.com2 · outbound
pinterest.com2 · outbound
stackoverflow.com2 · outbound
twitter.com2 · outbound

Platform / Reference Domains

w3.org2 · platform/reference

External Asset Domains

No external asset domains detected.

Incoming Endpoints

No public endpoints detected.

Score History

First score snapshot

v4.1.1.1

92

Latest

Findings
13
Errors
4
Warnings
9
Check
2.0.0

Relationship Map

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

37 nodes

Related Plugins

Disable Lazy Load

10k+ active installs

100
100
Image Placeholders

60k+ active installs

100
100
Modern Image Formats

100k+ active installs

100