🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Account Get it free
Code Injection icon
Actively maintained Tested with WP 7.1

Code Injection

This plugin allows you to effortlessly create custom ads for your website. Inject code snippets in HTML, CSS, and JavaScript, write and run custom plugins on-the-fly, and take your website’s capabilities to the next…

Active installs10+10+ tier
Downloads · 30d128▲ 3× vs prev. 30d
Rating—0 reviews
Health score66/100Good
All-time downloads2.7KSince Feb 2019
Support resolved—No recent threads
RequiresWP 4.5.0PHP any
Downloads · 7d24▼ -31.4% week over week
Our verdict

Solid choice

Code Injection is a solid plugin choice in 2026, with a few things worth checking first. It runs on 10+ sites and was last updated 2 weeks ago, and scores 66/100 on our health check.

  • Actively developed — last update 2 weeks ago
  • Tested with the latest WordPress (7.1)
  • Small user base (10+ active installs)
  • Very few reviews so far

How does it stack up?

Side-by-side on installs, updates, ratings & support

Daily downloads

122436Sep 2Oct 16Nov 30
Yesterday4
Daily average (1y)2
Peak day48Nov 16, 2026
Last 12 months731

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

Rankings

Where Code Injection stands today

WordPress.org search rankings

Live position in the plugin search, top 100
KeywordPositionCompeting pluginsCategory
code >100 10,000 Best code plugins →
injection #29 2,456 Best injection plugins →
snippets >100 3,038 Best snippets plugins →

Version adoption

Share of active sites per release.

  • 2.5100.0%

About Code Injection

From the official readme · v2.5.2

Description

English | فارسی | Русский | 简体中文 | Deutsch

This plugin allows you to effortlessly create custom ads for your website. Inject code snippets in HTML, CSS, and JavaScript, write and run custom plugins on-the-fly, and take your website’s capabilities to the next level.

Usage

To use this plugin, follow these steps:
* Activate the plugin from the Plugins menu in your dashboard.
* Click on the Code button in the dashboard menu to create and manage your code snippets.
* To insert a code snippet in your post or page, copy the CID (code identifier) from the list and use the shortcode [inject id='#'], where # is the CID.
* To insert a code snippet in your sidebar, drag and drop the CI widget into the desired widget area and select the code snippet from the dropdown menu.

Advanced Usage

If you want to run PHP scripts in your website, you need to do some extra steps:
* Go to Settings > Code Injection and create a strong activator key. This key will allow you to run PHP scripts safely and securely.
* To insert a PHP script in your post or page, use the shortcode [unsafe key='#'], where # is the activator key you created before. Write your PHP script between the opening and closing tags of the shortcode.
* To run a PHP script as a plugin, check the “as plugin” checkbox when creating or editing a code snippet. This will execute your PHP script on every page load.

AI Agent Access

Code snippets can be exposed to AI coding agents so they can fetch, update, and re-activate your code programmatically — useful when you pair the code with instructions and let your local agent (or tools like Claude Code, Codex CLI, etc.) work on it.

Warning

Be careful when running PHP scripts, as they can cause errors or conflicts with other plugins or themes. If you encounter any problems, you can disable the code snippet from the database by changing its status to “draft” in the wp_posts table.

Screenshots

Code Editor
Code Editor

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 Injection 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) 3 weeks ago 94
2 Code Snippets Code Snippets Manage custom WordPress code in one dashboard. Create PHP and HTML snippets, preview code… by Code Snippets Pro 1M+ ★★★★★★★★★★ 4.7 (510) 6 days ago 93
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) 3 months ago 71
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) 3 months ago 77
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) 1 week ago 73
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 week ago 87
9 Advance Custom HTML – Show Live Code, Share Snippets, Embed Code, and Style Them Your Way. Advance Custom HTML Advance Custom HTML lets you write and display HTML, CSS, PHP, and other code snippets on… by bPlugins 10K+ ★★★★★★★★★★ 2.5 (4) 2 weeks ago 68
10 Highlighting Code Block Highlighting Code Block Add code block with syntax highlighting using prism.js. (Available for Gutenberg and… by LOOS 10K+ ★★★★★★★★★★ 4.5 (20) 5 months ago 62

FAQ

Code Injection: quick answers

Straight answers, pulled from live WordPress.org data.

Source: WordPress.org

Is Code Injection free?

Yes. Code Injection is free to download and use from the official WordPress.org plugin directory.

Is Code Injection safe to use in 2026?

Code Injection is a solid plugin choice in 2026, with a few things worth checking first. It runs on 10+ sites and was last updated 2 weeks ago, and scores 66/100 on our health check.

How many websites use Code Injection?

Code Injection is active on 10+ WordPress websites and has been downloaded 2,669 times since it launched in February 2019. It was downloaded 128 times in the last 30 days.

Does Code Injection work with WordPress 7.1?

Yes. The developer has tested Code Injection up to WordPress 7.1.5, the latest release. It requires WordPress 4.5.0 or newer.

When was Code Injection last updated?

The latest version, 2.5.2, was released on November 15, 2026 (2 weeks ago).

Who makes Code Injection?

Code Injection is developed and maintained by Rmanaf.

What are the best alternatives to Code Injection?

The most popular alternatives to Code Injection 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

↑↓ to move↵ to open