PHPackages                             carlcs/craft-elementstats - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. carlcs/craft-elementstats

ActiveCraft-plugin[Utility &amp; Helpers](/categories/utility)

carlcs/craft-elementstats
=========================

Element Stats widget for Craft CMS

v1.0.2(9y ago)1416PHPPHP &gt;=5.4.0

Since Jul 21Pushed 9y ago2 watchersCompare

[ Source](https://github.com/carlcs/craft-elementstats)[ Packagist](https://packagist.org/packages/carlcs/craft-elementstats)[ RSS](/packages/carlcs-craft-elementstats/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

Element Stats widget for Craft CMS
==================================

[](#element-stats-widget-for-craft-cms)

[![Element Stats](https://github.com/carlcs/craft-elementstats/raw/master/resources/screenshot.png)](https://github.com/carlcs/craft-elementstats/blob/master/resources/screenshot.png)

Installation
------------

[](#installation)

The plugin is available on Packagist and can be installed using Composer. You can also download the [latest release](https://github.com/carlcs/craft-elementstats/releases/latest) and copy the files into craft/plugins/elementstats/.

```
$ composer require carlcs/craft-elementstats

```

Configuration
-------------

[](#configuration)

To configure the plugin you need to create a file named elementstats.php in the craft/config/ folder. This is where you configure the stats available in your widgets.

Place all of your stats configurations in a nested array with the key `stats`. The configurations themselves have to be arrays with an unique array key which will be used to identify the stat. Within that array you can use the following stat config settings:

- **`name`** – What the stat will be called in the widget.
- **`link`** – Where the link in your widget will lead. The setting expects a Control Panel URI.
- **`elementType`** – What element type to fetch elements.
- **`criteria`** – An array of element criteria parameters used to filter the elements.
- **`dateColumn`** – What database column should be used for the time axis in the chart.
- **`total`** – Allows you to manually set the value returned to the widgets.
- **`numberFormat`** – How the value should be formatted in the widgets.

Element Stats widget comes with an [example configuration file](_examples/) to give you a better idea of what types of data you can use and how to configure the stats configurations.

Here’s a very basic example:

```
return [
    'stats' => [
        'all-entries' => [
            'name'        => 'All Entries',
            'link'        => 'entries',
            'elementType' => 'Entry',
        ],
        'sports-news' => [
            'name'        => 'Sports News',
            'link'        => 'entries/news',
            'elementType' => 'Entry',
            'criteria'    => [
                'section' => 'news',
                'type'    => 'sports',
            ],
        ],
    ],
];
```

Requirements
------------

[](#requirements)

- PHP 5.4 or later
- Craft CMS 2.6 or later

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

3

Last Release

3628d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7516543?v=4)[carlcs](/maintainers/carlcs)[@carlcs](https://github.com/carlcs)

---

Top Contributors

[![carlcs](https://avatars.githubusercontent.com/u/7516543?v=4)](https://github.com/carlcs "carlcs (8 commits)")

---

Tags

craft-plugincraftcms

### Embed Badge

![Health badge](/badges/carlcs-craft-elementstats/health.svg)

```
[![Health](https://phpackages.com/badges/carlcs-craft-elementstats/health.svg)](https://phpackages.com/packages/carlcs-craft-elementstats)
```

###  Alternatives

[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.3k10](/packages/helsingborg-stad-municipio)[mautic/core

Mautic Open Source Distribution

9.8k2.6k9](/packages/mautic-core)[mediawiki/maps

Adds various mapping features to MediaWiki

78149.7k3](/packages/mediawiki-maps)[rainlab/blog-plugin

Blog plugin for October CMS

17158.6k](/packages/rainlab-blog-plugin)[civicrm/civicrm-drupal-8

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

19246.3k2](/packages/civicrm-civicrm-drupal-8)[starcitizentools/citizen-skin

A beautiful, usable, responsive MediaWiki skin with in-depth extension support. Originally developed for the Star Citizen Wiki.

3355.8k](/packages/starcitizentools-citizen-skin)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
