Title: Database Monitor &amp; Cleanup
Author: Naveen Goyal
Published: <strong>29. juni, 2026</strong>
Last modified: 14. november, 2026

---

Søg plugins

![](https://ps.w.org/naveencodes-database-monitor/assets/banner-772x250.png?rev=
3589452)

![](https://ps.w.org/naveencodes-database-monitor/assets/icon-256x256.png?rev=3589452)

# Database Monitor & Cleanup

 Af [Naveen Goyal](https://profiles.wordpress.org/shinu1503/)

[Download](https://downloads.wordpress.org/plugin/naveencodes-database-monitor.1.0.2.zip)

 * [Detaljer](https://da.wordpress.org/plugins/naveencodes-database-monitor/#description)
 * [Vurderinger](https://da.wordpress.org/plugins/naveencodes-database-monitor/#reviews)
 *  [Installation](https://da.wordpress.org/plugins/naveencodes-database-monitor/#installation)
 * [Udvikling](https://da.wordpress.org/plugins/naveencodes-database-monitor/#developers)

 [Support](https://wordpress.org/support/plugin/naveencodes-database-monitor/)

## Beskrivelse

**NaveenCodes Database Monitor** is a professional, OOP-based plugin that gives 
WordPress site owners and developers complete visibility and control over their 
database.

#### Features

**Dashboard**
 * Animated circular health score (0–100) calculated from real overhead
and junk data * Database size, table count, total rows, and overhead — live-refreshing
every 60 seconds * Top-tables bar chart with animated fill * Quick actions: Run 
Cleanup / Optimize All

**Table Manager**
 * Full table list with data size, index size, overhead, row count,
and engine * Per-table Optimize and Repair with real-time status * Bulk “Optimize
All tables with overhead” with confirmation dialog * Live search/filter across all
table names

**Cleanup Tools**
 * 8 cleanup types — each with a live count and single-click clean:*
Post Revisions * Auto Drafts * Trashed Posts (with orphaned postmeta) * Spam Comments(
with orphaned commentmeta) * Trashed Comments * Expired Transients * Orphaned Post
Meta * Orphaned Comment Meta * “Run Full Cleanup” button runs all enabled types 
at once * Full cleanup history log with duration, items removed, and trigger source

**Query Runner**
 * SELECT-only safe query textarea with syntax hint * Ctrl+Enter
shortcut to run * 6 built-in quick-query templates * Results table with execution
time and row count

**Automated Maintenance**
 * Scheduled cleanup: daily, weekly, or monthly (WP-Cron)*
Scheduled table optimization: daily, weekly, or monthly * Per-type cleanup toggle—
enable only what you need * Weekly database health email report

**Settings**
 * Full control over all automation and email settings * Log retention:
configurable 7–365 days * Query Runner toggle (developer sites only)

**Design**
 * Animated database cylinder in page headers * Floating 3D cubes background
decoration * Responsive — works on all screen sizes

#### Free Forever

No upsells. No premium version. All features free, forever.

#### Privacy

This plugin does not collect or transmit any data outside your own WordPress site.
Email reports are sent only to the configured admin email address.

#### Need custom WordPress work?

This plugin is free, with no paid version, and it stays that way. If you need something
it doesn’t do, such as a custom plugin, an integration or help with a broken site,
I also take on custom development work for businesses and agencies: [naveencodes.com](https://naveencodes.com/wordpress-plugin-development/?utm_source=wordpress.org&utm_medium=readme&utm_campaign=naveencodes-database-monitor)

## Installation

 1. Upload the `naveencodes-database-monitor` folder to the `/wp-content/plugins/` 
    directory.
 2. Activate the plugin through the **Plugins** menu in WordPress.
 3. Navigate to **DB Monitor** in the admin sidebar.

## FAQ

### Is this plugin safe to use on production sites?

Yes. All cleanup operations use WordPress API functions and standard SQL with `$
wpdb->prepare()`. The Query Runner is restricted to SELECT queries only.

### Can I undo a cleanup?

Cleanup operations permanently delete data (revisions, drafts, spam, etc.). Always
take a database backup before running bulk operations.

### What does the Health Score measure?

The score starts at 100 and deducts points for overhead percentage, tables with 
>1 MB overhead, and total cleanable item count. A score of 80+ is excellent.

### Does it work with custom table prefixes?

Yes. All queries use `$wpdb` table properties and properly handle any table prefix.

## Anmeldelser

Der er ingen anmeldelser for denne widget.

## Bidragsydere & udviklere

“Database Monitor & Cleanup” er open source-software. Følgende personer har bidraget
til dette plugin.

Bidragsydere

 *   [ Naveen Goyal ](https://profiles.wordpress.org/shinu1503/)

[Oversæt “Database Monitor & Cleanup” til dit eget sprog.](https://translate.wordpress.org/projects/wp-plugins/naveencodes-database-monitor)

### Interesseret i udvikling?

[Gennemse koden](https://plugins.trac.wordpress.org/browser/naveencodes-database-monitor/),
tjek [SVN repository](https://plugins.svn.wordpress.org/naveencodes-database-monitor/),
eller abonner på [udviklerloggen](https://plugins.trac.wordpress.org/log/naveencodes-database-monitor/)
via [RSS](https://plugins.trac.wordpress.org/log/naveencodes-database-monitor/?limit=100&mode=stop_on_copy&format=rss).

## Ændringslog

#### 1.0.2

 * Plugin renamed from “NaveenCodes Database Monitor” to “Database Monitor & Cleanup”
   to describe what it does more clearly. No change to features or settings.

#### 1.0.1

 * Fixed: Dashboard widget CSS is now loaded via wp_add_inline_style() instead of
   an inline style tag.
 * Removed: Query Runner feature — removed in response to WP.org guidelines on raw
   SQL from user input.
 * Updated: Tested up to WordPress 7.0.

#### 1.0.0

 * Initial release.
 * Dashboard with animated health gauge and bar chart.
 * Table Manager with per-table optimize/repair.
 * Cleanup Tools for 8 junk data types.
 * Scheduled cleanup and optimization via WP-Cron.
 * Weekly email health report.
 * Full cleanup operation log.

## Meta

 *  Version **1.0.2**
 *  Senest opdateret **5 dage siden**
 *  Aktive installationer **Færre end 10**
 *  WordPress-version ** 6.5 eller højere **
 *  Testet op til **7.1.5**
 *  PHP-version ** 8.1 eller højere **
 *  Sprog
 * [English (US)](https://wordpress.org/plugins/naveencodes-database-monitor/)
 * Tags
 * [cleanup](https://da.wordpress.org/plugins/tags/cleanup/)[database](https://da.wordpress.org/plugins/tags/database/)
   [monitor](https://da.wordpress.org/plugins/tags/monitor/)[optimizer](https://da.wordpress.org/plugins/tags/optimizer/)
 *  [Avanceret visning](https://da.wordpress.org/plugins/naveencodes-database-monitor/advanced/)

## Bedømmelser

Der er endnu ikke indsendt nogen anmeldelser.

[Din anmeldelse](https://wordpress.org/support/plugin/naveencodes-database-monitor/reviews/#new-post)

[Se alle anmeldelser](https://wordpress.org/support/plugin/naveencodes-database-monitor/reviews/)

## Bidragsydere

 *   [ Naveen Goyal ](https://profiles.wordpress.org/shinu1503/)

## Support

Har du noget at sige? Har du brug for hjælp?

 [Vis supportforum](https://wordpress.org/support/plugin/naveencodes-database-monitor/)