🚀 Feature Description: Core Support for Post Meta & Content Size Analysis
Summary
Introduce a standardized mechanism in WordPress core (or Performance plugin) to analyze and monitor post meta and content size across post types, including custom post types (CPTs).
Background
Plugins like CPT Meta Size Analyzer highlight the need for visibility into how much data is stored in postmeta and post_content. Large or unoptimized metadata can negatively impact database performance, query efficiency, and scalability.
Currently, WordPress does not provide built-in tools to:
- Measure meta size per post or post type
- Monitor content size distribution
- Identify unusually large entries
Problem
The lack of native tooling creates several challenges:
- No built-in way to audit
wp_postmeta growth
- Difficult to detect performance bottlenecks caused by large meta values
- Limited visibility into content storage footprint
- No standardized API for size calculations
Proposed Solution
Introduce a core-supported feature (or Performance plugin module) with the following capabilities:
1. Post Meta Size Metrics
- Calculate total meta size per post
- Aggregate meta size per post type
- Display size in configurable units (Bytes, KB, MB)
2. Content Size Metrics
- Compute total and per-post
post_content size
- Provide summaries per post type
3. Admin UI Enhancements
- Add optional columns in post list tables:
- Provide an overview dashboard (Tools page or Site Health integration)
4. Developer APIs & Hooks
Provide extensibility via filters such as:
apply_filters( 'wp_content_size_post_statuses', array( 'publish', 'draft' ) );
🚀 Feature Description: Core Support for Post Meta & Content Size Analysis
Summary
Introduce a standardized mechanism in WordPress core (or Performance plugin) to analyze and monitor post meta and content size across post types, including custom post types (CPTs).
Background
Plugins like CPT Meta Size Analyzer highlight the need for visibility into how much data is stored in
postmetaandpost_content. Large or unoptimized metadata can negatively impact database performance, query efficiency, and scalability.Currently, WordPress does not provide built-in tools to:
Problem
The lack of native tooling creates several challenges:
wp_postmetagrowthProposed Solution
Introduce a core-supported feature (or Performance plugin module) with the following capabilities:
1. Post Meta Size Metrics
2. Content Size Metrics
post_contentsize3. Admin UI Enhancements
4. Developer APIs & Hooks
Provide extensibility via filters such as: