[WordPress] 外掛分享: DietPress

首頁外掛目錄 › DietPress
WordPress 外掛 DietPress 的封面圖片
2,000+
安裝啟用
★★★★★
5/5 分(36 則評價)
剛更新
最後更新
問題解決
WordPress 6.3+ PHP 7.4+ v3.1.0 上架:2017-10-16

內容簡介

Zero Config Performance Optimization 是一款完整的 WordPress 性能優化外掛,無需配置即可啟用,幫助網站加速並節省主機資源。透過一鍵優化,提升網站在各大性能測試工具中的表現。

【主要功能】
• 自動生成並注入關鍵 CSS
• 延遲載入 CSS 及圖片
• 支援 Brotli 壓縮以提升效能
• 自動預加載網站 Logo
• 控制數據庫暫存及查詢優化
• 簡化 .htaccess 規則以提升速度

外掛標籤

開發者團隊

⬇ 下載最新版 (v3.1.0) 或搜尋安裝

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

原文外掛簡介

DietPress puts your WordPress on a diet and speeds it up. It pairs a complete set of performance optimizations (the ones that used to ship in “Zero Config Performance Optimization”) with a clean, risk-based interface to disable the WordPress features you do not use. Everything is configurable, and the performance optimizations are already on by default, so you can simply activate and enjoy a faster site, or fine-tune every detail.

Coming from “Zero Config Performance Optimization”? This is the same plugin, now called DietPress and fully configurable. All your previous optimizations stay active by default; you just gained a settings page and a whole new set of WordPress-diet options.

By default WordPress loads functions, services and scripts that most sites do not need. They slow down loading times and consume hosting resources. DietPress lets you trim that fat and apply battle-tested performance tweaks, with a clear description of what each option does and what might break, organized by risk level so you always know what is safe.
TWO THINGS IN ONE PLUGIN
1. Performance optimizations (on by default)

Automatic Critical CSS inlined in the head (optional experimental deferral of non-critical CSS)
JavaScript defer parsing with smart dependency handling
Image loading attributes safety net: lazy loading, decoding=async and fetchpriority for images that bypass core
Automatic image dimensions for better CLS scores (including picture elements)
Resource hints: preconnect and DNS prefetch for common third-party origins
Theme stylesheet, critical fonts and logo preloading for a faster LCP
Google Fonts display=swap
RSS feed optimization (cache headers and item limit)
Server rules in .htaccess: browser caching, GZIP and Brotli compression, immutable cache headers, CORS for fonts and keep-alive (master switch plus per-feature toggles)
Database maintenance: daily expired-transient cleanup and safe query optimizations

2. Put WordPress on a diet (risk-based, opt-in)

Light (safe for any site): emojis, RSD/WLW tags, shortlinks, self-pingbacks, comment pagination, admin email check, and more
Moderate (evaluate first): oEmbed, jQuery Migrate, Dashicons on the frontend, Global Styles and Duotone, remote block patterns, avatars and Gravatar, comment threading, and more
Strict (site-specific): granular RSS feed control, Heartbeat API mode, post revisions and autosave, disable comments, XML sitemap, native lazy loading/fetchpriority, content types, and more
Widgets: dashboard widgets (including third-party ones from Yoast, WooCommerce, Elementor, Jetpack, Wordfence, Rank Math, Gravity Forms), classic sidebar widgets, block-editor widgets and the Customizer

SCALE, PROFILES AND ANALYZER

Savings indicator: HTTP requests removed, CSS/JS saved and active optimizations at a glance
Quick profiles: Personal Blog, WooCommerce Store, Landing Page and Maximum Cleanup
Site analyzer: personalized recommendations based on your active plugins and content
Import and export your whole configuration as a JSON file

COMPATIBILITY AND EXTENSIBILITY
The plugin includes filters for developers:

dietpress_critical_css – Customize the inline critical CSS
dietpress_critical_css_handles – Define which CSS handles are critical
dietpress_skip_defer_script_handles – Opt scripts out of the JavaScript defer
dietpress_skip_defer_style_handles – Opt stylesheets out of the CSS deferral
dietpress_preconnect_hints – Customize preconnect origins
dietpress_dns_prefetch_domains – Customize DNS prefetch domains
dietpress_critical_fonts – Define critical fonts to preload

Compatible with:

Well-coded themes and page builders (Divi, Elementor, Beaver Builder, Gutenberg)
Cache plugins (WP Rocket, LiteSpeed Cache, W3 Total Cache, WP Super Cache, etc.)
Security plugins (DietPress focuses on performance and deliberately leaves security to them; we recommend our free Vigilant)
CDNs (Cloudflare, StackPath, KeyCDN, etc.) thanks to CORS and Vary headers
WordPress Multisite

HOW TO VERIFY THE OPTIMIZATIONS

Cache rules: check your .htaccess for a block marked # BEGIN DietPress with immutable Cache-Control headers
Logo preload: view page source and look for pointing to your logo
Critical CSS: view source and look for

文章
Filter
Apply Filters
Mastodon