BLACK FRIDAY
Save 59% on PageForge Annual $191/year $485/year
Claim 59% Off →
Code Widget icon
Possibly abandoned Tested up to 6.1.0 #16 in code

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.

Active installs3K+1K+ tier
Downloads · 30d225▲ +9.8% vs prev. 30d
Rating4.9/535 reviews
Health score45/100Fair
All-time downloads61.3KSince Mar 2018
Support resolved—No recent threads
RequiresWP 4.0PHP 7.0+
Downloads · 7d60• 0% week over week
Our verdict

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
  • 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 & support

Daily downloads

4812Jun 28Aug 11Sep 25
Yesterday15
Daily average (1y)5
Peak day177Oct 6, 2025
Last 12 months1.8K

Download spikes usually follow a new release — each site that auto-updates counts as a download.

Rankings

Where Code Widget stands today

WordPress.org search rankings

Live position in the plugin search, top 100
KeywordPositionCompeting pluginsCategory
code >100 10,000 Best code plugins →
html >100 10,000 Best html plugins →
php >100 10,000 Best php plugins →
short code >100 4,857 Best short code plugins →
widget >100 10,000 Best widget plugins →

Version adoption

Share of active sites per release.

  • 1.0100.0%

Rating breakdown

★★★★★★★★★★ 4.9 from 35 reviews

  • 5★97.1%
  • 4★0.00%
  • 3★0.00%
  • 2★0.00%
  • 1★2.9%

About Code Widget

From the official readme · v1.0.15

Description

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

Frequently asked questions

Short Code supported ?

Very simple add [your short code].If you want to see how short code work in this widget see screen shot.

Can we run PHP Code in this widget ?

Yes, All PHP code must be enclosed in the standard php opening and closing tags ( ) for it to be recognized and executed. Please See screen shot to check how PHP Code work.

There are some kind of error code-widget.php(188) : eval()’d code on line 6

That means your PHP code is incorrect or otherwise broken.

Can We add Simple HTML Markup ?

just simple add html markup which you want display in widget. See See Screen shot for more help.

Yes, Simple Text also Work in Code Widget ?

As our normal routine we insert any text in widget.

There is any option to add auto Paragraph tag ?

yes check widget setting if you want to add auto paragraph tag for show some beauty and cleanness.

Got a question ?

Send any questions or feedback via my contact form

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

Full changelog on WordPress.org →

Screenshots

How short code work.
How short code work.
How PHP code work.
How PHP code work.
How HTML Mark add.
How HTML Mark add.
How Simple Text add and how auto paragraph work.
How Simple Text add and how auto paragraph work.
Code Widget screenshot

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.

Active installs badge Rating badge Health score badge

Best Code Widget alternatives

All code plugins →
Alternatives
Rank Plugin Active installs Rating Updated Health
1 WPCode – Insert Headers and Footers + Custom Code Snippets – WordPress Code Manager WPCode Easily add code snippets in WordPress. Insert header & footer scripts, add PHP code… by Syed Balkhi 3M+ ★★★★★★★★★★ 4.9 (1.9K) 1 month ago 93
2 Code Snippets Code Snippets An easy, clean, and simple way to enhance your site with code snippets. by Code Snippets Pro 1M+ ★★★★★★★★★★ 4.7 (509) 3 weeks ago 92
3 Head & Footer Code Head & Footer Code Easy add site-wide, category and article specific custom code before the closing and , or… by Aleksandar Urošević 100K+ ★★★★★★★★★★ 5 (51) 4 weeks ago 81
4 Simple Custom CSS Plugin Simple Custom CSS Plugin Add Custom CSS to your WordPress site without any hassles. by John Regan 100K+ ★★★★★★★★★★ 4.7 (159) 2 years ago 51
5 Shortcoder — Create Shortcodes for Anything Shortcoder — Create Shortcodes for Anything Create custom "Shortcodes" easily for HTML, JavaScript, CSS code snippets and use the… by vaakash 100K+ ★★★★★★★★★★ 4.9 (227) 2 weeks ago 81
6 Scripts n Styles Scripts n Styles This plugin allows Admin users to individually add HTML, custom CSS, Classes and JavaScript… by WraithKenny 30K+ ★★★★★★★★★★ 4.4 (30) 3 years ago 45
7 SyntaxHighlighter Evolved SyntaxHighlighter Evolved Easily post syntax-highlighted code to your site without having to modify the code at all… by Alex Mills 20K+ ★★★★★★★★★★ 4.3 (86) 2 years ago 51
8 Code Embed Code Embed Code Embed provides a very easy and efficient way to embed code (JavaScript, CSS and HTML)… by David Artiss 10K+ ★★★★★★★★★★ 4.4 (45) 1 month ago 83
9 WP Coder – Insert & Manage Code Snippets WP Coder – Insert & Manage Code Snippets Snippets made simple — easily insert and manage custom PHP, CSS, JS & HTML without coding… by Wow-Company 10K+ ★★★★★★★★★★ 4.9 (32) 1 month ago 86
10 Advance Custom HTML – Show Off Code Snippets with Live Preview Advance Custom HTML Display HTML, CSS, JavaScript, PHP & Python code snippets in WordPress with live preview… by bPlugins 10K+ ★★★★★★★★★★ 2.5 (4) 2 weeks ago 73

FAQ

Code Widget: quick answers

Straight answers, pulled from live WordPress.org data.

Live data from WordPress.org · checked Sep 26, 2026

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 61,317 times since it launched in March 2018. It was downloaded 225 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.2. 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

Want thousands of pages that rank like these? Build them in an afternoon.

This directory runs on the same engine as PageForge. Turn any spreadsheet, CSV or API into thousands of fast, SEO-ready WordPress pages — with schema, internal links and AI-written copy baked in.

  • CSV, Google Sheets & API data sources
  • AI content, schema & internal links per page
  • Works with Elementor, Gutenberg, Yoast & Rank Math
  • Free on WordPress.org — no credit card
Sarah is here to help!
Hi there! 👋 Need help finding what you're looking for?
Sarah
Sarah
Online & Ready to Help
Hi there! 👋 Need help finding what you're looking for?

We'll use this to continue our conversation

Just now ✓ Verified

Join 500+ SEO Pros Scaling Their Strategy

Get exclusive programmatic SEO tactics, AI content workflows, and the latest PageForge updates delivered straight to your inbox. Stay ahead of the algorithm.

We care about your data in our privacy policy.