PHPackages                             magefine/performance-mess-detector - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. magefine/performance-mess-detector

ActiveMagento2-module[Logging &amp; Monitoring](/categories/logging)

magefine/performance-mess-detector
==================================

This Magento 2 module provides tools to monitor and improve performance by detecting and logging potential bottlenecks in the system. It specifically focuses on tracking slow controller actions, repeated SQL queries, and other performance issues that may impact your Magento store.

1.0.2(1y ago)12OSL-3.0PHPPHP 8.\*

Since Nov 23Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Magefine/performance-mess-detector)[ Packagist](https://packagist.org/packages/magefine/performance-mess-detector)[ RSS](/packages/magefine-performance-mess-detector/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (4)Used By (0)

Magento 2 Performance Monitoring Module
=======================================

[](#magento-2-performance-monitoring-module)

Overview
--------

[](#overview)

This Magento 2 module provides tools to monitor and improve performance by detecting and logging potential bottlenecks in the system. It specifically focuses on tracking slow controller actions, repeated SQL queries, and other performance issues that may impact your Magento store.

---

Features
--------

[](#features)

- **Controller Performance Tracking**
    Logs the execution time of all controller actions and identifies actions that exceed a configurable threshold (e.g., 500 ms).
- **SQL Query Optimization**
    Detects identical or repeated SQL queries executed during a single request cycle. Detects slow queries.
- **Customizable Thresholds**
    Allows you to configure thresholds for what constitutes a "slow" action or query via the Magento Admin panel. (INCOMING SOON)
- **Full stack trace of any logged notice**
- **Detailed Logging**
    Logs all detected issues, including the following:

    - Full action name of the controller.
    - Class name of the controller.
    - Execution time in milliseconds.

---

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

[](#installation)

### 1. Composer Installation

[](#1-composer-installation)

```
composer require vendor/performance-mess-detector
bin/magento module:enable Magefine_PerformanceMessDetector
bin/magento setup:upgrade
bin/magento cache:flush
```

### 2. Manual Installation

[](#2-manual-installation)

- **Download or clone this repository into the app/code/Magefine/PerformanceMessDetector directory.**
- **Run the following commands:**

```
bin/magento module:enable Magefine_PerformanceMessDetector
bin/magento setup:upgrade
bin/magento cache:flush
```

### 3. Usage

[](#3-usage)

The module logs detected performance issues in the following log files:

var/log/debug.log

Examples:

```
[2024-11-23T21:46:31.127886+00:00] main.DEBUG: [PMD] Slow action detected : cms_index_index (Magento\Cms\Controller\Index\Index\Interceptor) http://magento.local:8080/ | Execution time : 1027 ms [] []
[PMD] MULTIPLE IDENTICAL SQL QUERIES DETECTED : {"url":"http:\/\/magento.local:8080\/","query":"SELECT `e`.*, IF(at_include_in_menu.value_i...

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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

Total

3

Last Release

541d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/271f389a1d010040dd301979a71cae7555d5ad552372fac399a8bdc2a8d4a00c?d=identicon)[Magefine](/maintainers/Magefine)

### Embed Badge

![Health badge](/badges/magefine-performance-mess-detector/health.svg)

```
[![Health](https://phpackages.com/badges/magefine-performance-mess-detector/health.svg)](https://phpackages.com/packages/magefine-performance-mess-detector)
```

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.2k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M138](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[ekino/newrelic-bundle

Integrate New Relic into Symfony2

28111.2M8](/packages/ekino-newrelic-bundle)

PHPackages © 2026

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