[WordPress] 外掛分享: Audit Export

首頁外掛目錄 › Audit Export
全新外掛
安裝啟用
尚無評分
100 天前
最後更新
問題解決
WordPress 6.2+ PHP 7.2+ v1.0.1 上架:2025-11-30

內容簡介

以下是對WordPress外掛“稽核匯出”的摘要以及相關問題與答案:

**摘要:**
Audit Export是一個全面的WordPress外掛程式,旨在幫助網站管理員和開發人員分析並報告其WordPress網站的實體結構和整體使用情況。該外掛提供了各種WordPress元件的詳細稽核,並允許您以多種格式匯出數據。

**關鍵功能:**
- 全面的站點稽核
- 多種匯出選項
- 遠端發佈
- WP-CLI整合
- 自動處理
- 可擴展架構

**問題與答案:**
1. 這個外掛的用途有哪些?
- 回答:它可用於生成WordPress網站結構的全面文檔、進行遷移規劃、跟蹤站點結構變化、向客戶提供詳細的站點分析報告以及從多個WordPress安裝中集中報告。

2. 這個外掛具有哪些匯出功能?
- 回答:報告可以保存到WordPress數據庫,匯出為CSV文件到文件系統,通過HTTP POST發送數據到遠程端點,並支持JSON和CSV格式。

3. 這個外掛如何集成WP-CLI?
- 回答:它提供完整的WP-CLI命令來執行所有操作,包括列出可用稽核報告、執行稽核和匯出報告、管理計時器等。

此外,您還可以從外掛中獲取插件版本、統計信息和配置狀態,以及設定關於文件匯出和計時器處理的相關設置。

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Audit Export」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Audit Export is a comprehensive WordPress plugin designed to help site administrators and developers analyze and report on the entity structure and overall usage of their WordPress site. The plugin provides detailed audits of various WordPress components and allows you to export this data in multiple formats.
Key Features

Comprehensive Site Auditing: Analyze plugins, themes, content types, taxonomies, menus, widgets, users & roles, and generate overall site reports
Multiple Export Options: Export audit reports as CSV files or store them in the database
Remote Posting: Send audit data to remote endpoints with authentication support
WP-CLI Integration: Full command-line interface for all plugin operations
Automated Processing: Schedule audits to run automatically via WordPress cron
Extensible Architecture: Hook-based system for adding custom audits and modifying behavior

Available Audits

Plugins Audit: Lists all installed plugins with status, version, and metadata
Themes Audit: Reports on installed themes and their configurations
Content Types Audit: Analyzes custom post types and their usage
Taxonomies Audit: Reviews all taxonomies including custom ones
Menus Audit: Examines navigation menu structures
Widgets Audit: Audits widget areas and active widgets
Users & Roles Audit: Reports on user accounts and role assignments
Site Report: Comprehensive overview of the WordPress installation

Export Capabilities

Save reports to the WordPress database
Export as CSV files to the filesystem
Send data to remote endpoints via HTTP POST
Support for JSON and CSV formats

Use Cases

Site Documentation: Generate comprehensive documentation of your WordPress site structure
Migration Planning: Analyze site components before migrations
Development Workflows: Track changes in site structure over time
Client Reporting: Provide detailed site analysis reports to clients
Multi-site Management: Centralize reporting from multiple WordPress installations

WP-CLI Integration
The plugin provides comprehensive WP-CLI commands for all operations:
List Available Audits
wp audit-export list

Shows all available audit reports with their ID, group, description, type, and last processed date.
Run Audits
wp audit-export run [] [--all] [--format=]

Examples:
* wp audit-export run – Interactive audit selection
* wp audit-export run --all – Process all audits
* wp audit-export run site_report – Run specific audit
* wp audit-export run content_types --format=csv – Run audit with specific output format
Export Audits
wp audit-export export [--file=] [--format=]

Examples:
* wp audit-export export site_report – Export to stdout
* wp audit-export export content_types --file=content_types.csv – Export to file
* wp audit-export export plugins --format=json --file=plugins.json – Export as JSON
Manage Cron
wp audit-export cron

Actions:
* status – Show cron status and next run time
* enable – Enable cron processing
* disable – Disable cron processing
* run – Manually trigger cron execution
* schedule – Schedule cron events
Test Remote Connection
wp audit-export test-connection

Tests the configured remote endpoint connection.
Force Remote Post
wp audit-export force-post

Manually post a specific audit to the remote endpoint.
Plugin Information
wp audit-export info

Displays plugin version, statistics, and configuration status.
Configuration
File Export Settings

Save to Filesystem: Enable/disable saving exports to files
Filesystem Type: Choose between uploads directory or content directory
Export Path: Subdirectory path for saving export files

Cron Settings

Enable Cron: Turn on automated audit processing
Run on Every Cron: Process audits on each WordPress cron execution
Cron Frequency: Set interval in minutes (if not running on every cron)
Queue Timeout: Maximum processing time per audit in seconds

Remote Post Settings
Basic Settings:
* Enable Remote Post: Turn on posting to remote endpoints
* Remote URL: Endpoint URL for receiving audit data
* Site Name: Identifier for this WordPress site
Authentication:
* Authentication Type: None, Basic, or Bearer Token
* Username/Password: For Basic Authentication
* Bearer Token: For token-based authentication
Advanced:
* Timeout: Request timeout in seconds (30-900)
* Verify SSL: SSL certificate verification
* Debug Mode: Enable detailed logging
Hooks and Filters
Actions

audit_export_complete – Fired after an audit completes processing
audit_export_before_process – Fired before processing an audit
audit_export_after_process – Fired after processing an audit

Filters

audit_export_post_url – Modify the remote post URL
audit_export_post_data – Modify data before remote posting
audit_export_post_site_info – Customize site information in remote posts
audit_export_post_request_args – Modify HTTP request arguments
audit_export_{audit_id}_headers – Customize CSV headers for specific audits
audit_export_{audit_id}_data – Modify audit data before saving

Developer Documentation
Creating Custom Audits
To create a custom audit:

Extend the Audit_Export_Audit abstract class
Implement required methods: prepare_data() and process_data()
Set audit properties: $label, $description, $group, $data_type
Register with the audit manager using the audit_export_register_audits action

Example:
class My_Custom_Audit extends Audit_Export_Audit {
protected $label = 'My Custom Audit';
protected $description = 'Audits custom functionality';
protected $group = 'custom';

public function prepare_data() {
// Return array of items to process
}

public function process_data( $item ) {
// Process individual item and return data row
}
}

Database Structure
The plugin creates a table {prefix}_audit_export_reports with columns:
* id – Primary key
* audit_name – Audit identifier
* audit_data – JSON-encoded audit results
* created_at – Timestamp
* created_by – User ID
Support
For bug reports and feature requests, please use the plugin support forum.
Privacy Policy
This plugin stores audit data in your WordPress database and optionally saves CSV files to your server. When remote posting is enabled, audit data is sent to configured external endpoints. No data is sent to third parties without explicit configuration.

文章
Filter
Apply Filters
Mastodon