Elements Panel Logo Elements Panel

Benchmark elements and eager-loading in the debug toolbar.

Displays how many elements were populated.

Warns you if eager-loading opportunities are detected.

The Elements Panel plugin adds an Elements and an Eager-Loading panel to the debug toolbar for benchmarking your templates in Craft CMS.

Elements panel

Elements #

Displays how many elements were populated and how many are duplicates, grouped by element type.

A duplicate means that the same element was populated more than once. It is usually possible to avoid this by eager-loading or memoizing, other times it is not, which is generally acceptable provided the number of duplicate elements doesn’t explode.

Elements

Eager-Loading #

Warns you if opportunities for eager-loading elements are detected. Displays how many queries were executed (that could be eager-loaded) and how many are duplicates, grouped by field name.

A duplicate means that the same element query was execute more than once. It is usually possible to avoid this by memoizing, other times it is not, which is generally acceptable provided the number of duplicate queries doesn’t explode.

Eager-Loading

License #

This plugin is licensed for free under the MIT License.

Requirements #

Craft CMS 3.0.0 or later.

Installation #

To install the plugin, search for Elements Panel” in the Craft Plugin Store, or install manually using composer.

composer require putyourlightson/craft-elements-panel