Impress your friends with your blog stats
Blogging, Programming April 10th, 2007 - 13,448 viewsI was chatting with my buddy ryan earlier about PaulStamatiou.com and noticed the little word/comment counter he has in the header of his blog. I thought it was cool, so I wrote a wordpress plugin to generate the same stats for my blog! Now I’m making it available to you. I’m calling the plugin Impress, and you can download it here (pretty-printed version).
Here’s how you install it:
<?php impress(<format>); ?>That’s all!
The impress function takes one argument: a specially formatted string that determines what the output will be. There are six special keywords that will be replaced with your statistics, the rest of the string can be anything (it will be displayed along with the stats). The keywords are :users, :posts, :pages, :comments, :categories, :post_wordcount, :page_wordcount, and :comment_wordcount. They’re pretty self explanatory, so I’ll let you figure out what they mean.
Here’s an example from my blog (see the lower right-hand corner):
<p><?php impress("So far I've written :post_wordcount words
in :posts posts. :comments comments have been posted,
with a total of :comment_wordcount words."); ?><p>
Let me know if you have any thoughts, comments, suggestions, etc. Otherwise, enjoy!
Update: It’s fast, too! I’m being dugg right now and the server’s not breaking a sweat.

April 10th, 2007 at 10:02 pm
This plugin is awesome, check out my site to see how I implemented it!
Thanks!
Benedict Herold Says:May 3rd, 2007 at 3:36 pm
Hey… that’s nice plugin… I have installed the same in my blog..!
How to write a simple PHP template engine - I’m Mike Says:May 13th, 2007 at 9:57 am
[…] I wrote the impress wordpress plugin (which calculates some simple blog stats - see the bottom right of this page) I wanted to make it […]
wordpress是什么 » wordpress plugin - 更新于05/13 Says:May 13th, 2007 at 7:07 pm
[…] [æ’件下载 | Plugin download] [æ’件主页 | Plugin Page] […]
Weblog Tools Collection » Blog Archive » WordPress Plugin Releases for 05/14 Says:May 14th, 2007 at 3:38 pm
[…] Impress displays blog stats showing the number of users, posts, pages, comments, categories, words, and more on your blog. […]
Paul Stamatiou Says:May 14th, 2007 at 5:47 pm
Nice work and thanks for doing the dirty work and releasing something like this.. I’ve gotten a few emails asking about it. That’s some clean code as well, my 5 minute implementation seems rather slow.
mike Says:May 14th, 2007 at 7:43 pm
Paul,
Thanks man - props to you for the idea. The code is pretty fast, but honestly it’s probably not a calculation you want to do with every page impression on a blog like yours (especially since you have quite a few posts).
You can easily enable caching via memcache. I didn’t mention it in my post because I thought it would confuse the 95% of people who don’t need it. And the 5% who do need it can probably figure out how it works from the code. That, and if you have a highly trafficked site you’ll probably have WP-Cache installed, which makes caching via memcache unnecessary.
Adam Kayce : Monk At Work Says:May 15th, 2007 at 8:34 am
Thanks for this, Mike. I’m not 100% decided I’ll use it, since I’m hoping to keep my design as clean as I can… then again, the way Paul, Ryan, and you have used it is pretty non-obtrusive.
Thanks again.
radiohode Says:May 15th, 2007 at 11:07 am
I tried to implement this plugin in a text widget, but that did’nt work. What about a widget for this one? :-)
mike Says:May 15th, 2007 at 11:15 am
I’m not quite sure what you mean…
Do you mean using the widget sidebar plugin? If so, that’s a pretty good idea. Don’t know why I didn’t think of that. I’ll take a look at the code and see what I can do.
radiohode Says:May 15th, 2007 at 11:23 am
That’s exactly what I mean. I’ve noew tried to put it inside my footer, but I only get an error message: “Parse error: syntax error, unexpected ‘
mike Says:May 15th, 2007 at 11:30 am
I’ll take a look at the code and try implementing it as a widget. In the meantime you can shoot me an email at mmalone/at/vt/dot/edu, or contact me on AIM on the screen name lo4fy and I’ll see if I can help you figure out what’s going on.
WeblogToolsCollection Español » Blog Archive » Plugins de WordPress publicados 14/5 Says:May 15th, 2007 at 1:19 pm
[…] Impress despliega estadÃsticas del blog que muestran el número de usuarios, entradas, páginas, comentarios, palabras y mucho mas en tu blog. […]
Wordpress Plugins 5/15 Says:May 15th, 2007 at 5:32 pm
[…] Impress Your Friends - Installs a sidebar widget which displays things like how many posts you have had, how many words you posted, how many comments you have had, etc […]
Melo Villareal Says:May 15th, 2007 at 8:00 pm
Great Plugin… I was able to implement this plugin and it looks great…
mike Says:May 16th, 2007 at 1:09 pm
I’m glad people are using and enjoying this plugin. I’m probably going to be working on some updates soon, so if you have any suggestions for features you’d like to see please post them here.
So far, I plan on adding widget support (i.e. for the widget sidebar), and configuration options through the admin menu so you don’t need to edit code to change the plugin’s output.
Again, if there’s anything you’d like to see added to the next release (including additional statistics), let me know!
wordpress是什么 » Blog Archive » wordpress plugin05/13 Says:May 16th, 2007 at 8:55 pm
[…] [æ’件下载 | Plugin download] [æ’件主页 | Plugin Page] […]
LostInPlay Says:May 18th, 2007 at 4:24 am
Hello mike,
thanks for this great and so simple Plugin.
I just integrated it into my own Blog.
Take care,
radiohode Says:LostInPlay
May 18th, 2007 at 9:51 am
Hi Mike. They released a plugin today where you can implement php-code into a “custom” widget. That plugin + yours = a solution for me! :-D
mike Says:May 18th, 2007 at 9:56 am
Awesome! So did you get it working? If so, do you have a link to the plugin? I think some other people might be interested in using it.
radiohode Says:May 18th, 2007 at 10:21 am
I haven’t started working on it yet, but will start later today. Will tell you where to find it then. OK?
radiohode Says:May 18th, 2007 at 1:45 pm
It’s working now. How to do it:
1) Download and install “Widgetize anything”: http://www.erik-rasmussen.com/blog/2006/11/30/widgetize-anything/
2) If you’ve upgrade to Wordpress 2.2, you can move to 4)
3) Download and install “Automaticc”.
4) Activate both plugins in the Dashboard
5) In the Dashboard, go to Presentation > Widgets
6) Pull the “Widgetize anything 1″ widget into the sidebar
7) Open the “Widgetize anything 1″, and name it as you wish in the header.
8) Paste the code from Mikes example (above) into the lower part of the widget. The code in Mikes example is:
[]
Brackets [] shown here for illustrating purposes only!
9) Trim the code by removing [] in the beginning an the end.
Brackets [] shown here for illustrating purposes only!
10) You must also remove [] in the end. The code will then look like this:
[impress(”So far I’ve written :post_wordcount words
in :posts posts. :comments comments have been posted,
with a total of :comment_wordcount words.”);]
Brackets [] shown here for illustrating purposes only!
Visit my blog for an example, bottom right corner.
radiohode Says:May 18th, 2007 at 1:46 pm
I forgot to leave the url for “Automaticc”:
http://automattic.com/code/widgets/
Good luck!
radiohode Says:May 18th, 2007 at 1:48 pm
An now I can see most of the code in my comment has been removed. Silly of me not to think about that.
Basically, you get the picture by looking at 10) where unwanted code has been removed.
The Blog for DesignCreatology » Blog Archive » WP Plugs May 24, 2007 Says:May 24th, 2007 at 4:49 am
[…] Impress displays blog stats showing the number of users, posts, pages, comments, categories, words, and more on your blog. […]
Melinda Says:July 15th, 2007 at 4:59 pm
This is awesome! I’ve been searching for ages for something like this. Is there a way to include categories in it as well? I’m aiming to have something like this in my sidebar:
Posts: number
Comments: number
Categories: number
Last Post: “Title”
Last Commentator: name
If you could help me that’d be great. Thanks! I know this comment is pretty late, but hopefully you’ll reply. I found this page through Google.
Jaypee Says:July 22nd, 2007 at 6:32 am
Cool plugin! I just downloaded, installed and implemented it on my About page with the help of the PHP Exec plugin. Thanks a lot! :)
Blog Updates 08/07 : JaypeeOnline | Blogging News & Reviews Says:August 1st, 2007 at 4:09 pm
[…] Impress - Impress your readers with statistics on the number of users, posts, comments, pages, categories, words in posts, words in comments, and words in pages you have. […]
30+ WordPress Plugins for Statistics Says:August 7th, 2007 at 4:49 am
[…] Impress - Display number of users, posts, pages, comments, categories, words, and more on your blog for visitors to see. […]
30 余款用于 WordPress 的网站统计æ’ä»¶ Says:August 7th, 2007 at 8:36 pm
[…] Akismet Spam Count - Alexa Rank - GeneralStats - Google PageRank - Impress - Jon’s Showoff Rankings […]
30+WordPress统计æ’ä»¶ at catch the digital flow Says:August 7th, 2007 at 10:23 pm
[…] Impress - 显示注册用户数é‡ã€æ—¥å¿—æ•°é‡ã€é¡µé¢æ•°é‡ã€è¯„论数é‡ã€ç›®å½•æ•°é‡ã€å—æ•°ç‰ä¿¡æ¯ã€‚ […]
The sky of Daemon! » Blog Archive » 译文:30多个Wordpress统计æ’ä»¶ Says:August 8th, 2007 at 12:26 am
[…] Impress - 与GeneralStats功能类似的一个æ’件。 […]
30 плагинов Ð´Ð»Ñ Ñбора ÑтатиÑтики в WordPress : ИГРРТЕÐЕЙ Says:August 12th, 2007 at 3:53 pm
[…] Impress – показывает поÑетителÑм количеÑтво юзеров, поÑтов, Ñтраниц, комментариев, категорий и Ñлов. […]
WORDPRESS GOD:300+ Tools for Running Your WordPress Blog Says:August 16th, 2007 at 10:25 pm
[…] Impress - Display number of users, posts, pages, comments, categories, words, and more on your blog. […]
All about Wordpress - Themes - Plugins » 30+ WordPress Plugins for Statistics Says:August 19th, 2007 at 2:52 pm
[…] Impress - Display number of users, posts, pages, comments, categories, words, and more on your blog for visitors to see. […]
Wordpress䏿–‡åšå®¢é›† Says:August 19th, 2007 at 10:41 pm
[…] Impress - 显示注册用户数é‡ã€æ—¥å¿—æ•°é‡ã€é¡µé¢æ•°é‡ã€è¯„论数é‡ã€ç›®å½•æ•°é‡ã€å—æ•°ç‰ä¿¡æ¯ã€‚ […]
İstatistik için 30+ WordPress Plugin by # YaMTaR Says:August 28th, 2007 at 7:33 am
[…] Impress […]
WordPress Plugin - Impress (Share your Stats with Readers) at WordPress Themes, Plugins, Blog Tips, Make Money Online >> WPthemesplugin.com Says:September 4th, 2007 at 10:03 am
[…] Visit & Download […]
Weblog Tools Collection » Blog Archive » WordPress Plugin Releases for 9/5 Says:September 4th, 2007 at 11:37 pm
[…] Impress allows your to display/share your blog statistics with your readers. […]
Nico Nemil | Filipino Web Developer | Pinoy Web Designer | Intermediate Graphics Artist » WordPress Plugin Releases for 9/5 Says:September 5th, 2007 at 2:35 am
[…] Impress allows your to display/share your blog statistics with your readers. […]
voozzy.com » Blog Archive » Плагины Ð´Ð»Ñ WordPress Says:September 5th, 2007 at 4:57 am
[…] Ñлов в Ñтатье, Ñлов в комментариÑÑ…, и Ñлов на Ñтраницу. Impress - поти тоже что и предыдущий. оформление Ñтатей Add […]
BF设计 » Blog Archive » 译文:30多个Wordpress统计æ’ä»¶ Says:September 5th, 2007 at 10:14 am
[…] Impress - 与GeneralStats功能类似的一个æ’件。 […]
Impress your friends : Losing it[1] Says:September 5th, 2007 at 5:34 pm
[…] another fun WordPress plugin. Impress pulls out some of the same data as a word count plugin I’ve been using for a while, but makes […]
Les Says:September 5th, 2007 at 5:36 pm
Ooooh, nice! Installed, working. Thanks.
Beach’s Blog | 译文:30多个Wordpress统计æ’ä»¶ Says:September 6th, 2007 at 6:21 am
[…] Impress - 与GeneralStats功能类似的一个æ’件。 […]
Daniel Says:September 11th, 2007 at 7:25 pm
Hi, Mike,
Great little plug-in. I have it shoe-horned in the Cutline theme with minor alterations.
Question though. How can I get this to exclude page ID’s? I have a couple pages that I don’t wish to count-in as they’re a part of the Shop system installed.
Only Developers . com » Blog Archive » Weblog Tools Collection: WordPress Plugin Releases for 9/5 Says:September 16th, 2007 at 2:53 am
[…] Impress allows your to display/share your blog statistics with your readers. […]
Christopher Says:September 19th, 2007 at 3:35 am
Thanks for the great plugin Mike, I have been using it a short while.
Ð‘Ð¸Ð·Ð½ÐµÑ » Ðрхив блога » Плагины Ð´Ð»Ñ wordpress Says:Do you have any plans to upgrade it to work with WP2.3?
September 20th, 2007 at 1:59 am
[…] […]
300+ Popular Plugins for Running Your WordPress Blog Says:September 26th, 2007 at 8:54 am
[…] Impress - Display number of users, posts, pages, comments, categories, words, and more on your blog. […]
3 WordPress Plugins to Check Out Says:September 27th, 2007 at 11:01 am
[…] Impress - A plugin to help you share stats with your readers about things such as number of comments or number of words in all posts. […]
Wordpress god300 tools for running your wordpress blog by mashabale.com · Cyber Space in One Hand Says:September 28th, 2007 at 4:46 am
[…] Impress - Display number of users, posts, pages, comments, categories, words, and more on your blog. […]
» WordPress Plugin: piccola raccolta di plugin per le statistiche del vostro blog » FreeTemplate Blog Says:October 6th, 2007 at 1:01 pm
[…] 15)Impress - Mostra il numero di pagine, post, utenti, commenti, categorie e molto altro, e ne permette la visualizzazione a tutti i visitatori. […]
WordPress æ”¶è— » 30余个WordPressç»Ÿè®¡ä¿¡æ¯æ’ä»¶ Says:October 10th, 2007 at 12:25 am
[…] Impress - æ˜¾ç¤ºç”¨æˆ·ã€æ–‡ç« ã€é¡µé¢ã€è¯„论ã€åˆ†ç±»ã€å—è¯ä»¥åŠè®¿å®¢ç‰ä¿¡æ¯ […]
Jaypee Says:October 14th, 2007 at 10:20 am
Does this plugin still work with WP 2.3? Thanks!
ã‚ーã©ã·ã‚Œã™ã£ï¼ » Impress Says:October 19th, 2007 at 9:42 pm
[…] Impress your friends with your blog stats - I’m Mike […]
阿æœåœ¨çº¿ » Blog Archive » 用于 WordPress 的网站统计æ’ä»¶ Says:October 22nd, 2007 at 11:52 pm
[…] Akismet Spam Count- Alexa Rank- GeneralStats- Google PageRank- Impress- Jon’s Showoff Rankings […]
Plugins de estadÃsticas para Wordpress » BlogMundi Says:November 4th, 2007 at 8:37 am
[…] Impress - Te permite mostrar a tus lectores el número de usuarios, posts, páginas, comentarios, […]
On-line дневник оптимизатора » Ðрхив блога » Плагины Ð´Ð»Ñ Wordpress Ñ Ð¾Ð¿Ð¸Ñанием на руÑÑком в 3-Ñ… чаÑÑ‚ÑÑ…. ЧаÑть 3. Says:November 4th, 2007 at 2:32 pm
[…] Ñлов в Ñтатье, Ñлов в комментариÑÑ…, и Ñлов на Ñтраницу. Impress - поти тоже что и предыдущий. Add Graphic Signature - плагин […]
On-line дневник оптимизатора Says:November 4th, 2007 at 2:36 pm
[…] Ñлов в Ñтатье, Ñлов в комментариÑÑ…, и Ñлов на Ñтраницу. Impress - поти тоже что и предыдущий. Add Graphic Signature - плагин […]
与统计相关的30个Wordpressæ’ä»¶ : : MoonShow Says:November 9th, 2007 at 7:50 am
[…] Impress - 显示åšå®¢ç”¨æˆ·ã€åˆ†ç±»ã€æ—¥å¿—ã€è¯„è®ºç‰æ•°é‡ã€‚ […]
Плагины Ð´Ð»Ñ Wordpress на руÑÑком! ЧаÑть 3-Ñ | ПроÑтой блог Says:November 10th, 2007 at 9:11 am
[…] Ñлов в Ñтатье, Ñлов в комментариÑÑ…, и Ñлов на Ñтраницу. Impress - поти тоже что и предыдущий. Add Graphic Signature - плагин […]
Плагины Ð´Ð»Ñ WordPress Says:November 16th, 2007 at 4:21 pm
[…] Ñлов в Ñтатье, Ñлов в комментариÑÑ…, и Ñлов на Ñтраницу. Impress - поти тоже что и предыдущий. Add Graphic Signature - плагин […]
对影æˆä¸‰äºº » Blog Archive » Wordpressæ’ä»¶å½’ç±»æ•´ç† Says:November 18th, 2007 at 10:03 pm
[…] Impress - 显示åšå®¢ç”¨æˆ·ã€åˆ†ç±»ã€æ—¥å¿—ã€è¯„è®ºç‰æ•°é‡ã€‚ […]
Плагины Ð´Ð»Ñ WordPress | Блог ДениÑа Лизунова Says:November 22nd, 2007 at 12:00 pm
[…] Ñлов в Ñтатье, Ñлов в комментариÑÑ…, и Ñлов на Ñтраницу. Impress - поти тоже что и предыдущий. оформление […]
30多个Wordpress统计æ’件:30+ WordPress Plugins for Statistics | ç½‘ç«™å»ºè®¾æŒ‡å— Says:December 1st, 2007 at 1:58 am
[…] Impress - 与GeneralStats功能类似的一个æ’件。 […]
何昕åšå®¢ » Blog Archive » 30个与统计相关的Wordpressæ’ä»¶ Says:December 3rd, 2007 at 1:15 am
[…] Impress - 显示åšå®¢ç”¨æˆ·ã€åˆ†ç±»ã€æ—¥å¿—ã€è¯„è®ºç‰æ•°é‡ã€‚ […]
何昕åšå®¢WP分站 » Blog Archive » 30个与统计相关的Wordpressæ’ä»¶ Says:December 6th, 2007 at 8:28 am
[…] Impress - 显示åšå®¢ç”¨æˆ·ã€åˆ†ç±»ã€æ—¥å¿—ã€è¯„è®ºç‰æ•°é‡ã€‚ […]
ARHI » Blog Archive » Pluginuri de baza pentru un blogger Says:December 9th, 2007 at 8:41 am
[…] Impress - Display number of users, posts, pages, comments, categories, words, and more on your blog. […]
译文:30多个Wordpress统计æ’ä»¶ Says:December 12th, 2007 at 3:38 pm
[…] Impress - 与GeneralStats功能类似的一个æ’件。 […]
Плагины Ð´Ð»Ñ Wordpress на руÑÑком! ЧаÑть 3-Ñ | Каталог SEO Ñтатей Says:January 22nd, 2008 at 4:59 am
[…] Ñлов в Ñтатье, Ñлов в комментариÑÑ…, и Ñлов на Ñтраницу. Impress - поти тоже что и предыдущий. Add Graphic Signature - плагин […]
Impress you with my statistics? « Paul Gray Says:January 28th, 2008 at 7:19 am
[…] downloaded and installed the plugin “Impress” from I’m Mike. This will show total words, posts, comments and other calculations. for now I have set it to […]
Paul Gray Says:January 28th, 2008 at 7:20 am
Thanks for the plugin Mike. I have installed it on my site.
Wordpressæ’件大全之30个统计相关æ’ä»¶ | 望月 Says:February 5th, 2008 at 4:24 pm
[…] Impress - 显示åšå®¢ç”¨æˆ·ã€åˆ†ç±»ã€æ—¥å¿—ã€è¯„è®ºç‰æ•°é‡ã€‚ […]
è½äº†ä¼ » Blog Archive » 30多个WordPress统计æ’ä»¶ Says:February 10th, 2008 at 3:46 am
[…] Impress - 与GeneralStats功能类似的一个æ’件。 […]
Evolving Blog » What are WordPress plugins? Says:March 6th, 2008 at 11:20 am
[…] they use information specific to your site to generate more content. For example, a plugin that lists statistics about your website must pull that information from the database. Other plugins read and write to […]
天哪:300多个æ’ä»¶è¿è¡Œåˆ°ä½ çš„WORDPRESS | çµåº¦CLEVER8 O-Town Says:March 15th, 2008 at 7:42 am
[…] Impress - Display number of users, posts, pages, comments, categories, words, and more on your blog. […]
Wordpressæ’ä»¶å¤§æ•´ç† | 何必呢 Says:March 28th, 2008 at 1:54 pm
[…] - 显示åšå®¢ç”¨æˆ·ã€åˆ†ç±»ã€æ—¥å¿—ã€è¯„è®ºç‰æ•°é‡ã€‚ Google PageRank - 显示Google PR值。 Impress - 显示åšå®¢ç”¨æˆ·ã€åˆ†ç±»ã€æ—¥å¿—ã€è¯„è®ºç‰æ•°é‡ã€‚ Jon’s Showoff Rankings Widget - […]