=== Core Diet ===
Contributors: fernandot, ayudawp
Tags: performance, cleanup, disable, bloat, optimization
Requires at least: 6.3
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Put your WordPress on a diet. Disable unnecessary default features to improve performance and reduce bloat.

== Description ==

Core Diet lets you disable WordPress features you don't need, organized by risk level so you always know what's safe to turn off.

Unlike other optimization plugins that bundle dozens of unrelated features, Core Diet focuses exclusively on one thing: trimming the fat from WordPress core. No page builders, no custom post types, no SEO tools — just a clean, focused interface to disable what you don't use.

**Scale — Your starting point**

The first thing you see when you open Core Diet. Get an overview of your current savings, apply a quick profile, or run the site analyzer for personalized recommendations.

* Savings indicator: HTTP requests removed, CSS/JS saved, database queries avoided, and active optimizations at a glance
* Quick profiles: Personal Blog, WooCommerce Store, Landing Page, and Maximum Cleanup — one click to apply a preconfigured set of settings
* Recommendations: analyze your site and get suggestions based on your active plugins and content, with quick-select filters by risk level and real-time savings preview
* All changes require explicit save — nothing is applied until you confirm

**Light — Safe for any site**

* Disable emoji scripts and styles
* Remove RSD, WLW manifest, and generator meta tags
* Remove shortlinks and self-pingbacks
* Hide login error details and remove X-Pingback header
* Disable pingbacks, post by email, and comment pagination
* Disable admin email verification prompt
* Remove WordPress logo from admin bar
* And more

**Moderate — Evaluate before disabling**

* Disable XML-RPC completely
* Remove oEmbed discovery and wp-embed.js
* Remove jQuery Migrate from frontend
* Disable Application Passwords
* Remove Dashicons from frontend for non-logged-in users
* Remove Global Styles inline CSS and Duotone SVG filters
* Disable remote block directory and block patterns
* Disable avatars and comment threading
* And more

**Strict — Site-specific settings**

* Granular RSS feed controls: disable all feeds or pick specific types (comments, taxonomies, authors, search)
* Control the Heartbeat API (disable, reduce, or admin-only)
* Limit or disable post revisions
* Adjust autosave interval (works with both classic and block editor)
* Restrict or disable REST API (administrators always retain access)
* Disable comments completely (removes menus, admin bar, Discussion settings, and Activity widget)
* Disable native lazy loading and fetchpriority attribute
* Remove version parameters from assets
* Disable Posts or Pages content type entirely
* And more

**Widgets**

* Disable unused dashboard widgets (Welcome panel, At a Glance, Activity, Quick Draft, Events and News, Site Health)
* Detect and disable third-party dashboard widgets (Yoast, WooCommerce, Elementor, Jetpack, Wordfence, Rank Math, Gravity Forms)
* Unregister classic sidebar widgets you never use
* Remove widget-related blocks from the block editor
* Disable the Customizer or just its Widgets panel

**Tools**

* Export your configuration to a JSON file and import it on another site

Every option includes a clear description of what it does and what might break, so you can make informed decisions. Toggle-all buttons on every section let you activate or deactivate entire groups with one click.

== Installation ==

1. Upload the `core-diet` folder to `/wp-content/plugins/`.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Go to Tools > Core Diet to configure.

== Frequently Asked Questions ==

= Is it safe to enable everything? =

The **Light** tab is safe for virtually any site. For the **Moderate** and **Strict** tabs, read the descriptions carefully — some features may be required by your theme or plugins. Use the **Scale** tab analyzer for personalized recommendations.

= Will this break my site? =

Core Diet only disables features when you explicitly enable each toggle. Nothing changes until you save settings. If something breaks, simply turn the toggle off.

= Does Core Diet work with caching plugins? =

Yes. Core Diet makes changes at the WordPress level, which works perfectly with any caching plugin.

= Does it work with WooCommerce? =

Yes. The WooCommerce quick profile is preconfigured to keep REST API and comments active for reviews. Be careful with the REST API settings if your store relies on public endpoints.

= What does the site analyzer check? =

It detects active plugins (Jetpack, Yoast, Rank Math, AIOSEO), checks your site content (comment count), and cross-references your current settings to provide tailored recommendations with risk levels (Safe, Recommended, Evaluate).

= Can I revert all changes? =

Deactivating the plugin immediately restores all default WordPress behavior. No permanent changes are made. You can also use the "Reset all settings to defaults" button in the Scale tab.

== Screenshots ==

1. Scale tab — savings indicator, quick profiles, and site analyzer with recommendations.
2. Light tab — safe features to disable on any site, organized by section.
3. Moderate tab — features to evaluate before disabling.
4. Strict tab — RSS feed controls, core behavior settings, and advanced options.
5. Widgets tab — dashboard, block editor, Customizer, and classic sidebar widgets.
6. Tools tab — import and export settings as JSON.

== Changelog ==

= 1.0.1 =
* Fix: toggle switch was clipped on option cards with long titles (especially in Spanish and other translations with longer strings).
* Fix: "Disable post by email" now hides the entire "Post via email" section in Settings > Writing — heading, description with random strings, and the default mail category dropdown were still visible before.

= 1.0.0 =
* Initial release.
* Scale tab with savings indicator, quick profiles, and site analyzer with recommendations.
* 70+ optimization settings across Light, Moderate, Strict, and Widgets tabs.
* Granular feed controls (all, comments, taxonomies, authors, search, head links).
* Quick profiles: Personal Blog, WooCommerce Store, Landing Page, Maximum Cleanup.
* Import/export settings as JSON.
* Toggle-all buttons on every section for fast bulk changes.
* One-time welcome notice on activation.

== Upgrade Notice ==

= 1.0.1 =
Fixes toggle clipping with long titles and ensures "Disable post by email" hides the full section in Settings > Writing.

= 1.0.0 =
Initial release.

== Support ==

Need help or have suggestions?

* [Official website](https://servicios.ayudawp.com)
* [WordPress support forum](https://wordpress.org/support/plugin/core-diet/)
* [YouTube channel](https://www.youtube.com/AyudaWordPressES)
* [Documentation and tutorials](https://ayudawp.com)

Love the plugin? Please leave us a [5-star review](https://wordpress.org/support/plugin/core-diet/reviews/#new-post) and help spread the word!

== About AyudaWP.com ==

We are specialists in WordPress security, SEO, and performance optimization plugins. We create tools that solve real problems for WordPress site owners while maintaining the highest coding standards and accessibility requirements.