Title: Disk Space Pie Chart
Author: Jay Versluis
Published: <strong>2011 年 1 月 2 日</strong>
Last modified: 2013 年 12 月 13 日

---

搜尋外掛

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

![](https://s.w.org/plugins/geopattern-icon/disk-space-pie-chart.svg)

# Disk Space Pie Chart

 由 [Jay Versluis](https://profiles.wordpress.org/versluis/) 開發

[下載](https://downloads.wordpress.org/plugin/disk-space-pie-chart.0.6.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/disk-space-pie-chart/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/disk-space-pie-chart/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/disk-space-pie-chart/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/disk-space-pie-chart/#developers)

 [技術支援](https://wordpress.org/support/plugin/disk-space-pie-chart/)

## 外掛說明

Shows your free and used server space as funky Pie Chart in your backend. Sweet!

Following the success of my server space script for one of my clients, I thought
it would be great to use it under WordPress.

This Plugin was inspired by Richard who came to host with me after being on WordPress.
com for some years. He really liked to keep track of how much space he has left 
to upload pictures and I was happy to take on this challenge.

Special thanks again to Rasmus Peters for his amazing PHP Pie Chart Script

## 螢幕擷圖

[⌊This screenshot illustrates the new box you'll get in the Dashboard⌉⌊This screenshot
illustrates the new box you'll get in the Dashboard⌉[

This screenshot illustrates the new box you’ll get in the Dashboard

[⌊Here's what the funky Pie Chart diagramme looks like. In the admin screen you'll
be able to enter your total available space. It also shows how big your databse 
is.⌉⌊Here's what the funky Pie Chart diagramme looks like. In the admin screen you'll
be able to enter your total available space. It also shows how big your databse 
is.⌉[

Here’s what the funky Pie Chart diagramme looks like. In the admin screen you’ll
be able to enter your total available space. It also shows how big your databse 
is.

## 安裝方式

 1. Upload the entire folder `disk-space-pie-chart` to the `/wp-content/plugins/` directory.
    Please do not rename this folder.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Enjoy a progress bar in the Dashboard and a Pie Chart under Dashboard – Disk Space
    Pie

The Plugin can tell you how much space you’re using, but it doesn’t know how much
space you’re ALLOWED to use. Hence it can only display the progress bar and pie 
chart diagramme if you honestly tell it. You should always be honest by the way,
even with plugins 😉

To do so, go to Dashboard – Disk Space Pie and type in the amount of web space you’re
allowed to use. Say you have 1GB of web space, put in 1 and hit Save Changes. Easy.

If you know your value in MB, you need to divide this value by 1024 to arrive at
the equivalent GB value. For example, 100MB divided by 1024 is 0.09765625 – that’s
the value to use in the box. You get the drift.

If you enter a number smaller than the amount of space you’re using, you’ll see 
something like 105% space free – which obviously isn’t what you want. So don’t do
that.

## 常見問題集

### What’s required server side for this plugin to run?

Since I’m using shell commands to count the files you’re using in your current directory,
this Plugin only works on Linux servers – NOT on Windows servers.
 For the Pie Chart
display to work, your server needs to have GD 2.0.1 or later installed with JPG 
Support enabled.

### Does this Plugin run on Windoes Servers?

I’m afraid not – you have to be on a Linux server for this to work. I’ve developed
and tested it on CentOS / RHEL.

### I’ve noticed my Dashboard is slow. What gives?

In order to determine your used disk space ‘live’ and at all times, the server physically
counts every file in all your directories every time the Dahsboard or admin screen
is called. On larger installations or slow servers this can take some time so you
may notice a slight delay upon loading the page. This is normal yet annoying.

To minimise this issue, just close the dahsboard window using the little arrow in
the top right corner. Alternatively, click on Screen Options and disable the widget
by unticking the box.

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈Disk Space Pie Chart〉的開發相關工作。

參與者

 *   [ Jay Versluis ](https://profiles.wordpress.org/versluis/)

[將〈Disk Space Pie Chart〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/disk-space-pie-chart)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/disk-space-pie-chart/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/disk-space-pie-chart/)，或透過
[RSS](https://plugins.trac.wordpress.org/log/disk-space-pie-chart/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/disk-space-pie-chart/)。

## 變更記錄

#### 0.6

 * Tweaked Pie Chart background colour to match WordPress 3.8
 * Added link to GPL license

#### 0.5

 * Fixed Division by Zero bug (thanks Jure!)
 * Tweaked some colours to better blend with WordPress Core
 * Added MySQL Server Version

#### 0.4

 * Fixed dashboard widget display in WordPress 3.2 (Thanks Dan!)
 * Replaced hard coded links with dynamic ones
 * Updated Folder Structure in accordance with WordPress Best Coding Standards
 * Added default unit value for first-time-user (now defaults to GB rather than 
   nothing)
 * Changed Donation Link (Buy me a Coffee)

#### 0.3

 * Certified WordPress 3.1 readiness.
 * Added Unlimited Option: On some hosts (like Hostgator) you’ll get “unlmited” 
   disk space. I’ve amended the plugin so that you can enter 0 or leave the space
   blank. You’ll always have 100% free space and the pie chart won’t get confused.

#### 0.2

 * Added a drop-down menu so you an easily choose if you’d like things displayed
   in MB or GB.
 * Added Database Size Count courtesy of Chris Rabiet’s WP Database Plugin (https://
   wordpress.org/extend/plugins/db-size/)
 * Added numeric display of space underneath pie charts – like in the dashboard 
   widget.

#### 0.1

Driven by Richard’s suggestion, I’ve used Alex Rabe’s WP Memory Usage Plugin as 
template and several WordPress tutorials on how to build plugins. Within a few hours,
the basis was established. Then I integrated Rasmus Peter’s Pie Chart Script and
made it all work together. Code Cleanup followed: renaming functions, hooks, variables,
deleting code that’s not needed.

## 中繼資料

 *  版本 **0.6**
 *  最後更新 **13 年前**
 *  啟用安裝數 **20+**
 *  WordPress 版本需求 ** 2.7 或更新版本 **
 *  已測試相容的 WordPress 版本 **3.8.41**
 *  語言
 * [English (US)](https://wordpress.org/plugins/disk-space-pie-chart/)
 * 標籤:
 * [disk space](https://tw.wordpress.org/plugins/tags/disk-space/)[pie chart](https://tw.wordpress.org/plugins/tags/pie-chart/)
   [web space](https://tw.wordpress.org/plugins/tags/web-space/)
 *  [進階檢視](https://tw.wordpress.org/plugins/disk-space-pie-chart/advanced/)

## 評分

 3 星，滿分為 5 星

 *  [  0 個 5 星使用者評論     ](https://wordpress.org/support/plugin/disk-space-pie-chart/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/disk-space-pie-chart/reviews/?filter=4)
 *  [  1 個 3 星使用者評論     ](https://wordpress.org/support/plugin/disk-space-pie-chart/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/disk-space-pie-chart/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/disk-space-pie-chart/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/disk-space-pie-chart/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/disk-space-pie-chart/reviews/)

## 參與者

 *   [ Jay Versluis ](https://profiles.wordpress.org/versluis/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/disk-space-pie-chart/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=34B76TPRWMWAE)