[WordPress] 外掛分享: WPCode Content Ratio

首頁外掛目錄 › WPCode Content Ratio
WordPress 外掛 WPCode Content Ratio 的封面圖片
100+
安裝啟用
★★★★★
5/5 分(1 則評價)
4336 天前
最後更新
問題解決
WordPress 3.1+ v2.0 上架:2012-11-13

內容簡介

代碼到文本比(Code to Text Ratio)代表網頁中實際文本所占的百分比。本外掛可以從 HTML 代碼中提取所有頁面和文章的文本,並根據這些信息計算內容比例。

為什麼這很重要?

網頁的代碼到文本比被搜索引擎和蜘蛛用於計算網頁的相關性。高的代碼到文本比可以增加網頁的搜尋排名機會。

並非所有的搜索引擎都會在他們的搜尋排名算法中使用代碼到文本比,但大多數都會。因此,如果你的代碼到文本比高於競爭對手,你就有了開始進行網站內部優化的好機會。

% 比例及其含義:

0% – 10%:考慮增加更多內容或重新編寫代碼。
10% – 25%:內容適中,但仍有改進空間。
25% – 70%:通常良好,但不要過度。
70% – 100%:如果你的代碼到文本比高於約 70%,那麼你的文本就會比代碼多;這聽起來可能很好,但也可能代表垃圾郵件。

減少網頁代碼的方法

使用 CSS 佈局而非基於表格的佈局。
將 CSS 和 Javascript 放入外部文件中。
移除沒有用途的標籤。
使用有效的代碼。畢竟,得分 25% 的網頁在所有地方都運行良好,通常比得分 50% 但在大多數瀏覽器中失敗的網頁更好。
在文章中撰寫更多文本。

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.0) 或搜尋安裝

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

原文外掛簡介

The Code to Text Ratio represents the percentage of actual text in a web page. This plugin extracts the text of all your pages and posts from HTML code and calculates the content ratio based on this information.
Why is it important?
The code to text ratio of a page is used by search engines and spiders to calculate the relevancy of a web page. A higher code to text ratio gives you a better chance of getting a good page ranking for your page.
Not all search engines are using the code to text ratio in their index algorithm, but most of them do. So having a higher code to text ratio than your competitors gives you a good start for on-site optimization.
% Ratios and meanings:

0% – 10%: Consider adding more content or revamping your code.
10% – 25%: Content is moderate, but always room to improve.
25% – 70%: Generally good, but don’t over do it.
70% – 100%: If you’ve got higher than about 70% or so then you’ve got a lot of text and not a lot of code, which might sound like a good thing, but could represent spam too.

Ways to lower the amount of code on a web page

Use CSS layouts instead of table-based layouts.
Put CSS and Javascript into external files.
Take out tags that have no purpose.
Use valid code. After all, a page scoring 25% which works everywhere is usually better than one which scores 50% but fails in most browsers.
Write more text on your posts.

文章
Filter
Mastodon