PhotoSwipe Masonry takes advantage of the built in gallery features of WordPress. The gallery is built using PhotoSwipe from Dmitry Semenov.
Prioritized issue groups from the latest Plugin Check scan
I18n
43
4 issue groups
Security
28
9 issue groups
Maintainability
26
10 issue groups
Performance
2
1 issue group
Sample message
The $text parameter must be a single text string literal. Found: "height:" . (($options['thumbnail_width'] - 10) / $thumb[1] * $thumb[2]) . "px;"
Sample message
Missing $domain parameter in function call to _e().
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.
Sample message
The $domain parameter must be a single text string literal. Found: $text_domain
Sample message
Detected usage of a non-sanitized input variable: $_POST['max_image_height']
Sample message
$_POST['max_image_height'] not unslashed before sanitization. Use wp_unslash() or similar
Sample message
Detected usage of a possibly undefined superglobal array index: $_POST['max_image_height']. Check that the array index exists before using it.
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.
Sample message
Processing form data without nonce verification.
Sample message
parse_url() is discouraged because of inconsistency in the output across PHP versions; use wp_parse_url() instead.
Sample message
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$options['use_masonry']'.
Sample message
All output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'.
Sample message
Using exclusionary parameters, like exclude, in calls to get_posts() should be done with caution, see https://wpvip.com/documentation/performance-improvements-by-removing-usage-of-post__not_in/ for more information.
Sample message
PHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;
Sample message
Use of a direct database call is discouraged.
Sample message
Direct database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().
Sample message
Use placeholders and $wpdb->prepare(); found interpolated variable {$prefix} at "SELECT ID FROM {$prefix}posts WHERE guid RLIKE %s;"
Sample message
Functions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: "run_photoswipe".
Sample message
Using __FILE__ for menu slugs risks exposing filesystem structure.
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.
Sample message
Version parameter is not explicitly set or has been set to an equivalent of "false" for wp_enqueue_script; This means that the WordPress core version will be used which is not recommended for plugin or theme development.
Sample message
Mismatched text domain. Expected 'photoswipe-masonry' but got 'textdomain'.
Sample message
Library files that are already in the WordPress core are not permitted.
Sample message
Plugin name "Photoswipe Masonry Gallery" is different from the name declared in plugin header "Photoswipe Masonry".
Sample message
Missing "License". Please update your readme with a valid GPLv2 (or later) compatible license.
Not analyzed yet.
First score snapshot
v1.2.32
36
Latest
| Scan | Score | Findings | Errors | Warnings | Plugin | Check |
|---|---|---|---|---|---|---|
| Latest | 36 | 104 | 57 | 47 | v1.2.32 | 2.0.0 |
Author, categories, issues, domains, and nearby plugins.