> WP-Post-Meta-Revisions wordpress plugin resources analysis

WP-Post-Meta-Revisions wordpress plugin resources analysis

Download This Plugin
Download Elegant Themes
Name WP-Post-Meta-Revisions
Version 0.1.8
Author Adam Silverstein - code developed with others
Rating 100
Last updated 2015-01-12 07:23:00
Downloads
70
Download Plugins Speed Test plugin for Wordpress

Home page

Delta: 0%

Post page

Delta: 0%
WP-Post-Meta-Revisions plugin has no negative impact on PageSpeed score.

Home page PageSpeed score has been degraded by 0%, while Post page PageSpeed score has been degraded by 0%

WP-Post-Meta-Revisions plugin added 6 bytes of resources to the Home page and 7 bytes of resources to the sample Post page.

WP-Post-Meta-Revisions plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.

Great! WP-Post-Meta-Revisions plugin ads no tables to your Wordpress blog database.

This plugin implements a post meta revisioning feature as arrived at in https://core.trac.wordpress.org/ticket/20564.

The goal of releasing this code as a plugin is to allow as many people as possible to easily test the post meta revisioning feature, and also hopefully move towards inclusion of the feature into core, following the Features as Plugins model.

Further development of the code for this plugin will continue on its GitHub repository. Pull requests welcome!

To use this plugin, you must be running WordPress 4.1 or newer, two hooks were added in 4.1 that are required for this implementation.

To revision a post meta, you add its key via a filter:

function add_meta_keys_to_revision( $keys ) {
    $keys[] = 'meta-key-to-revision';
    return $keys;
}
add_filter( 'wp_post_revision_meta_keys', 'add_meta_keys_to_revision' );

Features:

  • Allows for a whitelisted array of 'revisioned' meta keys (which can change at any time)
  • A revision for the meta is stored on save (if the meta value has changed)
  • A meta revision save (if changed) is also triggered during auto-saves
  • Restoring a revision restores the revisioned meta field's values at that revision (including auto-saves)
  • Supports storing of multiple values for a single key (and restoring them)
  • Adds revisioned meta to the preview data via get_post_metadata
  • Includes unit tests demonstrating feature
  • Travis CI tests integrated with GitHub repository, props @mattheu
Resources added by plugin to Home page/Post page in kB
Total size of resources for Home page/Post page in kB
Random Theme Tests
Shiro screenshot

Shiro

by: pixxels

12897
0%
ComicPress screenshot

ComicPress

by: Frumph

125883
80%