0+
August 8, 2026
April 14, 2025
CPT Meta Size Analyzer is a simple yet powerful plugin that provides insights into your WordPress post meta and content sizes. It helps you monitor and analyze meta and content data for various post types including custom post types (CPT).
This filter allows you to customize which post statuses are included in meta and content size calculations.
By default, the plugin includes ‘publish’ and ‘draft’.
Example: Add ‘private’ post status for calculation:
add_filter( 'cptmesia_content_size_post_statuses', function( $statuses ) {
$statuses[] = 'private'; // Include private posts.
return $statuses;
});
/wp-content/plugins/cpt-meta-size-analyzer directory, or install the plugin through the WordPress plugins screen directly.The plugin calculates the total size of post meta and content data by fetching all entries for a post type and summing their byte sizes. It then converts the size into KB (Kilobytes) and MB (Megabytes) for better readability.
If the total size is too small (less than 1 KB), rounding may result in a 0 KB display. The plugin provides precise calculations in bytes, KB, and MB, so even small values are accounted for.
The conversion formula used in the plugin is:
– KB Calculation Total Bytes ÷ 1024
– MB Calculation Total Bytes ÷ (1024 × 1024)
When you clear the cache, the plugin recalculates the post meta and content sizes, ensuring that any recent changes in the database are reflected.
Yes! The plugin allows filtering post statuses using the cptmesia_content_size_post_statuses filter:
add_filter( ‘cptmesia_content_size_post_statuses’, function( $statuses ) {
$statuses[] = ‘private’; // Include private posts.
return $statuses;
});
No, the plugin fetches data efficiently and uses caching to reduce database queries. However, if you have a large number of posts, calculations may take slightly longer.
Yes, you can click on the “Clear Cache” button to refresh and recalculate all meta and content sizes.
By default, it supports Posts, Pages, and Products (WooCommerce), but you can enable other custom post types from the plugin settings.
Yes, by default, only ‘publish’ and ‘draft’ posts are included. You can modify this using the cptmesia_content_size_post_statuses filter. See Filters section below for an example.
Addressed and resolved all reviewer feedback to ensure plugin compliance and improved functionality.