=== CleanUp WP ===
Contributors: kuckovic
Tags: cleanup, optimization, security, performance, fresh install
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Stable tag: 2.2.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Clean up your fresh WordPress installation with one click. Remove demo content, set sensible defaults, and toggle performance optimizations.

== Description ==

CleanUp WP helps you quickly set up a fresh WordPress installation by removing default content, configuring sensible defaults, and enabling performance optimizations.

**Cleanup Tab (One-time tasks)**

These tasks run once and get marked as done:

* Delete "Hello World" post
* Delete "Sample Page"
* Delete "Privacy Policy" page
* Delete default comment
* Delete Hello Dolly & Akismet plugins
* Delete unused themes (keeps active + parent)
* Clear widget areas
* Create main navigation menu
* Set pretty permalinks (/%postname%/)
* Disable comments by default
* Rename "Uncategorized" to "News"
* Disable user registration
* Organize uploads by year/month
* Set default image link to "None"
* Discourage search engine indexing
* Set timezone
* Create static homepage

**Optimize Tab (Toggleable)**

These can be turned ON or OFF at any time:

* Disable WordPress emojis (~20KB savings)
* Disable oEmbed
* Remove jQuery Migrate
* Disable Dashicons on frontend
* Clean up wp_head
* Disable self-pingbacks
* Reduce Heartbeat frequency
* Disable XML-RPC
* Hide WordPress version
* Disable file editing
* Disable user enumeration
* Clean dashboard (keep only Site Health and At a Glance)

== Installation ==

1. Upload the plugin files to `/wp-content/plugins/cleanup-wp/` or install via the WordPress plugins screen.
2. Activate the plugin through the 'Plugins' screen in WordPress.
3. Navigate to Tools → CleanUp WP.
4. Select cleanup tasks, preview, and execute.
5. Toggle optimizations on/off as needed.

== Frequently Asked Questions ==

= Can I undo the cleanup tasks? =

No, cleanup tasks like deleting posts, pages, and plugins cannot be undone. Use the Preview button to see what will happen before executing.

= Can I turn off optimizations? =

Yes! The Optimize tab uses toggle switches. If something breaks, just flip it back off.

= What happens when I delete the plugin? =

All plugin options are removed from the database. Optimizations will no longer be active.

== Screenshots ==

1. Cleanup tab with one-time tasks
2. Optimize tab with toggleable options

== Changelog ==

= 2.2.0 =
* Complete rewrite with OOP architecture
* Split into multiple files (class-plugin, class-cleanup, class-optimize)
* Added toggleable optimizations (can be turned on/off)
* Added Optimize tab with performance and security options
* One-time tasks now properly disabled after execution

= 2.1.0 =
* Added tabbed interface (Cleanup, Optimize, Security, Settings)
* Added dashboard cleanup option
* Added Privacy Policy page deletion (ID: 3)
* Added persistent optimizations

= 2.0.0 =
* Complete modernization from procedural to OOP
* Added admin interface with preview/execute workflow
* Added AJAX functionality
* Added security improvements (nonce, capability checks)
* Tasks only run on explicit user action

= 1.3 =
* Removes "Akismet Plugin" from Plugin directory

= 1.2.2 =
* Now the plugin is checking whether you're using a child-theme or not. If so, the plugin will not delete any themes.

= 1.2.1 =
* Updated ReadMe.txt

= 1.2 =
* Disables user registration by default
* Renames "Uncategorized" category to "News"
* Disables commenting by default

= 1.1 =
* Corrected the name of the plugin

= 1.0 =
* Initial version of the plugin

== Upgrade Notice ==

= 2.2.0 =
Major update with new toggleable optimizations. If upgrading from 1.x, your previous settings will be reset.