Version: 1.0
Author: Aaditya Uzumaki
License: AAL-1.0
The Database and File Cleanup Utility is a WordPress plugin designed to enhance site performance and optimize storage by identifying and removing unused database tables and duplicate media files. This user-friendly tool simplifies the cleanup process through an intuitive admin interface.
- Database Analysis: Detect and safely delete abandoned database tables.
- Duplicate Media File Detection: Identify and remove duplicate media files such as images and PDFs.
- Bulk Actions: Easily select multiple items for deletion.
- AJAX-Powered Deletion: Ensure a seamless deletion process without page reloads.
- Glassmorphism UI: Enjoy a sleek and modern interface design.
- Download the plugin ZIP file or clone the repository.
- Navigate to the WordPress Admin Dashboard.
- Go to
Plugins
>Add New
>Upload Plugin
. - Upload the ZIP file and click
Install Now
. - Activate the plugin.
- Access the plugin via the WordPress Admin Dashboard under the "Database and File Cleanup" section.
- Database Analysis:
- Review the list of abandoned database tables.
- Select tables for deletion.
- Duplicate Media Files:
- View duplicate media files with details like name, location, size, and modification date.
- Select unwanted files for deletion.
- Click the Delete Selected Items button to remove the selected items.
- Displays a list of abandoned database tables with sizes.
- Provides a table view of duplicate media files with key attributes for review.
database-file-cleanup.php
: Main plugin file, includes initialization and lifecycle hooks.admin/admin-page.php
: Renders the plugin admin page with database and file listings.admin/admin-ajax.php
: Handles AJAX requests for item deletion.assets/css/glassmorphism.css
: Provides modern UI styling with a glassmorphism design.assets/js/admin.js
: Implements interactive functionality with jQuery.
plugins_loaded
: Initializes the plugin.register_activation_hook
: Executes tasks on plugin activation.register_deactivation_hook
: Handles cleanup tasks on deactivation.register_uninstall_hook
: Cleans up plugin data on uninstall.
- Nonce Validation: Prevents CSRF attacks during AJAX requests.
- User Permissions Check: Ensures only authorized users can delete items.
- Sanitization: All inputs are sanitized before processing.
The plugin employs a visually appealing glassmorphism design:
- Backdrop Blur: Enhances contrast while maintaining a modern aesthetic.
- Dynamic Hover Effects: Adds interactivity with smooth transitions.
- Responsive Design: Ensures usability across all devices.
Contributions are welcome! Follow these steps to contribute:
- Fork the repository.
- Create a feature branch (
git checkout -b feature-name
). - Commit your changes (
git commit -m "Add feature-name"
). - Push to the branch (
git push origin feature-name
). - Open a pull request.
This plugin is licensed under the AAL-1.0. See the LICENSE file for more details.
For issues or feature requests, contact the author at Aaditya Uzumaki.