PHPackages                             lwplugins/lw-enable - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. lwplugins/lw-enable

ActiveWordpress-plugin[Utility &amp; Helpers](/categories/utility)

lwplugins/lw-enable
===================

Enable WordPress features: SVG uploads and more.

v1.0.11(1mo ago)021GPL-2.0-or-laterPHPPHP &gt;=8.2CI passing

Since Feb 6Pushed 1mo agoCompare

[ Source](https://github.com/lwplugins/lw-enable)[ Packagist](https://packagist.org/packages/lwplugins/lw-enable)[ Fund](https://sinann.io/)[ RSS](/packages/lwplugins-lw-enable/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (13)Used By (0)

Lightweight Enable
==================

[](#lightweight-enable)

Enable WordPress features: SVG uploads and more.

[![Packagist](https://camo.githubusercontent.com/26ff8f6f971e0cdd11d576332c7dd5eaa514666f26d542e1997798e339ec723a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c77706c7567696e732f6c772d656e61626c652e737667)](https://packagist.org/packages/lwplugins/lw-enable)[![PHP](https://camo.githubusercontent.com/0f16581d1180dbfd4c0e13166ec1267d4ad2f2fab8281ea6d6b284cf5c65d921/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e322532422d626c75652e737667)](https://php.net)[![WordPress](https://camo.githubusercontent.com/f1989d6cd7139e0ba03c225b1eb47980a7ec6ba2a2b489beb9c01881be322852/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f576f726450726573732d362e302532422d626c75652e737667)](https://wordpress.org)[![License](https://camo.githubusercontent.com/d0440b4b8a5e8a2b7516c8452fef4ca26102895b51c48b52baf82bbbd05879a3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d47504c2d2d322e302d677265656e2e737667)](https://www.gnu.org/licenses/gpl-2.0.html)

[![LW Enable Settings](.github/screenshot.png)](.github/screenshot.png)

Features
--------

[](#features)

### Media

[](#media)

- **SVG Uploads** - Allow SVG file uploads with comprehensive security sanitization
    - MIME type registration
    - Script/XSS detection and blocking
    - XXE (XML External Entity) protection
    - Event handler detection
    - Obfuscation detection (Unicode/hex escapes, entity encoding)
    - Automatic SVG dimension extraction (width/height and viewBox)
    - 5MB file size limit
    - Post-upload re-validation

Installation
------------

[](#installation)

```
composer require lwplugins/lw-enable
```

Or download and upload to `/wp-content/plugins/`.

Usage
-----

[](#usage)

### Admin UI

[](#admin-ui)

1. Go to **LW Plugins → Enable**
2. Check the features you want to enable
3. Save

### WP-CLI

[](#wp-cli)

```
# List all features and their status
wp lw-enable list

# Enable a feature
wp lw-enable enable svg

# Disable a feature
wp lw-enable disable svg

# Enable all features at once
wp lw-enable enable-all

# Disable all features (restore defaults)
wp lw-enable disable-all
```

**Available features:**

FeatureDescription`svg`SVG file uploads with security sanitizationSecurity
--------

[](#security)

SVG files can contain malicious code. This plugin performs comprehensive sanitization before allowing uploads:

- **34 dangerous patterns** detected (scripts, event handlers, external entities, data URIs, etc.)
- **Entity decoding** to catch obfuscated payloads
- **XML validation** via DOMDocument
- **Post-upload verification** - files are re-checked after WordPress processes them
- **Automatic cleanup** - invalid files are deleted immediately

Links
-----

[](#links)

- [GitHub](https://github.com/lwplugins/lw-enable)
- [Packagist](https://packagist.org/packages/lwplugins/lw-enable)
- [LW Plugins](https://lwplugins.com)

Sponsor
-------

[](#sponsor)

[ ![Sinann](https://camo.githubusercontent.com/08cb3e29f7e91a32ff084d73f5e4c33b6ac8f3508f20dfe040357e9a94c5952b/68747470733a2f2f73696e616e6e2e696f2f66617669636f6e2e737667)](https://sinann.io/)Supported by [Sinann](https://sinann.io/)

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance89

Actively maintained with recent releases

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~4 days

Recently: every ~9 days

Total

12

Last Release

57d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/56bc0e3c885c56236e52eaed12997aa4fbaf0645299acf0092a8cc5b887d65b0?d=identicon)[trueqap](/maintainers/trueqap)

---

Top Contributors

[![trueqap](https://avatars.githubusercontent.com/u/32407751?v=4)](https://github.com/trueqap "trueqap (20 commits)")

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/lwplugins-lw-enable/health.svg)

```
[![Health](https://phpackages.com/badges/lwplugins-lw-enable/health.svg)](https://phpackages.com/packages/lwplugins-lw-enable)
```

###  Alternatives

[rainlab/blog-plugin

Blog plugin for October CMS

17257.7k](/packages/rainlab-blog-plugin)[rainlab/builder-plugin

Builder plugin for October CMS

17147.2k1](/packages/rainlab-builder-plugin)[pfefferle/wordpress-activitypub

The ActivityPub protocol is a decentralized social networking protocol based upon the ActivityStreams 2.0 data format.

5671.4k1](/packages/pfefferle-wordpress-activitypub)[civicrm/civicrm-drupal-8

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

18238.1k2](/packages/civicrm-civicrm-drupal-8)[mediawiki/semantic-glossary

A terminology markup extension with a Semantic MediaWiki back-end

1352.4k](/packages/mediawiki-semantic-glossary)[humanmade/lottie-lite

A lightweight Lottie Animations Extension for WordPress

374.3k](/packages/humanmade-lottie-lite)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
