🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Compte Get it free
Code Revisions icon
Peut-être abandonné Testé jusqu'à 3.7.41 #98 in code

Code Revisions

This plugin will help you to keep track of changes made to theme and plugin files through the WordPress code editors. You no longer need to worry about possibly breaking something with bad changes because you can always…

Installations actives10+10+ niveaux
Téléchargements · 30D77▲ +92.5% vs prev. 30d
Évaluation4.2/56 avis
Score de santé32/100En danger
Téléchargements de tous les temps4.6KDepuis août 2013
Support résolu—Aucun fil de discussion récent
A besoin deWP 3.6Php tout
Téléchargements · 7j24▲ +60% week over week
Notre verdict

Envisager une alternative

Code Revisions shows warning signs in 2026 — compare the alternatives below before installing. It runs on 10+ sites, is rated 4.2/5 and was last updated 13 years ago, and scores 32/100 on our health check.

  • Petite base d'utilisateurs (plus de 10 installations actives)
  • Pas de mise à jour dans 13 ans
  • Uniquement testé jusqu'à WordPress 3,7 (le dernier est de 7,1)

Comment s'accumule-t-il ?

Côte à côte sur les installations, les mises à jour, les évaluations et le support

Téléchargements quotidiens

246Sep 2Oct 16Nov 30
Hier5
Moyenne quotidienne (1 ans)1
Jour de pointe97 Novembre 2026
12 Derniers mois483

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 Code Revisions stands today

WordPress.org Classements de recherche

Position en direct dans la recherche de plugins, Top 100
Mot-cléPositionPlugins concurrentsCatégorie
code >100 10,000 Meilleurs plugins de code →
Editors >100 10,000 Best Editors plugins →
revision.php #3 3 Best revision.php plugins →
révisions >100 2,059 Meilleurs plugins de révisions →
thème >100 10,000 Meilleurs plugins de thèmes →

Adoption de version

Part de sites actifs par version.

  • 1.0100.0%

Répartition des notes

★★★★★★★★★★ 4.2 from 6 reviews

  • 5★66.7%
  • 4★16.7%
  • 3★0.00%
  • 2★0.00%
  • 1★16.7%

About Code Revisions

À partir du Lisezmoi officiel · v1.0

Description

This plugin will help you to keep track of changes made to theme and plugin files through the WordPress code editors. You no longer need to worry about possibly breaking something with bad changes because you can always return to an older version of the file. Additionally the plugin helps you to redo your changes when they might have been overwritten by a plugin update by easily showing you what changed. The revisions are handled in a way native to WordPress. Comfortably view revisions using the new revision viewer introduced in WordPress 3.6.

This plugin is part of my Google Summer of Code 2013 project at WordPress. You can find more information on make/core. It was also featured on wptavern.com if you are interested in some background information.

Developer’s Guide

code-revisions.php: The main plugin file. It defines constants, loads the other files, instantiates the classes if appropriate and contains the uninstall automatism.

inc/class-code-revisions.php: Loaded on all pages this class does multiple general things. It adds the custom post type required for saving the code revisions (post_type()) and redirects the user from the post editor (wp-admin/edit.php) to the appropriate code editor (wp-admin/theme-editor.php or wp-admin/plugin-editor.php) when he tries to view those posts directly (redirect()). Further more this class hooks into the WordPress revision restore process to not only restore the post but also the related file (restore()) and handles styling the WordPress revision viewer (wp-admin/revisions.php) when viewing code revisions so it feels more code-editor-ish (styles()).

inc/code-revisions-editors.php: This file contains the Code_Revisions_Editors class which, in contrast to the Code_Revisions class in class-code-revisions.php, is only loaded on the WordPress code editor pages using the load-plugin-editor.php and load-theme-editor.php hooks. Using either, if available, POST and GET data or falling back to the appropriate default file the class generates an array containing meta information on the currently viewed file (generate_meta()). In an attempt to have as less theme or plugin file specific code this array contains 4 strings:

  • type: ‘plugin’/’theme’
  • package: theme slug or ‘plugin/plugin.php’
  • file: relative file path from the theme’s folder or the WordPress plugin directory
  • checksum: md5-checksum of the file

Using this data the plugin can check the database for a related post and retrieve it’s id if available (retrieve()). The meta information array is stored as custom post meta data alongside a file’s post.

When a file is opened in the editor and a related post is found in the database the plugin checks if the post’s content and the file’s content still match. If they don’t the post is updated with the new content (which results in a new revision) and the user is notified about the change using an admin notice (handle_direct_changes()).

On file updates through the code editor the plugin checks if the file has actually changed before WordPress writes to it. Only when changes are found a revision needs to be created. If no post is associated with the file yet a new post is created with the old contents. This post is then updated with the new content. This process guarantees that there is a revision with the initial file content to which the user can revert to (handle_file_update()). Additionally the plugin tries to do a syntax check for *.php files to prevent breaking the WordPress installation (check_syntax()). As mostly recommended the plugin utilizes php -l for this by writing the new contents to a temporary file. If this feature is not available a more basic check using eval is performed. When a syntax error is found the actual file is not written, but the user is redirected back to the editor with a notification about the error and it’s location with line highlighting.

inc/plugged.php: Contains a slightly changed version of the pluggable wp_text_diff() function. wp_text_diff() is utilized for generating the diffs rendered in the revision viewer. Normally it strips leading, trailing and multiple successive whitespaces. However this behavior is not very helpful when viewing code revisions, wherefore the plugin suppresses it for revisions associated with the custom code revisions post type.

inc/metabox.php: The template for the revision metabox.

js/editors.js: JavaScript for customizing the code editor pages (wp-admin/plugin-editor.php and wp-admin/theme-editor.php). It adds the revisions metabox below the editors, the revisions text with link next to the ‘Update File’ button and handles the text replacement and line highlighting when a syntax error was found.

css/editors.css: Styles for the code editors. Enqueued in inc/class-code-revisions-editors.php -> scripts().

css/viewer.css: Styles for the revision viewer (wp-admin/revisions.php). Enqueued only when viewing code revisions in inc/class-code-revisions.php -> styles().

Journal de modifications

0.1

  • Post and revision creation on file edits

0.2

  • Revision list metabox and revision viewing

0.3

  • Revision restoring

0.4

  • Take direct file changes (e.g. ftp or plugin/theme updates) into account

0.5

  • Basic php syntax checking

0.6

  • Enhanced error proofing & revision browsing

Journal des modifications complet sur WordPress.org →

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é

Best Code Revisions alternatives

Tous les plugins de code →
Alternatives
Rang Plugin Installations actives Évaluation Mise à jour Santé
1 WPCode – Insérer des en-têtes et des pieds de page + extraits de code personnalisés – WordPress Gestionnaire de code Wpcode Ajoutez facilement des extraits de code dans WordPress. Insérez des scripts d'en-tête et de pied de page, ajoutez du code PHP… de Syed Balkhi 3M+ ★★★★★★★★★★ 4.9 (1.9K) 3 semaines plus tôt 94
2 Extraits de code Extraits de code Gérez le code WordPress personnalisé dans un seul tableau de bord. Créez des extraits de PHP et HTML, prévisualisez le code… par codes d'extraits de pro 1M+ ★★★★★★★★★★ 4.7 (510) il y a 6 jours 93
3 Code de la tête et du pied de page Code de la tête et du pied de page Ajoutez un code personnalisé à l'échelle du site, de la catégorie et de l'article avant la clôture et… Par Aleksandar Urošević 100K+ ★★★★★★★★★★ 5 (51) Il y a 3 mois 71
4 Plugin CSS personnalisé simple Plugin CSS personnalisé simple Ajoutez un CSS personnalisé à votre site WordPress sans aucun problème. de John Regan 100K+ ★★★★★★★★★★ 4.7 (159) Il y a 2 ans 51
5 Shortcoder — Créez des shortcodes pour tout Shortcoder — Créez des shortcodes pour tout Créez facilement des "shortcodes" personnalisés pour les extraits de code HTML, JavaScript, CSS et utilisez les… par vaakash 100K+ ★★★★★★★★★★ 4.9 (227) Il y a 3 mois 77
6 Scripts n Styles Scripts n Styles Ce plugin permet aux utilisateurs administrateurs d'ajouter individuellement du HTML, du CSS personnalisé, des classes et de JavaScript… Par soft 30K+ ★★★★★★★★★★ 4.4 (30) Il y a 3 ans 45
7 SyntaxeHighlighter évolué SyntaxeHighlighter évolué Publiez facilement le code mis en évidence par la syntaxe sur votre site sans avoir à modifier le code du tout… par Alex Mills 20K+ ★★★★★★★★★★ 4.3 (86) il y a 1 semaine 73
8 Code d'intégration Code d'intégration Code Embed offre un moyen très simple et efficace d'intégrer du code (JavaScript, CSS et HTML)… par David Artiss 10K+ ★★★★★★★★★★ 4.4 (45) il y a 1 semaine 87
9 Advance HTML personnalisé - Affichez le code en direct, partagez des extraits, intégrez du code et stylisez-les à votre façon. Avancer le code HTML personnalisé Advance HTML personnalisé vous permet d'écrire et d'afficher des extraits de code HTML, CSS, PHP et autres… par BPlugins 10K+ ★★★★★★★★★★ 2.5 (4) Il y a 2 semaines 68
10 Mise en évidence du bloc de code Mise en évidence du bloc de code Ajoutez un bloc de code avec la mise en évidence de la syntaxe à l'aide de Prism.js. (Disponible pour Gutenberg et… par Loos 10K+ ★★★★★★★★★★ 4.5 (20) il y a 5 mois 62

FAQ

Code Revisions: quick answers

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

Source : WordPress.org

Is Code Revisions free?

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

Is Code Revisions safe to use in 2026?

Code Revisions shows warning signs in 2026 — compare the alternatives below before installing. It runs on 10+ sites, is rated 4.2/5 and was last updated 13 years ago, and scores 32/100 on our health check.

How many websites use Code Revisions?

Code Revisions is active on 10+ WordPress websites and has been downloaded 4,615 times since it launched in August 2013. It was downloaded 77 times in the last 30 days.

Does Code Revisions work with WordPress 7.1?

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

When was Code Revisions last updated?

The latest version, 1.0, was released on September 30, 2013 (13 years ago).

Who makes Code Revisions?

Code Revisions is developed and maintained by Alex.

What are the best alternatives to Code Revisions?

The most popular alternatives to Code Revisions are WPCode (3M+ installs), Code Snippets (1M+ installs) and Head & Footer Code (100K+ installs).

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