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–13 of 13 snippets “tools”

  • PHP Performance

    Auto-Drafts and Trash Cleanup Tool

    Adds Tools > Clean Up Drafts and Trash with counts of leftover auto-drafts, trashed posts and trashed or spam comments, and a button to remove them all permanently after confirmation.

  • PHP Performance

    Autoloaded Options Inspector

    Adds Tools > Autoloaded Options showing the total size of options WordPress loads on every page and the 40 largest ones, with a button to stop autoloading any option that does not need it.

  • PHP Performance

    Database Table Sizes and Optimize Buttons

    Adds Tools > Database Tables listing every table of your site with its row count, data and index size and reclaimable space, sorted by size, with an Optimize button for tables that need it.

  • PHP Performance

    Delete Image Size Files No Longer Registered

    Adds Tools > Unused Image Sizes, which finds resized copies of your images made for sizes your current theme and plugins no longer register, shows how much space they take, and deletes them in batches after confirmation.

  • PHP Performance

    Find What Is Calling admin-ajax.php

    Counts admin-ajax.php requests per action (and whether they come from the front end or the dashboard) for the current day and the previous six, and shows the busiest ones under Tools > AJAX Usage.

  • PHP Performance

    Find and Remove Orphaned Cron Events

    Adds Tools > Orphaned Cron Events, listing scheduled tasks that no active plugin or theme handles any more (often left by uninstalled plugins) and removing them after you confirm.

  • PHP Performance

    Log Scheduled Tasks That Take Too Long

    Measures how long each scheduled task (cron event) takes to run and records the slow ones under Tools > Slow Cron Tasks, so you can spot the plugin that makes WP-Cron sluggish.

  • PHP Performance

    Log Slow Outgoing HTTP Requests

    Times every request your site makes to other servers (update checks, APIs, license servers) and records the ones slower than a second under Tools > Slow HTTP Calls, so you can find what is holding up page loads.

  • 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

    Orphaned Metadata Cleanup Tool

    Adds Tools > Orphaned Metadata, which counts post, comment, term and user meta rows whose post, comment, term or user no longer exists, and removes them after you confirm.

  • PHP Performance

    Server-Timing Header for Administrators

    Adds a Server-Timing header with PHP time, database query count and peak memory to pages viewed by administrators, so you can read the numbers in your browser's developer tools Network tab.

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.