[WordPress] 外掛分享: Ratify

首頁外掛目錄 › Ratify
WordPress 外掛 Ratify 的封面圖片
10+
安裝啟用
尚無評分
2199 天前
最後更新
問題解決
WordPress 4.8+ PHP 7.1+ v1.1.1 上架:2018-02-18

內容簡介

這是一個外掛,可協助我們避免發佈具基本設定錯誤的網站,在 WordPress 網站中自動檢查常見問題的清單。

Ratify – 您的技術認證

這個小巧而不顯眼的外掛提供了一種快速方式來檢查技術 WordPress 設定問題,並在不需要被要求的情況下修復其中一些問題。例如:

驗證首頁是否具有有效的 Title tag
確認網站是否未封鎖機器人(Google)
確認網站和所有資產是否透過 HTTPS 提供
確認首頁是否進行了 gzip 壓縮
確認首頁的圖片是否具有 ALT 屬性

確認首頁是否具有 H1、H2、H3 等標籤
確認首頁上的 HTML 是有效的
確認首頁上的 HTML 具有 Open Graph 標籤

更多更多

在大多數情況下,只需安裝此外掛,即可提高您的 Google Lighthouse 分數。

Ratify 的故事

為什麼?

當您每週創建超過 1 個網站(如 Secret Source Technology 所做的那樣),並在每個網站上使用不同的高級主題時,會出現數十甚至數百個問題。

Ratify 外掛是我們正式化質量控制的最新嘗試。它是我們保證網站達到某個最低質量的保證。它大大減少了人為錯誤的潛在可能性,讓您一眼就能看到網站可能存在的問題。

此外掛:

開始時是一個擁有近百個行項目的試算表
成為一個 bash 腳本
然後是帶有圖形 Web 前端的 bash 腳本
然後是 Selenium 自動測試腳本(用於測試表單)
接著成為帶有 Herbert 框架的外掛程式
然後成為使用 WordPress 外掛模板(當前版本)的外掛程式

此外掛程式結構非常基本,只需簡單地添加測試(如果您知道如何編寫面向對象的 PHP,請查看“Models”文件夾…)。將來的版本中,我們希望包括其他測試和加速您的網站的改進。我們非常樂意聽取此外掛程式的用戶反饋,請隨時與我們聯繫以提出問題/關注事項。

安裝

安裝此外掛程式沒有特別要求,只需使用標準的 WordPress 外掛程式安裝程序即可。

常見問題解答

(正在等待用戶回饋…目前沒有常見問題。)

屏幕截圖

這是來自一個不是很好的網站的樣本報告

版權

“批准”圖章經授權使用。(來源)

貢獻

我們正在遵循此便條,將 github 用作主存儲庫。

如果您發現此外掛程式的問題,請使用 github 的問題跟踪系統提交支票。
請務必說明問題是什麼,重現步驟,期望的行為以及實際的行為。

開發人員的有用鏈接

https://wordpress.stackexchange.com/questions/63668/autoloading-namespaces-in-wordpress-plugins-themes-can-it-work
https://wordpress.stackexchange.com/questions/307345/translate-a-constant-while-appeasing-wordpress-phpcs

更新日誌

1.1.1 – 修復合法標題未能通過標題測試的問題
1.1 – 完全符合 PHPCS

外掛標籤

開發者團隊

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

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

原文外掛簡介

A plugin that helps keep us from publishing sites with basic configuration errors. It is an automated checklist of common issues in WordPress sites.
Ratify – Your technical seal of approval
This small and unintrusive plugin provides a fast way to spot technical WordPress configuration issues and fixes some of them without being asked. Examples include:

verifying that the home page has a valid Title tag
verifying that the site is not blocking robots (Google)
verifying that the site and all assets are being delivered over HTTPS
verifying that the home page is delivered gzipped (compressed)
verifying that images on the home page have ALT attributes

that the home page has H1, H2, H3, etc. tags
that the HTML on the home page is valid
that the HTML on the home page has Open Graph tags

much, much more

In most cases the plugin can improve your Google Lighthouse score simply by installing it.
The story of Ratify
Why?
When you create more than 1 site per week (as we have at Secret Source Technology) using a different premium theme on each site, there are dozens or even hundreds of issues that can arise.
The Ratify plugin is our latest attempt at formalizing our quality control. It is our guarantee that a site meets a certain minimum of quality. It greatly reduces the potential for human error and allows you to see at a glance issues the site may be having.
This plugin:

Started as a spreadsheet with nearly one hundred line items
Turned into a bash script
Then a bash script with a graphic web front end
Then into Selenium automated test script (for testing forms)
Then into a plugin using the Herbert framework
Then into a plugin using the WordPress Plugin Boilerplate (current version)

The plugin structure is very basic and tests can be added simply (if you know how to write object oriented PHP – have a look in the “Models” folder…). In future versions we hope to include additional tests and speed improvements for your site. We are very interested in hearing from users of the plugin so please do not hesitate to contact us with questions / concerns.
Installation
There are no special requirements to install this plugin. Just use the standard WordPress plugin installation routine.
Frequently Asked Questions
(waiting for feedback from users… there are no FAQs at this time)
Screenshots

This is a sample report from a site that is not very good

Copyright
The “approved” stamp used with permission.
Contributing
We’re following this gist to use github as the master repository.
If you find an issues with this plugin, please submit tickets using github’s issue tracking system.
Be sure to state what the problem is, the steps to reproduce, the expected behavior and the actual behavior.
Helpful Links for Developers

https://wordpress.stackexchange.com/questions/63668/autoloading-namespaces-in-wordpress-plugins-themes-can-it-work
https://wordpress.stackexchange.com/questions/307345/translate-a-constant-while-appeasing-wordpress-phpcs

Changelog
1.1.1 – Fixed an issue in which valid headings were failing the headings test
1.1 – Completely PHPCS valid following all WordPress coding style guidelines.
1.0.4 – Fixed file names to be PHPCS compliant. Also fixed other phpcs compliance issues throughout
1.0.3 – Moved the master repository to github
1.0.2 – Fixed some readme formatting
1.0.1 – Fixed formatting in readme and made it pretty and tweaked the test for Google Analytics (in the prior version)
1.0 – Initial release

延伸相關外掛

文章
Filter
Apply Filters
Mastodon