PHPackages                             nystudio107/craft-twigprofiler - 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. [Templating &amp; Views](/categories/templating)
4. /
5. nystudio107/craft-twigprofiler

ActiveCraft-plugin[Templating &amp; Views](/categories/templating)

nystudio107/craft-twigprofiler
==============================

Twig Profiler allows you to profile sections of your Twig templates, and see the resulting timings in the Yii2 Debug Toolbar

5.0.0(2y ago)2267.1k↓35.7%4[2 PRs](https://github.com/nystudio107/craft-twigprofiler/pulls)1MITPHPPHP ^8.2

Since Apr 7Pushed 1y ago1 watchersCompare

[ Source](https://github.com/nystudio107/craft-twigprofiler)[ Packagist](https://packagist.org/packages/nystudio107/craft-twigprofiler)[ GitHub Sponsors](https://github.com/khalwat)[ RSS](/packages/nystudio107-craft-twigprofiler/feed)WikiDiscussions develop-v5 Synced 1mo ago

READMEChangelog (6)Dependencies (4)Versions (14)Used By (1)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/fa32b6e2242173ba329c1bf2d5af2ca0ed478ab7721648a43138055a30d0ff02/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e7973747564696f3130372f63726166742d7477696770726f66696c65722f6261646765732f7175616c6974792d73636f72652e706e673f623d7635)](https://scrutinizer-ci.com/g/nystudio107/craft-twigprofiler/?branch=v5) [![Code Coverage](https://camo.githubusercontent.com/3af426b742fa2995b0d8b3477132dbee9808baee94889feef5354f82c05e9914/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e7973747564696f3130372f63726166742d7477696770726f66696c65722f6261646765732f636f7665726167652e706e673f623d7635)](https://scrutinizer-ci.com/g/nystudio107/craft-twigprofiler/?branch=v5) [![Build Status](https://camo.githubusercontent.com/671f71ef84a1939f68a9d0406780eded920ecbc84bf13e2643594cac4b53aee1/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e7973747564696f3130372f63726166742d7477696770726f66696c65722f6261646765732f6275696c642e706e673f623d7635)](https://scrutinizer-ci.com/g/nystudio107/craft-twigprofiler/build-status/v5) [![Code Intelligence Status](https://camo.githubusercontent.com/279226a5e3a665971c714e7c670bc2f529ee36e375528d0c5a86ac96a31536c9/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e7973747564696f3130372f63726166742d7477696770726f66696c65722f6261646765732f636f64652d696e74656c6c6967656e63652e7376673f623d7635)](https://scrutinizer-ci.com/code-intelligence)

Twig Profiler plugin for Craft CMS 5.x
======================================

[](#twig-profiler-plugin-for-craft-cms-5x)

Twig Profiler allows you to profile sections of your Twig templates, and see the resulting timings in the Yii2 Debug Toolbar

[![Screenshot](./docs/docs/resources/img/plugin-logo.png)](./docs/docs/resources/img/plugin-logo.png)

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

[](#requirements)

This plugin requires Craft CMS 5.0.0 or later.

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

[](#installation)

To install the plugin, follow these instructions.

1. Open your terminal and go to your Craft project:

    ```
     cd /path/to/project

    ```
2. Then tell Composer to load the plugin:

    ```
     composer require nystudio107/craft-twigprofiler

    ```
3. Install the plugin via `./craft install/plugin twig-profiler` via the CLI, or in the Control Panel, go to Settings → Plugins and click the “Install” button for Twig Profiler.

Or you can install the plugin via the **Plugin Store** in the Craft CMS Control Panel.

Documentation
-------------

[](#documentation)

Click here -&gt; [Twig Profiler Documentation](https://nystudio107.com/plugins/twig-profiler/documentation)

Twig Profiler Roadmap
---------------------

[](#twig-profiler-roadmap)

Some things to do, and ideas for potential features:

- Release it

Brought to you by [nystudio107](https://nystudio107.com/)

###  Health Score

45

—

FairBetter than 93% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity38

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity83

Battle-tested with a long release history

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

Recently: every ~0 days

Total

9

Last Release

749d ago

Major Versions

1.0.1 → 4.0.0-beta.12022-03-14

v1.x-dev → 4.0.02024-04-27

v4.x-dev → 5.0.02024-04-27

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7570798?v=4)[Andrew Welch](/maintainers/khalwat)[@khalwat](https://github.com/khalwat)

---

Top Contributors

[![khalwat](https://avatars.githubusercontent.com/u/7570798?v=4)](https://github.com/khalwat "khalwat (44 commits)")

---

Tags

craft-plugincraft3craftcmsperformanceprofilertwigcmsCraftcraftcmscraft-plugintwig profiler

### Embed Badge

![Health badge](/badges/nystudio107-craft-twigprofiler/health.svg)

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

###  Alternatives

[lewisjenkins/craft-dynamic-fields

Populate Craft fields with dynamic data using the power of Twig.

14667.0k](/packages/lewisjenkins-craft-dynamic-fields)[nystudio107/craft-minify

A simple plugin that allows you to minify blocks of HTML, CSS, and JS inline in Craft CMS templates.

37461.2k29](/packages/nystudio107-craft-minify)[jalendport/craft-preparse

A fieldtype that parses Twig when an element is saved and saves the result as plain text.

1086.4k](/packages/jalendport-craft-preparse)[craftpulse/craft-colour-swatches

Let clients choose from a predefined set of colours and utilise associated colour codes and class names in your templates.

3530.8k2](/packages/craftpulse-craft-colour-swatches)[verbb/footnotes

Adds a footnotes feature to CKEditor fields and Twig templates.

213.3k](/packages/verbb-footnotes)

PHPackages © 2026

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