Skip to content

Core Support for Post Meta & Content Size Analysis #2462

@praful2111

Description

@praful2111

🚀 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:
    • Meta Size
    • Content Size
  • 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' ) );

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Not Started/Backlog 📆

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions