NextGEN Gallery can leave orphaned records in the database. This plugin checks for orphaned records and give you the option to delete them.
As of April 2026, pqInternet's NextGEN Database Analysis and Clean-up Tool is a WordPress ngg plugin with 10 active installations and a 5/5 rating from 1 reviews. It has been downloaded 1.9K+ times in total. Requires WordPress 4.6+ and PHP 5.2.4+. Available on WordPress.org since 2018. Last updated 8 years ago — may have compatibility concerns.
NextGEN Gallery is one of the best, if not THE best image gallery plugins for WordPress. I’ve used it for years on many sites. However I’ve noticed a problem, a bug if you will, that leaves “orphaned” records in the WordPress database. I’ve reported this to Imagely and they’re looking into it.
Using NextGEN Gallery can leave orphaned records in the posts and posts meta database tables, especially if you add and delete galleries often. It appears to me that the orphaned records are created during upload, so if you add images often they will build up over time. I noticed this on a site where I upload hundreds of images a week and started noticing the database backups were extremely large. I started looking for what was causing the huge size of some o…
| WordPress | 4.6+ requiredTested up to 4.9.29 |
| PHP | 5.2.4+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.