> SVG Support wordpress plugin resources analysis

SVG Support wordpress plugin resources analysis

Download This Plugin
Download Elegant Themes
Name SVG Support
Version 2.1.7
Author Benbodhi
Rating 100
Last updated 2014-09-21 11:18:00
Downloads
5795
Download Plugins Speed Test plugin for Wordpress

Home page

Delta: 0%

Post page

Delta: 0%
SVG Support plugin has no negative impact on PageSpeed score.

Home page PageSpeed score has been degraded by 0%, while Post page PageSpeed score has been degraded by 0%

SVG Support plugin added 3 kB of resources to the Home page and 3 kB of resources to the sample Post page.

SVG Support plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.

Great! SVG Support plugin ads no tables to your Wordpress blog database.

When using SVG images on your WordPress site, it can be hard to style elements within the SVG using CSS. Now you can, easily!

Scalable Vector Graphics (SVG) are becoming common place in modern web design, allowing you to embed images with small file sizes that are scalable to any visual size without loss of quality.

This plugin not only provides SVG Support like the name says, it also allows you to easily embed your full SVG file's code using a simple IMG tag.
By adding the class "style-svg" to your IMG elements, this plugin dynamically replaces any IMG elements containing the "style-svg" class with your complete SVG.

The main purpose of this is to allow styling of SVG elements. Usually your styling options are restricted when using embed, object or img tags alone.

Features

  • SVG Support for your media library
  • Style SVG elements directly using CSS
  • Super easy settings page with instructions
  • Restrict SVG upload ability to Administrators only
  • Set custom css target class
  • Extremely Simple To Use

Note:

This plugin works up to WordPress v4.0 but after v3.9.2 the thumbnails do not display in the new media library grid view or modal window from the grid view. You can still see them in the list view of v4.0 (they are super small) and can see them perfectly when in the edit media screen from the list view.

Apart from this, all of the main functionality is still working. I am working on a fix to display the thumbnails in the media library.

Usage

Firstly, install SVG Support (this plugin) and activate it.

Once activated, you can simply upload SVG images to your media library like any other file.

As an administrator, you can go to the admin settings page 'Settings' > 'SVG Support' and restrict SVG file uploads to administrators only and even define a custom class to target if you wish.

Now, embed your SVG images just like you would a standard image with the addition of adding the class "style-svg" (or the custom class you defined) to your IMG tags that you want this plugin to swap out with your actual SVG code.
For example:

<img class="style-svg" alt="alt-text" src="image-source.svg" />

or

<img class="your-custom-class" alt="alt-text" src="image-source.svg" />

The whole IMG tag element will now be dynamically replaced by the actual code of your SVG, making the inner content targetable.
This allows you to target elements within your SVG using CSS.

If you are having any issues, please use the support tab and I will try my best to get back to you quickly

Security

As with allowing uploads of any files, there is potential risks involved. Only allow users to upload SVG files if you trust them. You have the option to restrict SVG usage to Administrators only from the settings page. By default, anyone with Media Library access or upload_files capability will be able to upload SVG files (that is Administrators, Authors and Editors).

Translations

Note: This plugin is localized/translateable by default. This is very important for all users worldwide. So please contribute your language to the plugin to make it even more useful.
For translating I recommend the awesome "Codestyling Localization" plugin and for validating the "Poedit Editor".

Feedback

Note: This is the second plugin I have submitted to the WordPress repository, I hope you like it. Please take a moment to rate it and click 'works' under compatibility with your version of WordPress.
As always, feel free to send me any suggestions.

Screenshots

Resources added by plugin to Home page/Post page in kB
Total size of resources for Home page/Post page in kB
Random Theme Tests
Saga screenshot

Saga

by: greenshady

14253
100%
Amdhas screenshot

Amdhas

by: amdhas

36429
100%