PHPackages                             agonyz/contao-page-speed-insights-bundle - 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. [API Development](/categories/api)
4. /
5. agonyz/contao-page-speed-insights-bundle

ActiveContao-bundle[API Development](/categories/api)

agonyz/contao-page-speed-insights-bundle
========================================

Automatically get page speed insights for pages

2.0.2(2y ago)237LGPL-3.0-or-laterPHPPHP ^7.4 || ^8.0

Since Jul 30Pushed 2y ago1 watchersCompare

[ Source](https://github.com/agonyz/contao-page-speed-insights-bundle)[ Packagist](https://packagist.org/packages/agonyz/contao-page-speed-insights-bundle)[ Docs](https://github.com/agonyz/contao-page-speed-insights-bundle)[ RSS](/packages/agonyz-contao-page-speed-insights-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (10)Versions (9)Used By (0)

Page Speed Insights Bundle
==========================

[](#page-speed-insights-bundle)

Extension for the [Contao CMS](https://www.contao.org)
------------------------------------------------------

[](#extension-for-the-contao-cms)

This extension can be used to automatically track the [page speed insights](https://pagespeed.web.dev/) for your root domains.

For a Quick-Setup follow this link: [Guide-For-Quick-Setup](docs/QuickSetup.md)

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

[](#installation)

Run `composer require agonyz/contao-page-speed-insights-bundle` in your CLI to install the extension.

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

[](#configuration)

To use the [Page Speed Insights API](https://pagespeed.web.dev/) you need to register an [Api Key](https://developers.google.com/speed/docs/insights/v5/get-started?hl=de).
You can edit the configuration in your `config/config.yml`

```
# config/config.yml
# Agonyz Page Speed Insights
agonyz_contao_page_speed_insights:
  api_key: your-secret-api-key
  request_retries: 3 # retries for each strategy (desktop & mobile)
  pool_request_concurrency: 10 # indicates how many requests are sent simultaneously
  request_pagination: 15 # indicates how many requests are shown in the overview per page
  request_status_refresh_rate: 5000 # duration for the ajax request to check the status of the current process
```

Please remember to always clear the cache after each change in the `config.yml`.
It may be also needed to delete the cached results via command after changes in the config file.

Choose which pages to track
---------------------------

[](#choose-which-pages-to-track)

In the root page configuration navigate to `Page Speed Insights Bundle` and tick the checkbox.

Commands &amp; Cronjob
----------------------

[](#commands--cronjob)

### Commands

[](#commands)

- `agonyz-page-speed-insights:request` - generates new request results and saves them to the database

### Cronjob

[](#cronjob)

You can either implement your own cronjob or use contao cron

#### Via Command

[](#via-command)

- Create a cronjob that executes the `agonyz-page-speed-insights:request` - Command

#### Via Cron

[](#via-cron)

- Configurate `Agonyz\ContaoPageSpeedInsightsBundle\Cron\PageSpeedInsightsCron` in your `config/services.yml`

Example:

```
# Cronjob
services:
  Agonyz\ContaoPageSpeedInsightsBundle\Cron\PageSpeedInsightsCron:
    tags:
      -
        name: contao.cronjob
        interval: '0 */24 * * *'
    arguments:
      [ '@contao.framework', '@Agonyz\ContaoPageSpeedInsightsBundle\Service\Request\RequestHandler']
```

Documentation:

Page Speed Insights
-------------------

[](#page-speed-insights)

In the backend navigate to the `Pagespeed-Insights` - entry point.

[![psibundle](docs/page_speed_insights_bundle_new.png?raw=true "psibundle")](docs/page_speed_insights_bundle_new.png?raw=true)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

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

Recently: every ~85 days

Total

8

Last Release

1032d ago

Major Versions

1.2.1 → 2.0.02022-10-20

### Community

Maintainers

![](https://www.gravatar.com/avatar/e18dc2971df71e03b51ea9c4682182cdb17f2cdb1b3744964dba01fe561f54fd?d=identicon)[agonyz](/maintainers/agonyz)

---

Top Contributors

[![agonyz](https://avatars.githubusercontent.com/u/71080150?v=4)](https://github.com/agonyz "agonyz (25 commits)")

---

Tags

apigoogleInsightscontaoautomaticanalysePageSpeed

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/agonyz-contao-page-speed-insights-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/agonyz-contao-page-speed-insights-bundle/health.svg)](https://phpackages.com/packages/agonyz-contao-page-speed-insights-bundle)
```

###  Alternatives

[sgrodzicki/pagespeed

A PHP library to interact with the PageSpeed Insights API

48130.9k](/packages/sgrodzicki-pagespeed)[smnandre/pagespeed-api

PageSpeed Insight PHP Api Client 🚀 Analyse web pages for performances metrics, core web vitals...

1511.5k](/packages/smnandre-pagespeed-api)[jcf/geocode

Google Geocoding API for Laravel

48160.5k](/packages/jcf-geocode)[eko/googletranslatebundle

A Symfony bundle to deals with Google Translate API

4337.1k](/packages/eko-googletranslatebundle)

PHPackages © 2026

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