Gallery Shortcode Style to Head Security & Risk Analysis

wordpress.org/plugins/gallery-shortcode-style-to-head

Moves the gallery shortcode styles to the head so it doesn't break XHTML validation; allows disabling or modifying the default gallery styles.

100 active installs v2.4 PHP + WP 3.3+ Updated Apr 2, 2015
cssgalleryshortcodestylexhtml
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is Gallery Shortcode Style to Head Safe to Use in 2026?

Generally Safe

Score 85/100

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

No known CVEs Updated 11yr ago
Risk Assessment

The plugin 'gallery-shortcode-style-to-head' version 2.4 presents a generally positive security posture, with no recorded vulnerabilities, critical taint flows, or dangerous function usage. The use of prepared statements for all SQL queries is a significant strength, indicating a good practice for preventing SQL injection. However, a notable concern arises from the output escaping. With 33% of outputs properly escaped, it suggests that two-thirds of the plugin's outputs are not being sanitized, potentially exposing it to cross-site scripting (XSS) vulnerabilities if user-supplied data is involved in these unsanitized outputs. The absence of nonce checks and capability checks, while not immediately indicative of a vulnerability given the limited entry points and lack of known issues, represents a potential weakness if the plugin's functionality were to be expanded or if the entry points were to become more complex.

Key Concerns

  • Low output escaping percentage
  • No nonce checks on entry points
  • No capability checks on entry points
Vulnerabilities
None known

Gallery Shortcode Style to Head Security Vulnerabilities

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

Gallery Shortcode Style to Head Code Analysis

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

Output Escaping

33% escaped12 total outputs
Attack Surface

Gallery Shortcode Style to Head Attack Surface

Entry Points2
Unprotected0

Shortcodes 2

[gallery] gallery-shortcode-style-to-head.php:255
[gallery] trunk\gallery-shortcode-style-to-head.php:255
WordPress Hooks 8
actioninitgallery-shortcode-style-to-head.php:39
actionadmin_initgallery-shortcode-style-to-head.php:45
actionwp_headgallery-shortcode-style-to-head.php:247
actiontemplate_redirectgallery-shortcode-style-to-head.php:258
actioninittrunk\gallery-shortcode-style-to-head.php:39
actionadmin_inittrunk\gallery-shortcode-style-to-head.php:45
actionwp_headtrunk\gallery-shortcode-style-to-head.php:247
actiontemplate_redirecttrunk\gallery-shortcode-style-to-head.php:258
Maintenance & Trust

Gallery Shortcode Style to Head Maintenance & Trust

Maintenance Signals

WordPress version tested4.1.42
Last updatedApr 2, 2015
PHP min version
Downloads11K

Community Trust

Rating100/100
Number of ratings1
Active installs100
Developer Profile

Gallery Shortcode Style to Head Developer Profile

Matt Martz

12 plugins · 5K 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 Shortcode Style to Head

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/gallery-shortcode-style-to-head/gallery-shortcode-style-to-head.php

HTML / DOM Fingerprints

CSS Classes
gallerygallery-itemgallery-icongallery-caption
HTML Comments
<!-- Gallery Shortcode S
Data Attributes
gallery-columns-gallery-size-
Shortcode Output
<div id="gallery-class='gallery-item'>class='gallery-iconclass='wp-caption-text gallery-caption'
FAQ

Frequently Asked Questions about Gallery Shortcode Style to Head