Title: WP Year End Stats
Author: Sudar Muthu
Published: <strong>2008 年 6 月 8 日</strong>
Last modified: 2014 年 12 月 29 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/wp-yearendstats.svg)

# WP Year End Stats

 作者：[Sudar Muthu](https://profiles.wordpress.org/sudar/)

[下载](https://downloads.wordpress.org/plugin/wp-yearendstats.1.0.zip)

 * [详情](https://cn.wordpress.org/plugins/wp-yearendstats/#description)
 * [评价](https://cn.wordpress.org/plugins/wp-yearendstats/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/wp-yearendstats/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/wp-yearendstats/#developers)

 [支持](https://wordpress.org/support/plugin/wp-yearendstats/)

## 描述

Displays fancy stats about your blog which you can include in your year end review
posts.

**Requires PHP 5.3 or higher. Will not work in PHP 5.2.x**

### Features

The plugin currently supports the following stats

 * Total number of posts per year
 * Total number of comments per year
 * Total number of words written per year
 * Average length of posts per year

### Shortcode

You can use the following shortcode to display stats in your blog.

    ```
    `[yes_stats type="post_num" start_year="2004" end_year="2014" range="to" post_type="post" post_status="publish" title="Title of the graph" height="500" width="500" ] ```
    ```

The `yes_stats` shortcode can have the following attributes

 * `type` – The type of graph. The following are the allowed values.
    - `post_num` – Number of posts by year (default)
    - `comment_num` – Number of posts by year
    - `post_avg_length` – Average length of posts by year
    - `post_totoal_length` – Total length of posts by year
 * `start_year` – The first year for the graph (default: current year)
 * `end_year` – The last year for the graph (default: current year)
 * `range` – How the years should be treated. Possible values are `to` (default)
   and `and`
 * `post_type` – The post type for which the graph should be generated (default:
   post)
 * `post_status` – The post status for which the graph should be generated (default:
   publish)
 * `title` – Title for the graph
 * `height` – Height of the graph (Default: 500px)
 * `width` – Width of the graph (Default: 500px)

### TODO

The following are the features that I am thinking of adding to the Plugin, when 
I get some free time. If you have any feature request or want to increase the priority
of a particular feature, then let me know.

 * Add more stats
 * Make the graphs more configurable
 * Cache the stats

### Support

 * If you have found a bug/issue or have a feature request, then post them in [github issues](https://github.com/sudar/wp-yearendstats/issues)
 * If you have a question about usage or need help to troubleshoot, then post in
   WordPress forums or leave a comment in [plugins’s home page](http://sudarmuthu.com/wordpress/wp-year-end-stats)
 * If you like the Plugin, then kindly leave a review/feedback at [WordPress repo page](https://wordpress.org/extend/plugins/wp-yearendstats/).
 * If you find this Plugin useful or and wanted to say thank you, then there are
   ways to [make me happy](http://sudarmuthu.com/if-you-wanna-thank-me) 🙂 and I
   would really appreciate if you can do one of those.
 * Checkout other [WordPress Plugins](http://sudarmuthu.com/wordpress) that I have
   written
 * If anything else, then contact me in [twitter](http://twitter.com/sudarmuthu).

### Translation

The pot file is available with the Plugin. If you are willing to do translation 
for the Plugin,
 use the pot file to create the .po files for your language and 
let me know.

### Credits

 * Thanks to Alex King for his [blog stats SQL scripts](http://alexking.org/blog/2007/01/01/sql-for-blog-stats)
   and for the [inspiration](http://alexking.org/blog/2007/12/31/2007-in-review).
 * Thanks to the excellent [Flot JavaScript](http://flotcharts.org/) library.

### Readme Generator

This Readme file was generated using [wp-readme](http://sudarmuthu.com/wordpress/wp-readme),
which generates readme files for WordPress Plugins.

## 屏幕截图

 * [[
 * The above screenshot shows the “Number of Posts by year” graph.
 * [[
 * The above screenshot shows the “Number of Comments by year” graph.
 * [[
 * The above screenshot shows the “Average length of posts by year” graph.
 * [[
 * The above screenshot shows the “Total length of posts by year” graph.

## 安装

The simplest way to install the plugin is to use the built-in automatic plugin installer.
Go to plugins -> Add New and then enter the name of the plugin to automatically 
install it.

If for some reason the above method doesn’t work then you can download the plugin
as a zip file, extract it and then use your favourite FTP client and then upload
the contents of the zip file to the wp-content/plugins/ directory of your WordPress
installation and then activate the Plugin from Plugins page.

## 常见问题

  Will this plugin work in PHP 5.2.x?

No. This plugin requires PHP 5.3 or higher.

  Will this plugin support PHP 5.2.x in future?

No. Please update your PHP version to 5.3 or higher. PHP 5.2.x is very old and has
lot of security issues.

## 评价

此插件暂无评价。

## 贡献者及开发者

「WP Year End Stats」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Sudar Muthu ](https://profiles.wordpress.org/sudar/)

[帮助将「WP Year End Stats」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/wp-yearendstats)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/wp-yearendstats/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/wp-yearendstats/)，或通过[RSS](https://plugins.trac.wordpress.org/log/wp-yearendstats/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/wp-yearendstats/)。

## 更新日志

#### 2014-12-29 – v1.0 – (Dev time: 10 hour)

 * New: Support for shortcodes
 * New: Removed dependency on Open Flash Charts plugin.
 * New: Uses Flot for generating the graphs.

#### 2014-01-26 – v0.5.1 – (Dev time: 0.5 hour)

 * Fix: There was some problem in the version. This is just to bump up version number

#### 2014-01-26 – v0.5 – (Dev time: 2 hours)

 * Fix: Fix all warnings and undefined notices (issue #1)
 * Tweak: Count only posts from “post” post type (issue #2)
 * Add: Add support for translation (issue #6)

#### 2013-02-09 – v0.4.1

 * Minor typo fixes

#### 2009-01-27 – v0.4

 * Fourth Version

#### 2008-12-27 – v0.3

 * Third Version

#### 2008-06-08 – v0.2

 * Second Version

#### 2008-01-01 – v0.1

 * First Version

## 额外信息

 *  版本 **1.0**
 *  最后更新：**11 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 2.0 或更高版本 **
 *  已测试的最高版本为 **4.1.42**
 *  语言
 * [English (US)](https://wordpress.org/plugins/wp-yearendstats/)
 * 标签
 * [comments](https://cn.wordpress.org/plugins/tags/comments/)[posts](https://cn.wordpress.org/plugins/tags/posts/)
   [stats](https://cn.wordpress.org/plugins/tags/stats/)
 *  [高级视图](https://cn.wordpress.org/plugins/wp-yearendstats/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/wp-yearendstats/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/wp-yearendstats/reviews/)

## 贡献者

 *   [ Sudar Muthu ](https://profiles.wordpress.org/sudar/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/wp-yearendstats/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://sudarmuthu.com/if-you-wanna-thank-me)