這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

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.

螢幕截圖

  • WPCode Content Ratio > Purpouse and home ratio detail
  • WPCode Content Ratio > Config page

安裝

  1. Download WPCode Content Ratio for WordPress plugin ‘wpcode-content-ratio.zip’
  2. Login to WordPress and go to Plugins-> Add New -> Upload
  3. Click the Choose File button and select wpcode-content-ratio.zip from your hard drive.
  4. Click Install Now
  5. Once the plugin has been installed, click Activate.
  6. Check configuration options and adjust them.

METHOD 2 – FTP

  1. Download WPCode Content Ratio for WordPress plugin ‘wpcode-content-ratio.zip’. Extract the contents of the file.
  2. Using your favourite FTP client, upload the folder to ‘/wp-content/plugins/’ on your server.
  3. Login to your WordPress account and go to the Plugins page.
  4. Activate the plugin.
  5. Check configuration options and adjust them.

常見問題

Can I export ratio results?

By the moment you can’t, but this is option will be available soon.

What happen if I change my WordPress theme?

You should clear all old ratios or recalculate them in order to know if your template is good coded or not.
Soon would be available an option to clear all ratios just with one click.

評價

There are no reviews for this plugin.

貢獻者及開發者

“WPCode Content Ratio” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 WPCode Content Ratio 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

2.0

  • New look & Feel using bootstrap style.
  • Donation links fixed.
  • Author social networks.

1.0.1

  • Readme.txt was updated.
  • New screenshots added.