BACK TO DIRECTORY

WP SVG Engine

by abineshselvarasu

0.0
(0 ratings)

WP SVG Engine is a lightweight, modern, and secure solution for using SVG (Scalable Vector Graphics) in WordPress.

By default, WordPress restricts SVG uploads due to potential XML-based vulnerabilities (such as Cross-Site Scripting and XML External Entity attacks). WP SVG Engine solves this by implementing enterprise-grade DOM-level sanitization on upload, giving you complete peace of mind while designing beautiful, resolution-independent vector graphics.

Key Features

  • Enterprise-Grade SVG & SVGZ Sanitization: Automated XML inspection powered by enshrined/svg-sanitize to strip malicious scripts, event listeners, and dangerous entities before files reach your disk.
  • Native Media Library Previews: Automatically fixes broken 1×1 or invisible SVG thumbnails in both Grid and List views in wp-admin/upload.php.
  • Automatic Dimension Detection: Parses viewBox and width/height coordinates on upload and writes them to WordPress attachment metadata to preserve natural aspect ratios.
  • Zero-Overhead Frontend Inlining: Replaces target <img> elements with raw <svg> using lightweight client-side Vanilla JS (< 2KB), enabling dynamic CSS styling (fill: currentColor) and hover animations.
  • Smart In-Memory Caching: Deduplicates identical SVG network requests so repeated icons on a page are downloaded only once.
  • Dynamic DOM Observer: Fully compatible with Gutenberg block insertion, Elementor, and AJAX infinite scroll using MutationObserver.
  • Role-Based Upload Permissions: Restrict SVG upload privileges to Administrators only or extend permissions to all users with upload capabilities (Authors/Editors).
  • Lossless Vector Scaling: Skips unnecessary raster thumbnail generation (GD/Imagick) and disables redundant srcset generation to conserve server disk space.

Screenshots

WP SVG Engine Settings Screen: Intuitive configuration with live security status badge and 1-click selector copy helper.

WP SVG Engine Settings Screen: Intuitive configuration with live security status badge and 1-click selector copy helper.

Plugin Details

Active Installs
0
Total Downloads
112
Version
1.0.1
Requires WP
6.0
Requires PHP
7.4
Tested Up To
7.1
Added
2026-09-11
Last Updated
2026-09-15 1:47pm GMT

Ratings

5
0
4
0
3
0
2
0
1
0