[WordPress] 外掛分享: CPT Meta Size Analyzer

首頁外掛目錄 › CPT Meta Size Analyzer
WordPress 外掛 CPT Meta Size Analyzer 的封面圖片
全新外掛
安裝啟用
尚無評分
23 天前
最後更新
問題解決
WordPress 5.9+ PHP 7.2+ v1.0.2 上架:2025-04-13

內容簡介

CPT Meta Size Analyzer 是一款簡單而強大的外掛,提供 WordPress 文章的 meta 與內容大小的深入分析,幫助使用者監控各種文章類型(包括自訂文章類型)的數據。

【主要功能】
• 顯示每個選定文章類型的 meta 總數及其大小
• 顯示每篇文章的內容總數及其大小
• 可選擇顯示大小單位:Bytes、KB 或 MB
• 在文章列表中新增「Meta Size」欄位
• 可啟用/禁用文章類型以進行分析
• 清除快取數據以重新計算

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「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;
});

延伸相關外掛

文章
Filter
Mastodon