wiki:TracStatsPlugin

Project statistics (code, wiki, and tickets) plugin

Description

This plugin adds a Stats tab to the Trac project that shows project statistics about subversion, wiki, and ticket system.

Key features:

  • Recent activity (last 30 days) showing top 10 developers, projects, and paths within the repository.
  • Detailed statistics of source code development:
    • Total files by time
    • Commits by time, author, month, day of week, hour of day
    • Recent commits
    • Activity by time, author, project, filetype, change type
    • Most active paths, files
    • Commit cloud, built from checkin comments
  • Detailed statistics of Trac wiki pages:
    • Total pages by time
    • Edits by author
    • Latest wiki pages changed
    • Most active wiki pages
    • Largest wiki pages
  • Detailed statistics of Trac tickets:
    • Open tickets by time
    • Tickets by author, component
    • Most active tickets
    • Oldest open tickets
    • Latest tickets reported, changed
  • Drill down by author or path within the repository for more information.

This plugin works with SQLite, MySQL and PostgreSQL database backends. This plugin has been tested with Subversion, Mercurial and Git version control systems.

Source

See GitHub for more details and the source code, or to report issues or request features.

Installation

You can install it with:

easy_install tracstats

It needs to be enabled in your trac.ini file as follows:

[components]
tracstats.* = enabled

Configuration

The STATS_VIEW permission is used to control access to the statistics pages.

In addition, an optional "project root" within your repository can be configured as the base for all projects and source code statistics:

[stats]
root = path/to/projects

If you use Git, ie the GitPlugin for Trac, and are not able to see any of the code statistics, you likely need to configure it to cache the repository to make it work:

{{#!ini [git] cached_repository = true persistent_cache = true }}}

You might need to run trac-admin <project-env> repository resync <reponame> after the change.

Example

Some screenshots from a recent export of the Trac repository, showing a few of the features:

Project statistics

File statistics

Tag cloud based on ticket activity

Author/Contributors

Author: mrjbq7?
Maintainer: mrjbq7?
Contributors:

Last modified 3 weeks ago Last modified on Jul 3, 2016, 10:09:24 AM

Attachments (3)

Download all attachments as: .zip