PluginProbe ʕ •ᴥ•ʔ
WP-Sweep / trunk
WP-Sweep vtrunk
trunk 1.0.10 1.0.11 1.0.12 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 1.1.2 1.1.3 1.1.5 1.1.6 1.1.7 1.1.8 1.1.9
wp-sweep / readme.txt
wp-sweep Last commit date
inc 3 years ago js 9 years ago CLAUDE.md 1 month ago admin.php 7 years ago composer.json 6 years ago composer.lock 6 years ago index.php 7 years ago readme.txt 1 month ago uninstall.php 7 years ago wp-sweep.php 1 month ago
readme.txt
208 lines
1 # WP-Sweep
2 Contributors: GamerZ
3 Donate link: https://lesterchan.net/site/donation/
4 Tags: sweep, clean, cleanup, clean up, optimize, orphan, unused, duplicated, posts, post meta, comments, comment meta, users, user meta, terms, term meta, term relationships, revisions, auto drafts, transient, database, tables, oembed
5 Requires at least: 4.6
6 Tested up to: 7.0
7 Stable tag: 1.1.9
8 License: GPLv2 or later
9 License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
11 WP-Sweep allows you to clean up unused, orphaned and duplicated data in your WordPress. It also optimizes your database tables.
12
13 ## Description
14 This plugin cleans up:
15
16 * Revisions
17 * Auto drafts
18 * Deleted comments
19 * Unapproved comments
20 * Spammed comments
21 * Deleted comments
22 * Orphaned post meta
23 * Orphaned comment meta
24 * Orphaned user meta
25 * Orphaned term meta
26 * Orphan term relationships
27 * Unused terms
28 * Duplicated post meta
29 * Duplicated comment meta
30 * Duplicated user meta
31 * Duplicated term meta
32 * Transient options
33 * Optimizes database tables
34 * oEmbed caches in post meta
35
36 This plugin uses proper WordPress delete functions as much as possible instead of running direct delete MySQL queries.
37
38 Following delete functions are used:
39
40 * wp_delete_post_revision()
41 * wp_delete_post()
42 * wp_delete_comment()
43 * delete_post_meta()
44 * delete_comment_meta()
45 * delete_user_meta()
46 * delete_term_meta()
47 * wp_remove_object_terms()
48 * wp_delete_term()
49 * delete_transient()
50 * delete_site_transient()
51
52 WP-Sweep WP REST API Endpoints
53 * `GET /wp-json/sweep/v1/count/<Name>`. Get the number of items that we will be sweeping.
54 * `GET /wp-json/sweep/v1/details/<Name>`. Get the details of the items that we will be sweeping.
55 * `DELETE /wp-json/sweep/v1/sweep/<Name>`. Runs sweep for that particular item.
56
57 WP-Sweep WP-CLI Commands
58 * `wp sweep --all`. Runs sweep for all items.
59 * `wp sweep <Name>`. Runs sweep for that particular item.
60 * `wp sweep <Name1> <Name2>`. Run sweep for the selected items.
61
62 WP-Sweep Available Items:
63 * revisions
64 * auto_drafts
65 * deleted_posts
66 * unapproved_comments
67 * spam_comments
68 * deleted_comments
69 * transient_options
70 * orphan_postmeta
71 * orphan_commentmeta
72 * orphan_usermeta
73 * orphan_termmeta
74 * orphan_term_relationships
75 * unused_terms
76 * duplicated_postmeta
77 * duplicated_commentmeta
78 * duplicated_usermeta
79 * duplicated_termmeta
80 * optimize_database
81 * oembed_postmeta
82
83 WP-Sweep is not compatible with the following plugins:
84 * [Custom Fonts](https://wordpress.org/plugins/custom-fonts/)
85 * [Elementor Popup Builder](https://elementor.com/features/popup-builder/)
86 * [MailPress](https://wordpress.org/plugins/mailpress/)
87 * [Meta Slider](https://wordpress.org/support/plugin/ml-slider/)
88 * [Polylang](https://wordpress.org/plugins/polylang/)
89 * [Slider Revolution](https://revolution.themepunch.com/)
90 * [Viba Portfolio](https://codecanyon.net/item/viba-portfolio-wordpress-plugin/9561599)
91 * [WPML](https://wpml.org/)
92
93 ### Build Status
94 [![Code Climate](https://codeclimate.com/github/lesterchan/wp-sweep/badges/gpa.svg)](https://codeclimate.com/github/lesterchan/wp-sweep)
95 [![Issue Count](https://codeclimate.com/github/lesterchan/wp-sweep/badges/issue_count.svg)](https://codeclimate.com/github/lesterchan/wp-sweep)
96
97 ### Development
98 * [https://github.com/lesterchan/wp-sweep](https://github.com/lesterchan/wp-sweep "https://github.com/lesterchan/wp-sweep")
99
100 ### Credits
101 * Plugin icon by [Freepik](http://www.freepik.com) from [Flaticon](http://www.flaticon.com)
102
103 ### Donations
104 I spent most of my free time creating, updating, maintaining and supporting these plugins, if you really love my plugins and could spare me a couple of bucks, I will really appreciate it. If not feel free to use it without any obligations.
105
106 ## Changelog
107 ### 1.1.9
108 * NEW: Bump WordPress 7.0
109 * NEW: Add CLAUDE.md
110
111 ### 1.1.8
112 * FIXED: Added current_user_can() Check For AJAX Calls
113
114 ### 1.1.7
115 * FIXED: Pass in default blank string to fix fatal error
116
117 ### 1.1.6
118 * NEW: Re-org wp-sweep.php to inc/class-wpsweep.php
119 * NEW: Bump to WordPress 6.2
120
121 ### 1.1.5
122 * NEW: Bump to WordPress 5.8
123
124 ### 1.1.4
125 * FIXED: Replaced %\_transient\_% with %\\\_transient\\\_%. Escape _ in MySQL if not it is being used as a wildcard character. Props @janrenn.
126
127 ### 1.1.3
128 * FIXED: Changed permissions check to `activate_plugins` because `update_plugins` will return false when DISALLOW_FILE_MODS=true.
129
130 ### 1.1.2
131 * NEW: Changed permission check to `update_plugins` for better MultiSite compatibility.
132 * NEW: Bump min PHP version to 5.6.
133
134 ### 1.1.1
135 * NEW: `wp_sweep_excluded_termids` filter.
136
137 ### 1.1.0
138 * NEW: Added WP Rest API Endpoint support, `sweep/v1/count/<Name>`, `sweep/v1/details/<Name>`, and `sweep/v1/sweep/<Name>`
139 * FIXED: Follow as close as possible to WordPress Coding Standards
140
141 ### 1.0.12
142 * NEW: Bump to WordPress 4.9
143 * NEW: Update README to incompatible plugins
144
145 ### 1.0.10
146 * FIXED: Invalid plugin head 'This plugin has an invalid header.'
147
148 ### 1.0.9
149 * NEW: Support for Codeclimate
150 * FIXES: Uses `get_sites()` on WordPress 4.6. This should fix deprecated notices.
151 * FIXES: Fixes translation placeholder count. Props @pedro-mendonca.
152 * FIXES: Use `manage_options` capability as it conflicts with Admin Menu Editor on multisite installs. Props @EusebiuOprinoiu.
153
154 ### 1.0.8
155 * NEW: Added wp_sweep_excluded_taxonomies filter to allow more than just link_category taxonomy
156 * NEW: Support for WP-CLI `wp sweep`
157
158 ### 1.0.7
159 * FIXES: Use custom query to delete Orphaned Term Relationship if wp_remove_object_terms() fails
160
161 ### 1.0.6
162 * NEW: Delete 'languages' folder from the plugin
163 * NEW: Use translate.wordpress.org to translate the plugin
164 * FIXED: Works only with WordPress 4.4 because of new term meta
165
166 ### 1.0.5
167 * FIXED: apply_filters() wrong arguments
168
169 ### 1.0.4
170 * NEW: oEmbed caches in post meta Sweep
171 * NEW: Add POT file for translators
172
173 ### 1.0.3
174 * NEW: AJAX Sweep All
175 * NEW: AJAX Sweeping
176 * NEW: View details of sweep
177 * NEW: Optimize DB sweep
178 * NEW: User hint and confirmation. Props @SiamKreative
179 * FIXED: Division by zero. Pros @barisunver
180
181 ### 1.0.2
182 * FIXED: Use term_id for wp_remove_object_terms()
183 * FIXED: number_format_i18n() issues after sweeping
184
185 ### 1.0.1
186 * NEW: Moved plugin location to WP-Admin -> Tools -> Sweep
187 * NEW: Add Deleted Post Sweep
188 * FIXED: Use forced_delete for wp_delete_post() and wp_delete_comment();
189 * FIXED: If orphaned meta has an object id of 0, use SQL query to delete
190
191 ### 1.0.0
192 * Initial release
193
194 ## Installation
195 1. Upload `wp-sweep` folder to the `/wp-content/plugins/` directory
196 2. Activate the `WP-Sweep` plugin through the 'Plugins' menu in WordPress
197 3. You can access `WP-Sweep` via `WP-Admin -> Tools -> Sweep`
198
199 ## Screenshots
200 1. WP-Sweep Administrator Page (Before Sweeping)
201 2. WP-Sweep Administrator Page (Swept)
202
203 ## Frequently Asked Questions
204 Coming soon ...
205
206 ## Upgrade Notice
207 N/A
208