Gallery Slice Security & Risk Analysis

wordpress.org/plugins/gallery-slice

Slice down galleries on archive pages to preview-only, with link to load full gallery via Ajax

20 active installs v1.3.3 PHP + WP 3.9+ Updated Aug 18, 2016
ajaxgalleryimageimages
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is Gallery Slice Safe to Use in 2026?

Generally Safe

Score 85/100

Gallery Slice has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 9yr ago
Risk Assessment

The gallery-slice plugin v1.3.3 presents a significant security risk primarily due to its unprotected AJAX handlers. With four AJAX handlers identified and none of them implementing authentication checks, an unauthenticated attacker could potentially trigger these functions, leading to unintended actions or information disclosure. The presence of dangerous functions like `create_function` is also a concern, although the analysis doesn't specify how they are used, they can be exploited in certain contexts. Furthermore, a low percentage of properly escaped output (38%) suggests a risk of Cross-Site Scripting (XSS) vulnerabilities, allowing attackers to inject malicious scripts into the site. However, the plugin benefits from using prepared statements for all SQL queries, mitigating the risk of SQL injection. The absence of any known vulnerabilities (CVEs) and a clean taint analysis history are positive indicators, suggesting the developers may have good practices in place for specific areas or that the plugin has not been a target. Despite the clean history, the significant number of unprotected entry points and insufficient output escaping practices warrant caution.

Key Concerns

  • 4 AJAX handlers without auth checks
  • Low percentage of properly escaped output (38%)
  • Presence of dangerous functions (create_function)
Vulnerabilities
None known

Gallery Slice Security Vulnerabilities

No known vulnerabilities — this is a good sign.
Code Analysis
Analyzed Mar 16, 2026

Gallery Slice Code Analysis

Dangerous Functions
6
Raw SQL Queries
0
0 prepared
Unescaped Output
10
6 escaped
Nonce Checks
0
Capability Checks
0
File Operations
0
External Requests
0
Bundled Libraries
0

Dangerous Functions Found

create_functionadd_action('init', create_function('', 'load_plugin_textdomain("gallery_slice", false, basename(dirngallery-slice.php:23
create_functionadd_action('wp_enqueue_scripts', create_function('', "wp_register_script('gallery-slice-ajax', '" . gallery-slice.php:31
create_functionregister_setting('media', 'gallery_slice_threshold', create_function('$input', 'return(filter_var($igallery-slice.php:134
create_functionregister_setting('media', 'gallery_slice_downto', create_function('$input', 'return(filter_var($inpugallery-slice.php:136
create_functionregister_setting('media', 'gallery_slice_link2full', create_function('$input', 'return(sanitize_textgallery-slice.php:138
create_functionregister_setting('media', 'gallery_slice_waiting_img', create_function('$input', 'return(filter_var(gallery-slice.php:140

Output Escaping

38% escaped16 total outputs
Attack Surface
4 unprotected

Gallery Slice Attack Surface

Entry Points4
Unprotected4

AJAX Handlers 4

noprivwp_ajax_gallery_slice-full_gallerygallery-slice.php:35
authwp_ajax_gallery_slice-full_gallerygallery-slice.php:36
noprivwp_ajax_gallery_slice-full_rajce_gallerygallery-slice.php:37
authwp_ajax_gallery_slice-full_rajce_gallerygallery-slice.php:38
WordPress Hooks 10
actioninitgallery-slice.php:23
actionadmin_initgallery-slice.php:25
actionadmin_enqueue_scriptsgallery-slice.php:26
actionsave_postgallery-slice.php:27
filterthe_contentgallery-slice.php:29
filterrajce-gallery-imagesgallery-slice.php:30
actionwp_enqueue_scriptsgallery-slice.php:31
actionwp_enqueue_scriptsgallery-slice.php:33
filterplugin_action_linksgallery-slice.php:40
actionadd_meta_boxesgallery-slice.php:41
Maintenance & Trust

Gallery Slice Maintenance & Trust

Maintenance Signals

WordPress version tested4.6.30
Last updatedAug 18, 2016
PHP min version
Downloads5K

Community Trust

Rating0/100
Number of ratings0
Active installs20
Developer Profile

Gallery Slice Developer Profile

honza.skypala

5 plugins · 610 total installs

84
trust score
Avg Security Score
85/100
Avg Patch Time
30 days
View full developer profile
Detection Fingerprints

How We Detect Gallery Slice

Patterns used to identify this plugin on WordPress sites during automated security audits and web crawling.

Asset Fingerprints

Asset Paths
/wp-content/plugins/gallery-slice/admin.js/wp-content/plugins/gallery-slice/ajax-devel.js/wp-content/plugins/gallery-slice/ajax.js/wp-content/plugins/gallery-slice/style.css
Script Paths
gallery-slice-ajax
Version Parameters
gallery-slice/admin.js?ver=gallery-slice/ajax.js?ver=gallery-slice/style.css?ver=

HTML / DOM Fingerprints

CSS Classes
unsliced-gallery-linkgallery-loading-animation
Data Attributes
orig_gallery_attrs
JS Globals
gallery_slice
REST Endpoints
/wp-json/gallery-slice/
Shortcode Output
[gallery
FAQ

Frequently Asked Questions about Gallery Slice