PHPackages                             municipio/content-insights-for-editors - 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. municipio/content-insights-for-editors

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

municipio/content-insights-for-editors
======================================

Content Insights for Editors is a WordPress plugin.

2.1.0(3y ago)32.1k↑50%[2 issues](https://github.com/whitespace-se/content-insights-for-editors/issues)[1 PRs](https://github.com/whitespace-se/content-insights-for-editors/pulls)1AGPL-3.0-or-laterPHP

Since Aug 26Pushed 7mo ago13 watchersCompare

[ Source](https://github.com/whitespace-se/content-insights-for-editors)[ Packagist](https://packagist.org/packages/municipio/content-insights-for-editors)[ Docs](https://whitespace.se/en/open-source/)[ RSS](/packages/municipio-content-insights-for-editors/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (1)Versions (22)Used By (1)

Content Insights for Editors
============================

[](#content-insights-for-editors)

> An easy way for content editors to keep track of their work and get notified when it is not working properly

Content Insights for Editors is a WordPress plugin

Table of Contents
-----------------

[](#table-of-contents)

- [Usage](#usage)
    - [Prerequisites](#prerequisites)
    - [Installation](#installation)
- [Develop](#develop)
    - [Local prerequisites](#local-prerequisites)
    - [Local installation](#local-installation)
- [Contributing](#contributing)
- [Versioning](#versioning)
- [Authors](#authors)
- [License](#license)

Usage
-----

[](#usage)

### Prerequisites

[](#prerequisites)

- [WordPress](https://wordpress.com/)
- [ACF](https://www.advancedcustomfields.com/)
- [helsingborg-stad/broken-link-detector](https://github.com/helsingborg-stad/broken-link-detector)
- [matomo](https://matomo.org/)

Content Insights for Editors uses matomo for visitor statistics and [helsingborg-stad/broken-link-detector](https://github.com/helsingborg-stad/broken-link-detector)for analysing content.

### Installing

[](#installing)

The package can be downloaded manually and unzipped in the /wp-content/plugins/ directory or by using composer.

Install by running the following command:

```
composer require municipio/content-insights-for-editors

```

Example of how composer works [here](https://wpackagist.org/)

When resources have been installed. The plugin can be activated by looking for a "Content Insights for Editors" entry in the plugins page and clicking on "Activate".

### Hooks

[](#hooks)

Here are the hooks for customizing the plugin

### Set the mail logo url

[](#set-the-mail-logo-url)

```
cife_notification_mail_logo_url
```

**Example usage**

```
add_action('cife_notification_mail_logo_url', function ($currentLogo) {
  $logo = get_field('logotype', 'option');
  return wp_get_attachment_url($logo['id']);
});
```

### Adding a section to mail notification

[](#adding-a-section-to-mail-notification)

```
cife_notification_mail_list_sections
```

**Example usage**

```
add_action('cife_notification_mail_list_sections', function($sections){
    array_push($sections, [
        'section_header' => '', // string, Title rendered above section
        'list' => [
            [
                'url' => '', // string, list item url
                'title' => '', // string, list item title
                'value' => 0, // mixed, Value to display in the second column (OPTIONAL)
            ],
            ...
        ],
        'list_header' => ['title' => '', 'value' => ''], // array, Explaining list.title and list.value
        'no_items_text' => '', // string, Replace list if empty
    ]);
    return $sections;
});
```

### Modify which section template to use during render

[](#modify-which-section-template-to-use-during-render)

```
cife_notification_mail_render_section
```

**Example usage**

```
add_action('cife_notification_mail_list_sections', function (
  $template,
  $sectionVars
) {
  if (
    $_sectionVars['id'] === 'most-viewed' &&
    class_exists('\CustomerFeedback\App')
  ) {
    return CONTENT_INSIGHTS_FOR_EDITORS_MAIL_TEMPLATE_PATH .
      '/partials/section-3-cols-customer-feedback.template.php';
  }
  return $template; // Absolute php file path
});
```

### Customizing content of mail notification

[](#customizing-content-of-mail-notification)

```
cife_notification_mail_vars

```

**Exposed variables**

```
'logo'  // string, Logourl showed in top of email
'intro_header' // string, Title showen in top of email
'intro_text' // string, Text showen in top of email
'button_cta_text' // string, NULL to hide
'button_cta_url' // string, NULL to hide
```

**Example usage**

```
add_action('cife_notification_mail_vars', function ($html_vars) {
  $html_vars['logo'] = "...";
  return $html_vars;
});
```

Develop
-------

[](#develop)

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See [Usage](#usage) for notes on how to use the plugin in production.

### Local prerequisites

[](#local-prerequisites)

- [WordPress](https://wordpress.com/)
- [ACF](https://www.advancedcustomfields.com/)
- [helsingborg-stad/broken-link-detector](https://github.com/helsingborg-stad/broken-link-detector)
- [matomo](https://matomo.org/)

Content Insights for Editors uses matomo for visitor statistics and [helsingborg-stad/broken-link-detector](https://github.com/helsingborg-stad/broken-link-detector)for analysing content.

### Local installation

[](#local-installation)

The plugin can be installed with composer or by cloning this repo from github into the /wp-content/plugins/ directory of your WordPress installation.

**With composer**

Add this to your composer.json

```
"repositories": [
    {
        "type": "path",
        "url": "/my/local/path/content-insights-for-editors"
    },
    ...
]

"require": {
    ...
    "content-insights-for-editors": "dev-master"
},

```

And this to install helsingborg-stad/broken-link-detector

```
"repositories": [
    {
        "type": "vcs",
        "url": "git@github.com:helsingborg-stad/broken-link-detector.git",
        "no-api": true
    },
    ...
]

"require": {
    ...
    "helsingborg-stad/broken-link-detector": "^1.3",
},

```

Then run

```
composer install

```

Example of how composer works [here](https://wpackagist.org/)

Contributing
------------

[](#contributing)

1. Fork it ()
2. Create your feature branch (`git checkout -b feature/fooBar`)
3. Commit your changes (`git commit -am 'Add some fooBar'`)
4. Push to the branch (`git push origin feature/fooBar`)
5. Create a new Pull Request

Versioning
----------

[](#versioning)

We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/whitespace-se/content-insights-for-editors/tags).

Authors
-------

[](#authors)

See the list of [contributors](https://github.com/whitespace-se/content-insights-for-editors/graphs/contributors)who participated in this project.

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~99 days

Recently: every ~263 days

Total

14

Last Release

1159d ago

Major Versions

1.2.3 → 2.0.02021-03-17

### Community

Maintainers

![](https://www.gravatar.com/avatar/592af4ef31862c92dfc8f616c100f6a2cbf189e4a2d68a1d25c140a06dba205c?d=identicon)[whitespace](/maintainers/whitespace)

---

Top Contributors

[![andersrehn](https://avatars.githubusercontent.com/u/13356945?v=4)](https://github.com/andersrehn "andersrehn (40 commits)")[![pbrotherton](https://avatars.githubusercontent.com/u/19387424?v=4)](https://github.com/pbrotherton "pbrotherton (24 commits)")[![whitespace-dev](https://avatars.githubusercontent.com/u/10450088?v=4)](https://github.com/whitespace-dev "whitespace-dev (10 commits)")[![degeer](https://avatars.githubusercontent.com/u/282174?v=4)](https://github.com/degeer "degeer (8 commits)")[![jeanfredrik](https://avatars.githubusercontent.com/u/8242740?v=4)](https://github.com/jeanfredrik "jeanfredrik (6 commits)")[![Tsubarah](https://avatars.githubusercontent.com/u/67978743?v=4)](https://github.com/Tsubarah "Tsubarah (3 commits)")[![VeebornWS](https://avatars.githubusercontent.com/u/32060473?v=4)](https://github.com/VeebornWS "VeebornWS (1 commits)")

---

Tags

analyticscontent-insightsmatomovisitor-statisticswordpressmatomoanalyticsbroken-linkseditorscontent insights

### Embed Badge

![Health badge](/badges/municipio-content-insights-for-editors/health.svg)

```
[![Health](https://phpackages.com/badges/municipio-content-insights-for-editors/health.svg)](https://phpackages.com/packages/municipio-content-insights-for-editors)
```

###  Alternatives

[spatie/laravel-analytics

A Laravel package to retrieve Google Analytics data.

3.2k5.7M57](/packages/spatie-laravel-analytics)[rubix/ml

A high-level machine learning and deep learning library for the PHP language.

2.2k1.4M28](/packages/rubix-ml)[segmentio/analytics-php

Segment Analytics PHP Library

25621.5M25](/packages/segmentio-analytics-php)[panphp/pan

A simple, lightweight, and privacy-focused product analytics php package.

1.2k94.6k5](/packages/panphp-pan)[zumba/amplitude-php

PHP SDK for Amplitude

409.5M5](/packages/zumba-amplitude-php)[bezhansalleh/filament-google-analytics

Google Analytics integration for FilamentPHP

205144.8k5](/packages/bezhansalleh-filament-google-analytics)

PHPackages © 2026

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