🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Compte Get it free
PHP Code Widget icon
Peut-être abandonné Tested up to 5.9.21 #572 most installed plugin #1 in execphp

Widget de code PHP

The normal Text widget allows you to insert arbitrary Text and/or HTML code. This allows that too, but also parses any PHP code in the text widget and executes it.

Installations actives70K+50 000 +
Téléchargements · 30D1.9K▲ +9.5% vs prev. 30d
Évaluation4.7/561 avis
Score de santé47/100Juste
Téléchargements de tous les temps1MDepuis mars 2008
Support résolu—Aucun fil de discussion récent
A besoin deWP 2.8Php tout
Classement général#572of 76,760 plugins
Notre verdict

Utiliser avec prudence

PHP Code Widget works, but test it on a staging site before relying on it in 2026. It runs on 70K+ sites, is rated 4.7/5 and was last updated 5 years ago, and scores 47/100 on our health check.

  • Prouvé à grande échelle sur plus de 70 000 sites actifs
  • Loved by users — 4.7/5 from 61 reviews
  • Pas de mise à jour dans 4 ans
  • Uniquement testé jusqu'à WordPress 5,9 (le dernier est de 7,1)

Téléchargements quotidiens

4386129Aug 31Oct 14Nov 28
Hier31
Moyenne quotidienne (1 ans)33
Jour de pointe17222 Octobre 2026
12 Derniers mois12.1K

Les pics de téléchargement suivent généralement une nouvelle version - chaque site qui met à jour automatiquement compte comme un téléchargement.

Classements

Where PHP Code Widget stands today
Popularité globale #572 of 76,760 WordPress.org plugins Top 0.75%
50 000 + installations 116 of 320
Niveau suivant : 100 000 + installations
Execphp #1 de 1 plugins → Php #4 of 157 plugins → Widget #8 of 2,344 plugins →

WordPress.org Classements de recherche

Position en direct dans la recherche de plugins, Top 100
Mot-cléPositionPlugins concurrentsCatégorie
execphp #1 1 Best execphp plugins →
php >100 10,000 Meilleurs plugins PHP →
widget >100 10,000 Meilleurs plugins de widgets →

Adoption de version

Part de sites actifs par version.

  • 2.480.2%
  • 2.316.4%
  • Autres3.3%

Répartition des notes

★★★★★★★★★★ 4.7 from 61 reviews

  • 5★85.2%
  • 4★8.2%
  • 3★1.6%
  • 2★0.00%
  • 1★4.9%

About PHP Code Widget

From the official readme · v2.4

Description

The normal Text widget allows you to insert arbitrary Text and/or HTML code. This allows that too, but also parses any PHP code in the text widget and executes it.

This can make it easier to migrate to a widget-based theme. However, this plugin should not be used long term, as anybody with access to edit the widgets on your site will be able to execute arbitrary PHP code.

All PHP code must be enclosed in the standard php opening and closing tags ( <?php and ?> ) for it to be recognized and executed.

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.

Journal de modifications

2.4

  • After much demand, made it stop throwing a warning in PHP 8. Please consider ceasing usage of this widget on modern sites. Switch to block based themes, or use purpose specific plugins to solve your needs instead of storing PHP code in the database.

2.3

  • Changed the call to WP_Widget to use the PHP 5 __construct() method. Ref: https://make.wordpress.org/core/2015/07/02/deprecating-php4-style-constructors-in-wordpress-4-3/

2.2

  • Translation fixes for WP 3.7
  • Remove donation link

2.1

  • Fixed broken wpautop filter. Checkbox on widget works now.

2.0

  • Changed widget to use new Class methods for creating widget. This simplifies the widget and should eliminate any problems with it losing code or disappearing from sidebars and so forth.

Journal des modifications complet sur WordPress.org →

Captures d'écran

The widgets screen showing a PHP code widget in use.
The widgets screen showing a PHP code widget in use.
The output of the widget on the site.
The output of the widget on the site.

Pour les développeurs

Est-ce votre plugin ? Montrez les chiffres.

Ajoutez un badge en direct à votre site, docs ou github readme. Il se met à jour par lui-même - aucun compte n'est nécessaire.

Badge d'installations actives Badge Badge de score de santé

FAQ

PHP Code Widget: quick answers

Réponses directes, extraites des données en direct WordPress.org.

Source : WordPress.org

Is PHP Code Widget free?

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

Is PHP Code Widget safe to use in 2026?

PHP Code Widget works, but test it on a staging site before relying on it in 2026. It runs on 70K+ sites, is rated 4.7/5 and was last updated 5 years ago, and scores 47/100 on our health check.

How many websites use PHP Code Widget?

PHP Code Widget is active on 70K+ WordPress websites and has been downloaded 1,003,986 times since it launched in March 2008. It was downloaded 1,920 times in the last 30 days.

Does PHP Code Widget work with WordPress 7.1?

PHP Code Widget is officially tested up to WordPress 5.9.21, while the latest release is 7.1.5. It may still work, but try it on a staging site first.

When was PHP Code Widget last updated?

The latest version, 2.4, was released on March 30, 2022 (5 years ago).

Who makes PHP Code Widget?

PHP Code Widget is developed and maintained by Samuel Wood (Otto).

Propulsé par PageForge

Un modèle et une feuille de calcul. Une vraie page pour chaque recherche.

PageForge transforme chaque ligne d'un CSV en une page WordPress avec son propre titre, URL, SEO et schéma, construit sur la mise en page que vous Déjà conçu. Gratuit sur WordPress.org.

  • CSV et XLSX, plus Google Sheets sur les professionnels et les entreprises
  • Son propre titre, URL, SEO champs et schéma pour chaque page
  • Fonctionne avec l'éditeur de blocs, Elementor, Divi et Avada
  • Gratuit sur WordPress.org, pas de carte de crédit

↑↓ bouger↵ ouvrir