Plugins / Pantry Cleanup
Pantry Cleanup
v1.1.0Contents: Switch off the WordPress features you do not use.
20 KB, no external requests
A list of switches, each with one sentence saying exactly what it removes. Emoji scripts, embeds, XML-RPC, header links, user enumeration, author archives, comments, jQuery Migrate, revisions, heartbeat. Every switch is off by default and does one thing.
Compared with the popular plugins

What it does
- Disable the emoji detection script and styles
- Disable oEmbed discovery and the wp-embed script
- Disable XML-RPC and remove its pingback header
- Remove RSD, WLW manifest, shortlink, generator and feed links from the head
- Block REST API user listing for visitors who are not logged in
- Disable author archives and remove author links
- Disable comments site-wide: close them, hide the menu and admin-bar items, remove comment feeds; existing comments are kept
- Disable self-pingbacks
- Disable jQuery Migrate on the front end
- Remove Dashicons on the front end for visitors who are not logged in
- Limit the number of post revisions and set the autosave interval
- Change the heartbeat interval or disable it on the dashboard
What it does not do
- No per-page script manager
- No caching or minification
- No database clean-up
- No image or font optimisation
Measured footprint
- Zip size
- 20 KB
- Lines of PHP
- 1,458
- Options
- pantry_cleanup_settings
- Post meta
- none
- Custom tables
- none
- Post types
- none
- Cron events
- none
- Transients
- none
- Admin assets
- includes/core/assets/pantry-admin.css on the settings screen only, includes/core/assets/pantry-admin.js on the settings screen only
- Front-end assets
- none
- External requests
- none
- Measured on
- 2026-09-12
Compatibility
- WordPress
- 6.4 or newer, tested to 7.1
- PHP
- 8.1 or newer
- Where it lives
- Plugin Pantry > Cleanup
- Licence
- GPLv2 or later
Documentation
Read the documentationEvery setting on the Pantry Cleanup screen and what each one does, with the hooks it publishes: the same text that ships in the plugin README.
Pro add-on
See Pantry Pro pricing- Per-page script and style manager
- Database clean-up with a dry run
- Local Google Fonts
These modules ship in Pantry Pro now. None of this is in the free plugin, and none of it is switched off inside it: Pro is a separate plugin, and one key switches on every module whose free plugin is active.
Changelog
All notable changes to Pantry Cleanup are documented in this file, in the Keep a Changelog format.
1.1.0 - 2026-09-12
- Added the
pantry_cleanup_settings_afteraction, fired at the end of the settings screen so add-ons can render their own sections there.
1.0.0 - 2026-09-12
- First release.
- Switch: disable the emoji detection script and styles.
- Switch: disable oEmbed discovery and the wp-embed script.
- Switch: disable XML-RPC and remove its pingback header.
- Switch: disable self-pingbacks.
- Switch: block the REST API user list for logged-out visitors.
- Switch: remove RSD, WLW manifest, shortlink, generator and feed links from the head.
- Switch: disable author archives and remove author links.
- Switch: disable comments site-wide while keeping existing comments.
- Switch: disable jQuery Migrate on the front end.
- Switch: remove Dashicons on the front end for logged-out visitors.
- Switch: limit the number of post revisions.
- Switch: set the autosave interval.
- Switch: set the Heartbeat interval.
- Switch: disable Heartbeat on the dashboard screen.