Title: Plugin Name: Traffic Stats Widget Plugin
Author: helenthomaswp
Published: <strong>2013 年 2 月 12 日</strong>
Last modified: 2015 年 2 月 27 日

---

搜索插件

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

![](https://s.w.org/plugins/geopattern-icon/traffic-stats-widget.svg)

# Plugin Name: Traffic Stats Widget Plugin

 作者：[helenthomaswp](https://profiles.wordpress.org/helenthomaswp/)

[下载](https://downloads.wordpress.org/plugin/traffic-stats-widget.1.0.2.zip)

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

 [支持](https://wordpress.org/support/plugin/traffic-stats-widget/)

## 描述

TSW shows the number of visitors / hits / unique IPs in the past 24 hours, 7 days
and 30 days. It also shows the number of users currently online.

It provides a robots filter, but the automatic traffic could also be considered.

Traffic Stats Widget offers language support and automatic log deletion.

## 屏幕截图

 * [[
 * On the blog the widget looks like this
 * [[
 * Admin Page

## 安装

 1. Upload the zip to ‘plugins’ directory
 2. Unzip (steps 1 and 2 cand also be performed automatically)
 3. Activate the plugin
 4. Configure and place the widget on your sidebar

If you need your traffic stats to be more accurate, you should use the Automatic
Traffic Filter on the Widget. However, the internet is full of spiders, crawlers
and all kind of robots not authenticating themselves as machines. Furthermore, it
is very difficult to verify the signature of each and every robot visiting your 
blog… But there is a pretty good solution to this. I cannot access the root directory
of your blog through WordPress install API, so you will have to do the following
things by yourself:

 1. Create a robots.php file on the root directory of your blog: ie public_html/your-
    blog/
     Paste the following code without // in it:

#

#

 1. Open .htaccess file in the same directory and paste this in it:

RewriteRule robots.txt robots.php

 1. Make sure you have the ‘RewriteEngine On’ clause in place…
 2. Make sure you have a robots.txt file, even an empty one, on the root directory

Done! Most of the robots will be filtered out by TSW.

Traffic Stats Widget does not have a settings section on Admin page. However, you
can set the fields descriptions on the widget

## 常见问题

  Installation Instructions

 1. Upload the zip to ‘plugins’ directory
 2. Unzip (steps 1 and 2 cand also be performed automatically)
 3. Activate the plugin
 4. Configure and place the widget on your sidebar

If you need your traffic stats to be more accurate, you should use the Automatic
Traffic Filter on the Widget. However, the internet is full of spiders, crawlers
and all kind of robots not authenticating themselves as machines. Furthermore, it
is very difficult to verify the signature of each and every robot visiting your 
blog… But there is a pretty good solution to this. I cannot access the root directory
of your blog through WordPress install API, so you will have to do the following
things by yourself:

 1. Create a robots.php file on the root directory of your blog: ie public_html/your-
    blog/
     Paste the following code without // in it:

#

#

 1. Open .htaccess file in the same directory and paste this in it:

RewriteRule robots.txt robots.php

 1. Make sure you have the ‘RewriteEngine On’ clause in place…
 2. Make sure you have a robots.txt file, even an empty one, on the root directory

Done! Most of the robots will be filtered out by TSW.

Traffic Stats Widget does not have a settings section on Admin page. However, you
can set the fields descriptions on the widget

## 评价

![](https://secure.gravatar.com/avatar/12b80353cf105aacd9b9a63a87da2c877f4e6ea82dd5270abb0959b5f51a4d8a?
s=60&d=retro&r=g)

### 󠀁[Abandoned?](https://wordpress.org/support/topic/abandoned-67/)󠁿

 [oldmankit](https://profiles.wordpress.org/oldmankit/) 2018 年 5 月 23 日

Hasn’t been updated in three years; no-longer works on my site.

![](https://secure.gravatar.com/avatar/e52912f8531c36e0bff07e76be4266793f064c574c68a56d2613a4c0cd76fae4?
s=60&d=retro&r=g)

### 󠀁[Great Plugin!](https://wordpress.org/support/topic/great-plugin-8360/)󠁿

 [smilie1](https://profiles.wordpress.org/smilie1/) 2016 年 9 月 3 日

Would like to remove the Text Online Now: count feature. It is not needed on my 
site. Without having to update Version 1.0.2, is there a way to modify the php to
remove that feature?

![](https://secure.gravatar.com/avatar/e2cd28f7cede68b02f89b390739d608d2558bc514a8641a08df5377cb3d5e5e8?
s=60&d=retro&r=g)

### 󠀁[Very Usfull Plugin](https://wordpress.org/support/topic/very-usfull-plugin/)󠁿

 [zihan_bd](https://profiles.wordpress.org/zihan_bd/) 2016 年 9 月 3 日

Thanks for the plugin. But need to add/update some options. Please, support visitor
status & IP to WP Dashboard.

![](https://secure.gravatar.com/avatar/b9ccfa81ba51c8cec6e4e654eee3d1a477c083ab42e06d2425fcb6ce64d7f817?
s=60&d=retro&r=g)

### 󠀁[Thank you](https://wordpress.org/support/topic/thank-you-1175/)󠁿

 [televizor](https://profiles.wordpress.org/televizor/) 2017 年 2 月 8 日

Keep up the good work!

 [ 阅读所有8条评价 ](https://wordpress.org/support/plugin/traffic-stats-widget/reviews/)

## 贡献者及开发者

「Plugin Name: Traffic Stats Widget Plugin」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ helenthomaswp ](https://profiles.wordpress.org/helenthomaswp/)
 *   [ Jhon ](https://profiles.wordpress.org/jhon/)

[帮助将「Plugin Name: Traffic Stats Widget Plugin」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/traffic-stats-widget)

### 对开发感兴趣吗?

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

## 更新日志

 * 1.0
    Initial Release
 * 1.0.1
    minor bug fixed

## 额外信息

 *  版本 **1.0.2**
 *  最后更新：**8 年前**
 *  活跃安装数量 **600+**
 *  WordPress 版本 ** 2.8.0 或更高版本 **
 *  已测试的最高版本为 **4.0.38**
 *  语言
 * [English (US)](https://wordpress.org/plugins/traffic-stats-widget/)
 * 标签
 * [Hit Counter](https://cn.wordpress.org/plugins/tags/hit-counter/)[traffic counter](https://cn.wordpress.org/plugins/tags/traffic-counter/)
   [Traffic Widget](https://cn.wordpress.org/plugins/tags/traffic-widget/)[user traffic](https://cn.wordpress.org/plugins/tags/user-traffic/)
   [visitors counter](https://cn.wordpress.org/plugins/tags/visitors-counter/)
 *  [高级视图](https://cn.wordpress.org/plugins/traffic-stats-widget/advanced/)

## 评级

 4.4 星（最高 5 星）。

 *  [  6 条 5 星评价     ](https://wordpress.org/support/plugin/traffic-stats-widget/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/traffic-stats-widget/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/traffic-stats-widget/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/traffic-stats-widget/reviews/?filter=2)
 *  [  1 条 1 星评价     ](https://wordpress.org/support/plugin/traffic-stats-widget/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/traffic-stats-widget/reviews/#new-post)

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

## 贡献者

 *   [ helenthomaswp ](https://profiles.wordpress.org/helenthomaswp/)
 *   [ Jhon ](https://profiles.wordpress.org/jhon/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/traffic-stats-widget/)