Changeset 3443030
- Timestamp:
- 01/20/2026 08:05:56 AM (2 months ago)
- Location:
- cleanup-wp/trunk
- Files:
-
- 2 edited
-
README.md (modified) (3 diffs)
-
cleanup-wp.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
cleanup-wp/trunk/README.md
r3443019 r3443030 1 # CleanUp WP 1 === CleanUp WP === 2 Contributors: akuckovic 3 Tags: cleanup, optimization, security, performance, fresh install 4 Requires at least: 6.0 5 Tested up to: 6.7 6 Requires PHP: 7.4 7 Stable tag: 2.2.0 8 License: GPLv2 or later 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html 2 10 3 11 Clean up your fresh WordPress installation with one click. Remove demo content, set sensible defaults, and toggle performance optimizations. 4 12 5 ## Features 13 == Description == 6 14 7 ### 🧹 Cleanup Tab (One-time tasks) 15 CleanUp WP helps you quickly set up a fresh WordPress installation by removing default content, configuring sensible defaults, and enabling performance optimizations. 8 16 9 These tasks run once and cannot be undone: 17 **Cleanup Tab (One-time tasks)** 10 18 11 **Content** 12 - Delete "Hello World" post 13 - Delete "Sample Page" 14 - Delete "Privacy Policy" page 15 - Delete default comment 19 These tasks run once and get marked as done: 16 20 17 **Plugins & Themes** 18 - Delete Hello Dolly & Akismet 19 - Delete unused themes (keeps active + parent) 21 * Delete "Hello World" post 22 * Delete "Sample Page" 23 * Delete "Privacy Policy" page 24 * Delete default comment 25 * Delete Hello Dolly & Akismet plugins 26 * Delete unused themes (keeps active + parent) 27 * Clear widget areas 28 * Create main navigation menu 29 * Set pretty permalinks (/%postname%/) 30 * Disable comments by default 31 * Rename "Uncategorized" to "News" 32 * Disable user registration 33 * Organize uploads by year/month 34 * Set default image link to "None" 35 * Discourage search engine indexing 36 * Set timezone 37 * Create static homepage 20 38 21 **Setup** 22 - Clear widget areas 23 - Create main navigation menu 24 - Set pretty permalinks (/%postname%/) 25 - Disable comments by default 26 - Rename "Uncategorized" to "News" 27 - Disable user registration 28 - Organize uploads by year/month 29 - Set default image link to "None" 30 - Discourage search engine indexing 31 - Set timezone 32 - Create static homepage 33 34 ### ⚡ Optimize Tab (Toggleable) 39 **Optimize Tab (Toggleable)** 35 40 36 41 These can be turned ON or OFF at any time: 37 42 38 **Performance** 39 - Disable WordPress emojis (~20KB savings) 40 - Disable oEmbed 41 - Remove jQuery Migrate 42 - Disable Dashicons on frontend 43 - Clean up wp_head 44 - Disable self-pingbacks 45 - Reduce Heartbeat frequency 43 * Disable WordPress emojis (~20KB savings) 44 * Disable oEmbed 45 * Remove jQuery Migrate 46 * Disable Dashicons on frontend 47 * Clean up wp_head 48 * Disable self-pingbacks 49 * Reduce Heartbeat frequency 50 * Disable XML-RPC 51 * Hide WordPress version 52 * Disable file editing 53 * Disable user enumeration 54 * Clean dashboard (keep only Site Health and At a Glance) 46 55 47 **Security** 48 - Disable XML-RPC 49 - Hide WordPress version 50 - Disable file editing 51 - Disable user enumeration 52 - Clean dashboard 56 == Installation == 53 57 54 ## How It Works 58 1. Upload the plugin files to `/wp-content/plugins/cleanup-wp/` or install via the WordPress plugins screen. 59 2. Activate the plugin through the 'Plugins' screen in WordPress. 60 3. Navigate to Tools → CleanUp WP. 61 4. Select cleanup tasks, preview, and execute. 62 5. Toggle optimizations on/off as needed. 55 63 56 1. **Install & Activate**: Upload via Plugins → Add New → Upload 57 2. **Navigate**: Go to Tools → CleanUp WP 58 3. **Cleanup Tab**: Select tasks, preview, execute 59 4. **Optimize Tab**: Toggle optimizations on/off as needed 60 5. **Done**: Optimizations stay active while plugin is installed 64 == Frequently Asked Questions == 61 65 62 ## File Structure 66 = Can I undo the cleanup tasks? = 63 67 64 ``` 65 cleanup-wp/ 66 ├── cleanup-wp.php # Bootstrap 67 ├── includes/ 68 │ ├── class-plugin.php # Core controller 69 │ ├── class-cleanup.php # One-time tasks 70 │ └── class-optimize.php # Toggleable optimizations 71 ├── assets/ 72 │ ├── css/admin.css 73 │ └── js/admin.js 74 ├── uninstall.php 75 └── README.md 76 ``` 68 No, cleanup tasks like deleting posts, pages, and plugins cannot be undone. Use the Preview button to see what will happen before executing. 77 69 78 ## Requirements 70 = Can I turn off optimizations? = 79 71 80 - WordPress 6.0+ 81 - PHP 7.4+ 72 Yes! The Optimize tab uses toggle switches. If something breaks, just flip it back off. 82 73 83 ## License 74 = What happens when I delete the plugin? = 84 75 85 GPLv2 or later 76 All plugin options are removed from the database. Optimizations will no longer be active. 86 77 87 ## Author 78 == Screenshots == 88 79 89 Aris Kuckovic - [BranchOut](https://branchout.dk/) 80 1. Cleanup tab with one-time tasks 81 2. Optimize tab with toggleable options 90 82 91 ## Changelog 83 == Changelog == 92 84 93 ### 2.2.0 85 = 2.2.0 = 94 86 * Complete rewrite with OOP architecture 95 87 * Split into multiple files (class-plugin, class-cleanup, class-optimize) … … 98 90 * One-time tasks now properly disabled after execution 99 91 100 ### 2.1.0 101 * Added tabbed interface 92 = 2.1.0 = 93 * Added tabbed interface (Cleanup, Optimize, Security, Settings) 102 94 * Added dashboard cleanup option 103 95 * Added Privacy Policy page deletion (ID: 3) 104 96 * Added persistent optimizations 105 97 106 ### 2.0.0 98 = 2.0.0 = 107 99 * Complete modernization from procedural to OOP 108 100 * Added admin interface with preview/execute workflow … … 111 103 * Tasks only run on explicit user action 112 104 113 ### 1.3 105 = 1.3 = 114 106 * Removes "Akismet Plugin" from Plugin directory 115 107 116 ### 1.2.2 108 = 1.2.2 = 117 109 * Now the plugin is checking whether you're using a child-theme or not. If so, the plugin will not delete any themes. 118 110 119 ### 1.2.1 111 = 1.2.1 = 120 112 * Updated ReadMe.txt 121 113 122 ### 1.2 114 = 1.2 = 123 115 * Disables user registration by default 124 116 * Renames "Uncategorized" category to "News" 125 117 * Disables commenting by default 126 118 127 ### 1.1 119 = 1.1 = 128 120 * Corrected the name of the plugin 129 121 130 ### 1.0 122 = 1.0 = 131 123 * Initial version of the plugin 124 125 == Upgrade Notice == 126 127 = 2.2.0 = 128 Major update with new toggleable optimizations. If upgrading from 1.x, your previous settings will be reset. -
cleanup-wp/trunk/cleanup-wp.php
r3443019 r3443030 2 2 /** 3 3 * Plugin Name: CleanUp WP 4 * Plugin URI: https://branchout.dk/ 4 * Plugin URI: https://branchout.dk/cleanup-wp 5 5 * Description: Clean up your fresh WordPress installation with one click. Remove demo content, set sensible defaults, and toggle performance optimizations. 6 6 * Author: Aris Kuckovic
Note: See TracChangeset
for help on using the changeset viewer.