Plugin Directory

GeneralStats

Counts the number of users, categories, posts, comments, pages, links, tags, link-categories, words in posts, words in comments and words in pages.

Download Version 2.32

I get the error message `Fatal error: Allowed memory size of n bytes exhausted (tried to allocate n bytes) in /wp-includes/wp-db.php on line n`. - What's wrong?

Some attributes, especially the ones which count words in ..., need more memory and CPU-time to be executed.

For performance optimization, you can play around with the Rows at Once parameter in the Performance tab, which represents the number of database rows processed at once. In other words, if your weblog consists of 1,200 comments and you want to count the words in comments with a Rows at once value set to 100, it will take 12 sql-queries. This may be much or less, depending on your provider's environment and the size of your weblog. Hence, this setting cannot be automatically calculated because it is not predictable. So, it is up to you to optimize this setting.

Nevertheless, for smaller weblogs the default value of 100 "Rows at once" should be appropriate.

Which Javascript library should I choose for the Ajax refresh in my theme?

That's a well-covered topic in the web. GeneralStats provides you with the flexibility to use either Prototype or jQuery. Thus, your decision merely depends on what your other installed plugins use.

Why is the 'Drag and Drop Layout' not working?

This section is based on Javascript. Thus, you have to enable Javascript in your browser (this is a default setting in a modern browser like Firefox). GeneralStats is still fully functional without these constraints, but you need to customize your stats manually as in older versions of GeneralStats.

How can I adopt the color scheme in the GeneralStats Settings Tab?

If you select one of the two default color schemes (classic = Blue or fresh = Gray) in your Profile Page, GeneralStats automatically adopts its colors to this scheme.

In case you use a custom color scheme, this cannot be done automatically because WordPress still doesn't provide any proper functions to find out which colors of your scheme are used for background, font, etc. - Nevertheless, you can set up your preferred colors manually: Just add the filter generalstats_available_admin_colors in for example generalstats.php or in your custom-colors-plugin.

Is there anything I need to know before updating to GeneralStats v2?

As the majority of the source-code changed with version 2.00, there are two things I would like to mention:

  • Your 1.x options will be automatically converted. - Nevertheless, you should make a backup prior to this upgrade!
  • GeneralStatsComplete() has been deprecated in favor of $generalstats->output()

As I've excluded HTML-tags with version 2 of GeneralStats by default, you might experience a change in your Word-Count stats. - If you like to re-include these tags and count them as words, you can turn on the setting "Include HTML-Tags in Word-Counts" in the "Administrative Options" section.

Requires: 2.8 or higher
Compatible up to: 3.3.1
Last Updated: 2011-9-10 Downloads: 63,287

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(25 ratings)

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

Log in to vote.

100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1 0,1,0
100,2,2
100,3,3
100,1,1 100,2,2 100,1,1
100,3,3 100,2,2
100,1,1
100,1,1 100,1,1
0,1,0
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1 100,1,1
100,2,2