Title: CPT Meta Size Analyzer
Author: Hitesh Talpada
Published: <strong>Апрель 14, 2025-ж.</strong>
Last modified: Август 8, 2026-ж.

---

Плагиндерди издөө

![](https://ps.w.org/cpt-meta-size-analyzer/assets/banner-772x250.png?rev=3272697)

![](https://ps.w.org/cpt-meta-size-analyzer/assets/icon-256x256.png?rev=3272697)

# CPT Meta Size Analyzer

 Автору [Hitesh Talpada](https://profiles.wordpress.org/hiteshtalpada/)

[Жүктөө](https://downloads.wordpress.org/plugin/cpt-meta-size-analyzer.1.0.2.zip)

 * [Кенен маалымат](https://ky.wordpress.org/plugins/cpt-meta-size-analyzer/#description)
 * [Сын-пикирлер](https://ky.wordpress.org/plugins/cpt-meta-size-analyzer/#reviews)
 *  [Орнотуу](https://ky.wordpress.org/plugins/cpt-meta-size-analyzer/#installation)
 * [Development](https://ky.wordpress.org/plugins/cpt-meta-size-analyzer/#developers)

 [Колдоо](https://wordpress.org/support/plugin/cpt-meta-size-analyzer/)

## Сүрөттөө

**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).

#### Key Features:

 * **Meta Size Table**: Displays total meta entries and their size (Bytes, KB, MB)
   for each selected post type.
 * **Content Size Table**: Displays total post entries and their content size.
 * **Size Type Option**: Choose between Bytes, KB, or MB as the default unit to 
   display in post listings.
 * **Per Post Meta Size**: Adds a “Meta Size” column in post listings to show individual
   post meta size.
 * **Post Type Selection**: Enable/disable post types to include in analysis.
 * **Cache Control**: Clear cached data for fresh recalculation.
 * **Filter for Post Statuses**: Developers can customize which post statuses are
   included in size calculations using a filter.

#### Use Cases:

 * Detect unusually large meta data.
 * Analyze content storage usage.

### Filters

#### cptmesia_content_size_post_statuses

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;
    });
    ```

## Скриншоттор

[⌊Meta Setting - Select units (Bytes, KB, MB) and enable/disable post types.⌉⌊Meta
Setting - Select units (Bytes, KB, MB) and enable/disable post types.⌉[

**Meta Setting** – Select units (Bytes, KB, MB) and enable/disable post types.

[⌊Sizes Table - View total meta and content sizes by post type.⌉⌊Sizes Table - View
total meta and content sizes by post type.⌉[

**Sizes Table** – View total meta and content sizes by post type.

[⌊Meta Size Column in Post List - Individual post meta size with a 'View' button
for detailed info.⌉⌊Meta Size Column in Post List - Individual post meta size with
a 'View' button for detailed info.⌉[

**Meta Size Column in Post List** – Individual post meta size with a ‘View’ button
for detailed info.

[⌊Meta List Modal -  Displays a modal window showing all meta keys and meta value
for the selected post.⌉⌊Meta List Modal -  Displays a modal window showing all meta
keys and meta value for the selected post.⌉[

**Meta List Modal** – Displays a modal window showing all meta keys and meta value
for the selected post.

## Орнотуу

 1. Upload the plugin files to the `/wp-content/plugins/cpt-meta-size-analyzer` directory,
    or install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress.
 3. Configure display options in **Meta Analyzer > Meta Setting**.
 4. Go to **Meta Analyzer > Sizes Table** to view meta and content sizes.

## FAQ.KG

### 1. How is the post meta and content size calculated?

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.

### 2. Why does my post size show as 0 KB?

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.

### 3. What does the conversion formula look like?

The conversion formula used in the plugin is:
 – **KB Calculation**  `Total Bytes
÷ 1024` – **MB Calculation**  `Total Bytes ÷ (1024 × 1024)`

### 4. Why does the size change after clearing the cache?

When you clear the cache, the plugin recalculates the post meta and content sizes,
ensuring that any recent changes in the database are reflected.

### 5. Can I filter which post statuses are included in the calculations?

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; });

### 6. How do I troubleshoot incorrect size calculations?

 * Make sure your database tables are properly optimized.
 * Check if your hosting provider imposes any restrictions on querying large datasets.
 * Try clearing the cache and reloading the sizes.

### 7. Does this plugin affect website performance?

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.

### 8. Can I clear cached data?

Yes, you can click on the “Clear Cache” button to refresh and recalculate all meta
and content sizes.

### 9. What post types are supported?

By default, it supports Posts, Pages, and Products (WooCommerce), but you can enable
other custom post types from the plugin settings.

### 10. Can I include private or custom post statuses in calculations?

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.

## Сын-пикирлер

There are no reviews for this plugin.

## Contributors & Developers

“CPT Meta Size Analyzer” is open source software. The following people have contributed
to this plugin.

Мүчөлөрү

 *   [ Hitesh Talpada ](https://profiles.wordpress.org/hiteshtalpada/)
 *   [ Praful Patel ](https://profiles.wordpress.org/praful2111/)
 *   [ KrishaWeb ](https://profiles.wordpress.org/krishaweb/)

[Translate “CPT Meta Size Analyzer” into your language.](https://translate.wordpress.org/projects/wp-plugins/cpt-meta-size-analyzer)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/cpt-meta-size-analyzer/),
check out the [SVN repository](https://plugins.svn.wordpress.org/cpt-meta-size-analyzer/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/cpt-meta-size-analyzer/)
by [RSS](https://plugins.trac.wordpress.org/log/cpt-meta-size-analyzer/?limit=100&mode=stop_on_copy&format=rss).

## Өзгөртүүлөр

#### 1.0.0

 * Initial release
 * Meta size and content size analyzer
 * Size type option (Bytes, KB, MB)
 * Post type settings
 * Per-post meta size column in post list

#### 1.0.1

Addressed and resolved all reviewer feedback to ensure plugin compliance and improved
functionality.

#### 1.0.2

 * Tested compatibility with WordPress 7.0.2.
 * Fixed minor CSS compatibility issues.
 * Improved compatibility with recent WordPress versions.

## Мета

 *  Нуска **1.0.2**
 *  Акыркы жаңыртуу **2 күн мурун**
 *  Активдүү орнотуулар **Fewer than 10**
 *  WordPress нускасы ** 5.9 же андан жогору **
 *  Tested up to **7.0.3**
 *  PHP нускасы ** 7.2 же андан жогору **
 *  Тил
 * [English (US)](https://wordpress.org/plugins/cpt-meta-size-analyzer/)
 * Тег:
 * [custom post type](https://ky.wordpress.org/plugins/tags/custom-post-type/)[database optimization](https://ky.wordpress.org/plugins/tags/database-optimization/)
   [post meta](https://ky.wordpress.org/plugins/tags/post-meta/)[wordpress performance](https://ky.wordpress.org/plugins/tags/wordpress-performance/)
 *  [Advanced View](https://ky.wordpress.org/plugins/cpt-meta-size-analyzer/advanced/)

## Рейтинг

Азырынча эч кандай сын-пикир жок.

[Your review](https://wordpress.org/support/plugin/cpt-meta-size-analyzer/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/cpt-meta-size-analyzer/reviews/)

## Мүчөлөрү

 *   [ Hitesh Talpada ](https://profiles.wordpress.org/hiteshtalpada/)
 *   [ Praful Patel ](https://profiles.wordpress.org/praful2111/)
 *   [ KrishaWeb ](https://profiles.wordpress.org/krishaweb/)

## Колдоо

Комментарийлер барбы? Жардам керекпи?

 [Колдоо форумун көрүү](https://wordpress.org/support/plugin/cpt-meta-size-analyzer/)