best setup for SVG Support.

Group: MediaGoal: SafetyTested 2026-11-06
SVG Support icon
  • 5checks in the recipe
  • 2set for you
  • 3shown as steps
  • 1to take care with

Short answer

Clean every SVG upload, with no role allowed to skip the cleaning, and let only administrators and shop managers upload SVG files. Keep the settings when the plugin is removed.

The Tunewise recipe for SVG Support looks at 5 checks. It starts with: Every SVG upload is cleaned of hidden code. Tunewise changes 2 for you, and shows you the steps for 3. 1 needs extra care.

Tested on 2026-11-06 with SVG Support 2.6.3 on WordPress 7.1.3 and WooCommerce 11.2.1.

Before and after, one check at a time
  • Every SVG upload is cleaned of hidden codeafter: you have the steps
  • Only administrators and shop managers upload SVG filesafter: you have the steps
  • Settings stay if the plugin is removedafter: set for you
  • New SVG files are made smaller on uploadafter: set for you
  • The extra front end script is only on when usedafter: you have the steps

These are real checks from the SVG Support recipe. The ring above fills as each one is done. The picture shows the order of work, not your shop.


by shop type.

We ran this recipe on five practice shops. These are the shop types where the setup really differs. For the others it is the same as above.

  • A big catalogueSpeed counts on a big shop: new SVG files are made smaller on upload, and Advanced Mode is switched off unless you style or animate SVG images, because it adds a script to every page.

Common mistakes

  • Letting some roles skip the cleaning. An SVG file can carry a script that runs when someone opens it in the admin.
  • Letting many roles upload SVG files. Each one is a person whose stolen login could plant a harmful file.

Good to know

  • The library that does the cleaning had security fixes, and the maker updated it. Keep the plugin updated.
  • Making SVG files smaller only applies to files you upload from then on.

the setup, step by step.

The "why" below is what Tunewise tells a shop where the check applies. Tunewise first reads your shop, so you only see the checks that fit it.

  1. Every SVG upload is cleaned of hidden code

    Medium riskTunewise shows you the stepsSecurity
    Why
    Your shop lets some roles skip SVG Support's cleaning; an SVG file can carry a script that runs when someone opens it in the admin, and the cleaning removes it.
    What it helps
    A booby trapped image cannot run code in your admin.
    Tip
    Open Settings, SVG Support, untick every role under Do not sanitize for these roles and press Save changes.
    Where to find it
    Settings > SVG Support, "Roles that skip cleaning"
  2. Only administrators and shop managers upload SVG files

    Low riskTunewise shows you the stepsSecurity
    Why
    Your shop lets more roles than administrators and shop managers upload SVG files; each one is a person whose stolen login could plant a harmful file.
    What it helps
    Fewer accounts can plant a harmful file.
    Tip
    Open Settings, SVG Support, under Restrict SVG uploads to keep only Administrator (and Shop manager if they add images) and press Save changes.
    Where to find it
    Settings > SVG Support, "Roles that may upload SVG"
  3. Settings stay if the plugin is removed

    Low riskTunewise changes it for youData
    Why
    Your shop has SVG Support set to delete its settings when the plugin is deleted, so a reinstall to fix a problem starts from scratch.
    What it helps
    A reinstall keeps your SVG settings.
    Where to find it
    Settings > SVG Support, "Delete settings on uninstall"
  4. New SVG files are made smaller on upload

    Low riskTunewise changes it for youSpeed
    Why
    Your shop puts speed first and lets Tunewise act; SVG Support can strip comments and spare spaces from each SVG you upload, so icons and logos load a little faster. Files already uploaded stay as they are.
    What it helps
    Icons and logos load faster.
    Where to find it
    Settings > SVG Support, "Minify SVG"
  5. The extra front end script is only on when used

    Low riskTunewise shows you the stepsSpeed
    Why
    Your shop puts speed first, and SVG Support's Advanced Mode adds a script to every page to draw SVG images inline; it is only worth it when you style or animate SVG images.
    What it helps
    Pages load one script fewer.
    Tip
    If no image on the shop uses the style-svg class, open Settings, SVG Support, switch Advanced Mode off and press Save changes, then check your logo and icons still show.
    Where to find it
    Settings > SVG Support, "Advanced Mode"

Leave these alone or take care

  • Advanced Mode, if any image on the site is drawn inline. Inline SVG images stop working when it is switched off, so check your logo and icons after a change.

These checks carry more risk, or Tunewise does not change them by itself. For those it shows you the steps and you decide.

It depends on your shop

2 of 5 checks only apply to some shops. This is what each one depends on.

Tested on

SVG Support version
2.6.3
Test date
2026-11-06
WordPress
7.1.3
WooCommerce
11.2.1
Versions the recipe fits
2.6 to 2.6.x
After each change
Tunewise checks the home page, product page, cart and checkout, sitemap, PHP errors, robots.
Recipes file
Version 1.33.0, signed, checked before this page was built.

What changed in this recipe

  • First version: 5 checks that follow the shop (its facts and the start answers). Tested on 2026-11-06 with version 2.6.3 on WordPress 7.1.3 and WooCommerce 11.2.1. We know version 2.6.x.

Questions and answers

What is the best setup for SVG Support?

Clean every SVG upload, with no role allowed to skip the cleaning, and let only administrators and shop managers upload SVG files. Keep the settings when the plugin is removed.

What does Tunewise check in SVG Support?

Every SVG upload is cleaned of hidden code; Only administrators and shop managers upload SVG files; Settings stay if the plugin is removed; New SVG files are made smaller on upload; The extra front end script is only on when used.

Can Tunewise change the SVG Support settings for me?

Yes, for 2 of 5 checks. For 3 it shows you the steps and you make the change yourself. Every change is explained first, checked after, and can be undone.

Which SVG Support settings need care?

Every SVG upload is cleaned of hidden code (medium risk).

Where do I find these settings?

Settings > SVG Support.

What are common mistakes with SVG Support?

Letting some roles skip the cleaning. An SVG file can carry a script that runs when someone opens it in the admin. Letting many roles upload SVG files. Each one is a person whose stolen login could plant a harmful file.

Which SVG Support settings should I leave alone?

Advanced Mode, if any image on the site is drawn inline. Inline SVG images stop working when it is switched off, so check your logo and icons after a change.

Does the best setup for SVG Support depend on my shop?

Yes. A big catalogue: Speed counts on a big shop: new SVG files are made smaller on upload, and Advanced Mode is switched off unless you style or animate SVG images, because it adds a script to every page.

Which version of SVG Support was this tested on?

Tested on 2026-11-06 with SVG Support 2.6.3 on WordPress 7.1.3 and WooCommerce 11.2.1. The recipe fits versions 2.6 to 2.6.x.

What does "Every SVG upload is cleaned of hidden code" do for my shop?

A booby trapped image cannot run code in your admin. Open Settings, SVG Support, untick every role under Do not sanitize for these roles and press Save changes.

What does "Only administrators and shop managers upload SVG files" do for my shop?

Fewer accounts can plant a harmful file. Open Settings, SVG Support, under Restrict SVG uploads to keep only Administrator (and Shop manager if they add images) and press Save changes.

Plugin names and icons belong to their owners. Tunewise is not affiliated with or endorsed by them. The icon comes from the plugin's own listing on WordPress.org.

Let Tunewise set up SVG Support for your shop

The free plugin reads your shop and shows your plan before anything changes. Update Guard is on from the first minute.