[WordPress] 外掛分享: Performance Optimisation

首頁外掛目錄 › Performance Optimisation
全新外掛
安裝啟用
★★★★★
5/5 分(4 則評價)
32 天前
最後更新
問題解決
WordPress 6.2+ PHP 8.2+ v1.6.0 上架:2025-02-23

內容簡介

總結:「Performance Optimisation」通過提供緩存管理、JavaScript 和 CSS 最小化、圖像轉換、延遲載入、預加載等功能,幫助您優化網站速度。透過直觀的儀表板、詳細設定和有用工具,簡化您網站的性能優化。

問題與答案:
1. 這個 WordPress 外掛如何幫助優化網站速度?
- 回答:透過提供功能如緩存管理、JavaScript 和 CSS 最小化、圖像轉換、延遲載入、預加載等工具。

2. 這個外掛包含哪些設定和工具?
- 回答:包含有儀表板、緩存、JavaScript、CSS 和圖像優化狀態的一覽;緩存管理工具、JavaScript 和 CSS 最小化、圖像轉換、延遲載入、預加載等功能。

3. 如何查看最小化的 JavaScript 和 CSS 檔案數量?
- 回答:您可以在「儀表板總覽」中檢查最小化的 JavaScript 和 CSS 檔案數量。

4. 這個外掛使用哪些 Composer libraries?
- 回答:這個外掛使用了「voku/html-min」進行 HTML 最小化以及「matthiasmullie/minify」進行 JavaScript 和 CSS 最小化。

外掛標籤

開發者團隊

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

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

原文外掛簡介

Performance Optimisation helps you speed up your site with cache management, JavaScript and CSS minification, image conversion (WebP and AVIF), lazy loading, preload hints, and a modern admin UI. It is designed to stay off by default for aggressive options (defer/delay JS, WooCommerce asset removal, server rules) so you can enable features gradually and test as you go—similar to how you would tune Autoptimize or a caching stack, but with a focused, dashboard-first workflow.
Why use this plugin?

Clear scope: One place for cache stats, file optimisation, images, preload, and tools—without bundling unrelated features.
Safety-first UX: Advanced toggles show warnings; WooCommerce-related options remind you to test cart and checkout.
Core Web Vitals & PageSpeed: Lazy loading, minification, preconnect/prefetch, and image formats help real-world metrics—not just a higher score on a single lab test.

Features:

Dashboard with an overview of cache, JavaScript, CSS, and image optimisation status.
Cache management tools, including size display and a “Clear Cache” button.
JavaScript & CSS Optimization: Minify, combine, defer/delay (opt-in), and exclude specific files.
Core Tweaks: Safely disable Core bloat (Emojis, Embeds, Dashicons, XML-RPC, Heartbeat API).
Image optimization: Convert images to WebP and AVIF formats.
Preload settings for cache, fonts, DNS, and images.
Advanced lazy loading options.
Database Optimization: Clean database bloat manually or schedule automated cleanups (Daily/Weekly/Monthly) with granular control over post revisions.
Enterprise Redis Support: High-availability Object Cache with Sentinel, Cluster, and TLS/SSL support.
Performance Monitor: High-precision local telemetry for Core Web Vitals and network diagnostics.
System Info Dashboard: Real-time environment diagnostic tool for PHP, DB, and WordPress.
Import/export plugin settings.

Usage

Dashboard Overview

View cache size and clear cache.
Check the number of minified JavaScript and CSS files.
Monitor image optimisation (WebP/AVIF status).
Review recent plugin activities.

File Optimization Settings

Minify JavaScript, CSS, and HTML.
Combine CSS and exclude specific files.
Defer and delay JavaScript loading.
Core Tweaks: Disable emojis, embeds, XML-RPC, and control Heartbeat limits.

Preload Settings

Enable cache preloading.
Preconnect to origins and prefetch DNS.
Preload fonts, CSS, and images.

Image Optimisation Settings

Lazy load images with SVG placeholders.
Convert images to WebP/AVIF formats and exclude specific images.
Preload feature images for selected post types.

Database Cleanup

Schedule automatic cleanup for revisions, auto-drafts, and transients.
Keep recent revisions based on age or maximum count.
Clean all overhead in one click.

Tools

Import/export plugin settings for quick setup.

Composer Libraries
This plugin uses the following composer libraries:

voku/html-min – For HTML minification.
matthiasmullie/minify – For JavaScript and CSS minification.

Composer configuration:
{
"name": "nilesh/performance-optimisation",
"description": "A package for performance optimization, including HTML minification and code minification tools.",
"license": "GPL-2.0-or-later",
"authors": [
{
"name": "nilesh",
"email": "[email protected]",
"homepage": "https://github.com/nilesh32236"
}
],
"require": {
"voku/html-min": "^4.5",
"matthiasmullie/minify": "^1.3",
"woocommerce/action-scheduler": "^3.8"
},
"extra": {
"cleanup": {
"dirs": ["bin", "tests", "docs"],
"exclude": ["*.md", "*.yml", "*.xml", "tests", "docs"]
}
}
}

延伸相關外掛

文章
Filter
Mastodon