Code Widget
Code Widget is simple widget allows you to insert any arbitrary Text/HTML and run PHP Code or Short Code. This Widget parses PHP code into simple text and much more.
Use with caution
Code Widget works, but test it on a staging site before relying on it in 2026. It runs on 3K+ sites, is rated 4.9/5 and was last updated 4 years ago, and scores 45/100 on our health check.
- Loved by users — 4.9/5 from 35 reviews
- Momentum — downloads up 54.8% vs the previous 30 days
- No update in 4 years
- Only tested up to WordPress 6.1 (latest is 7.1)
How does it stack up?
Side-by-side on installs, updates, ratings & supportDaily downloads
Download spikes usually follow a new release — each site that auto-updates counts as a download.
Rankings
Where Code Widget stands todayWordPress.org search rankings
Live position in the plugin search, top 100| Keyword | Position |
|---|---|
| code | >100 |
| html | >100 |
| php | >100 |
| short code | >100 |
| widget | >100 |
Version adoption
Share of active sites per release.
Rating breakdown
★★★★★★★★★★ 4.9 from 35 reviews
About Code Widget
From the official readme · v1.0.15Description
Code Widget is simple widget allows you to insert any arbitrary Text/HTML and run PHP Code or Short Code. This Widget parses PHP code into simple text and much more.
Only users with the unfiltered_html role will be allowed to insert unfiltered HTML. This includes PHP code, so users without admin or editor permissions will not be able to use this to execute code, even if they have widget editing permissions.
This plugin is developed and maintained by Sharaz Shahid
Changelog
Please update to least version of the plugin to avoid any inconvenient.
1.0.15 2021-06-11
- Compatibility : WP 6.1.0 compatibility added
- Enhancement : Block editor support added
1.0.14 2021-07-31
- Compatibility : WP 5.8 compatibility added
1.0.13 2021-03-16
- Compatibility : WP 5.7 compatibility added
1.0.11 2021-01-03
- Compatibility : Elementor widget Compatibility added.
1.0.10 2021-01-03
- Code Refactor : code refactor and deactivation feedback fixed.
1.0.9 2020-12-16
- Compatibility : 5.6 compatibility added
For developers
Is this your plugin? Show off the numbers.
Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.
Best Code Widget alternatives
All code plugins →FAQ
Code Widget: quick answers
Straight answers, pulled from live WordPress.org data.
Source: WordPress.org
Is Code Widget free?
Yes. Code Widget is free to download and use from the official WordPress.org plugin directory.
Is Code Widget safe to use in 2026?
Code Widget works, but test it on a staging site before relying on it in 2026. It runs on 3K+ sites, is rated 4.9/5 and was last updated 4 years ago, and scores 45/100 on our health check.
How many websites use Code Widget?
Code Widget is active on 3K+ WordPress websites and has been downloaded 62,256 times since it launched in March 2018. It was downloaded 551 times in the last 30 days.
Does Code Widget work with WordPress 7.1?
Code Widget is officially tested up to WordPress 6.1.0, while the latest release is 7.1.5. It may still work, but try it on a staging site first.
What PHP version does Code Widget need?
Code Widget requires PHP 7.0 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was Code Widget last updated?
The latest version, 1.0.15, was released on June 11, 2022 (4 years ago).
Who makes Code Widget?
Code Widget is developed and maintained by Sharaz Shahid.
What are the best alternatives to Code Widget?
The most popular alternatives to Code Widget are WPCode (3M+ installs), Code Snippets (1M+ installs) and Head & Footer Code (100K+ installs).
Powered by PageForge
One template and a spreadsheet. A real page for every search.
PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.
- CSV and XLSX, plus Google Sheets on Professional and Enterprise
- Its own title, URL, SEO fields and schema for every page
- Works with the block editor, Elementor, Divi and Avada
- Free on WordPress.org, no credit card





