Halloween Sale 15% off Ends in See the plans

Snippet Library

Performance snippets for WordPress

Snippets that make WordPress lighter and faster: remove emoji scripts and embeds, control the Heartbeat API, limit revisions and load scripts only where they are needed. For developers and site owners chasing better Core Web Vitals.

1–4 of 4 snippets “revisions”

  • PHP Performance

    Limit Post Revisions

    Keeps only the five most recent revisions of each post, which stops the database from growing with old copies.

  • PHP Performance

    Old Revisions Cleanup Tool

    Adds Tools > Clean Up Revisions, which shows how many post revisions your database holds and deletes revisions older than a chosen number of days after you confirm, always keeping the newest few per post.

  • PHP Performance

    Turn Off Autosave for Chosen Post Types

    Stops the editor from autosaving the post types you list (for example products or custom data types edited by many people), which removes frequent background requests and extra autosave revisions.

Have a snippet worth sharing?

Publish it to the library from WPIDE or right here. Sign in with any WordPress site that runs WPIDE, free or Pro. Public snippets are reviewed by the WPIDE team before they appear.