PluginSift
PluginsThemesCompare
Directory
  • Plugins
  • Themes
  • Compare Plugins
Plugin Comparisons
  • SEO
  • Security
  • Ecommerce
  • Page Builders
  • Caching
  • Backup
  • Forms
  • Analytics
Resources
  • About
  • Contact
  • llms.txt

© 2026 PluginSift. Data sourced from WordPress.org. · [email protected]

  1. Home
  2. Plugins
  3. PHP
  4. Code Widget
Code Widget icon

Code Widget

Code widget help to add Short Code, PHP Code, HTML, and Simple Text in widget.

By Sharaz Shahid·PHP·Free
4.9(35 reviews)
·4.0K+ active installs·Updated 3 years ago
DownloadVisit HomepageCompare

As of April 2026, Code Widget is a WordPress php plugin with 4.0K+ active installations and a 4.9/5 rating from 35 reviews. It has been downloaded 60K+ times in total. Requires WordPress 4.0+ and PHP 7.0+. Available on WordPress.org since 2018. Last updated 3 years ago — may have compatibility concerns. Downloads are down 8% this week. Top alternative: WPCode – Insert Headers and Footers +….

4.9/535 reviews
4.0K+active installs
60K+total downloads
8 yearssince 2018

Overview

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

Read full description on WordPress.org

Screenshots

Ratings & Reviews

4.935 reviews
5 ★
34
4 ★
0
3 ★
0
2 ★
0
1 ★
1

Recent Reviews

Great way to do quick code blocks without digging into source files
by atkulp·1 year ago

I’ve been using Code Widget for over a year on https://www.vrvoyaging.com and I love how easy it is to put PHP, HTML, or a shortcode into a page block without fussing with custom widgets. Highly recommended!

Extremely useful
by lachralle·3 years ago

I switched from Drupal 7 to WordPress and this is exactly what I needed to spice up the widgets – in Drupal I used something similar for blocks.

Thanks for the great plugin
by Matta Cib·3 years ago

It works fine. Thank you!

No Idea how to work this
by zardiw·4 years ago·1 reply

There are NO instructions.

There is NO place to create the code…..

Useless.

Great plugin!
by Bernd·4 years ago

Easy to use and it works perfectly.

Download Trends

Today: 3Yesterday: 7This week: 22Period total: 5K

Compatibility

WordPress4.0+ requiredTested up to 6.1.0
PHP7.0+ required

Version Adoption

v1.0
100.0%

Top Alternatives to Code Widget

WPCode – Insert Headers and Footers + Custom Code Snippets – WordPress Code Manager icon
WPCode – Insert Headers and Footers +…
4.93.0M+ installsUpdated 2 weeks ago
ViewCompare
Code Snippets icon
Code Snippets
4.71.0M+ installsUpdated 1 month ago
ViewCompare
PHP Compatibility Checker icon
PHP Compatibility Checker
2.7200K+ installsUpdated 2 years ago
ViewCompare
PHP Code Widget icon
PHP Code Widget
4.790K+ installsUpdated 4 years ago
ViewCompare
Error Log Monitor icon
Error Log Monitor
4.320K+ installsUpdated 6 months ago
ViewCompare
View all php plugins →

Frequently Asked Questions

Changelog

1.0.15 2021-06-11

  • Compatibility : WP 6.1.0 compatibility added
  • Enhancement : Block editor support added
View full changelog on WordPress.org

Contributors

Sharaz ShahidSharaz Shahid
Plugin Info
Version
1.0.15
Last Updated
Jun 11, 2022
WP Requires
4.0+
Tested Up To
6.1.0
PHP Requires
7.0+
Active Installs
4.0K+
Downloads
60K+
Added
Mar 22, 2018
Business
Free

Tags

phpcodehtmlwidgetshort code

Developer

S
Sharaz Shahid
5 plugins0.0M+ total installs
View all plugins →

Quick Compare

Code Widget vs WPCode – Insert Headers and Footers +…→Code Widget vs Code Snippets→Code Widget vs PHP Compatibility Checker→

Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.