PHPackages                             magento-ecg/magniffer - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. magento-ecg/magniffer

ActiveLibrary[Testing &amp; Quality](/categories/testing)

magento-ecg/magniffer
=====================

An extendable, XPath driven, static code analysis tool for Magento, built on the top of PHP-Parser library.

1.0(11y ago)7358518[3 issues](https://github.com/magento-ecg/magniffer/issues)MITPHPPHP &gt;=5.4

Since Mar 23Pushed 9y ago12 watchersCompare

[ Source](https://github.com/magento-ecg/magniffer)[ Packagist](https://packagist.org/packages/magento-ecg/magniffer)[ Docs](https://github.com/magento-ecg/magniffer)[ RSS](/packages/magento-ecg-magniffer/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)Dependencies (4)Versions (3)Used By (0)

magniffer
=========

[](#magniffer)

An extendable, XPath driven, static code analysis tool for Magento, built on the top of PHP-Parser library.

List of Detected Issues
=======================

[](#list-of-detected-issues)

- SQL Queries Within a Loop
- Not Limiting Collection Load Result
- Empty Class
- Empty Method
- Expression is Always True
- Empty Password in Configuration File
- Handling Overly Broad Event
- Use of Global Event
- Configuration Not in adminhtml.xml.

Installation
============

[](#installation)

With [Composer](http://getcomposer.org/):

```
composer require --dev magento-ecg/magniffer

```

Basic Usage
===========

[](#basic-usage)

```
$ php ./vendor/bin/mgf /path/to/files

```

Extending
=========

[](#extending)

It's easy to create a custom inspection by declaring a message, xpath and inspector in YAML file. For example:

```
message   : Empty Class
xpath     : //node:Stmt_Class[count(subNode:stmts/scalar:array/*) = 0]/subNode:name/scalar:string
inspector : php

```

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 84.6% 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

Unknown

Total

1

Last Release

4118d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/472255?v=4)[Alex Zarichnyi](/maintainers/zlik)[@zlik](https://github.com/zlik)

---

Top Contributors

[![zlik](https://avatars.githubusercontent.com/u/472255?v=4)](https://github.com/zlik "zlik (11 commits)")[![steverobbins](https://avatars.githubusercontent.com/u/3498562?v=4)](https://github.com/steverobbins "steverobbins (1 commits)")[![Wohlie](https://avatars.githubusercontent.com/u/329240?v=4)](https://github.com/Wohlie "Wohlie (1 commits)")

### Embed Badge

![Health badge](/badges/magento-ecg-magniffer/health.svg)

```
[![Health](https://phpackages.com/badges/magento-ecg-magniffer/health.svg)](https://phpackages.com/packages/magento-ecg-magniffer)
```

###  Alternatives

[infection/infection

Infection is a Mutation Testing framework for PHP. The mutation adequacy score can be used to measure the effectiveness of a test set in terms of its ability to detect faults.

2.2k28.9M2.2k](/packages/infection-infection)[behat/behat

Scenario-oriented BDD framework for PHP

4.0k100.2M2.1k](/packages/behat-behat)[phparkitect/phparkitect

Enforce architectural constraints in your PHP applications

9184.1M24](/packages/phparkitect-phparkitect)[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

101466.4k45](/packages/friendsoftypo3-content-blocks)[jolicode/castor

A lightweight and modern task runner. Automate everything. In PHP.

54642.4k4](/packages/jolicode-castor)[aeliot/todo-registrar

Register TODOs from source code in issue tracker

153.0k](/packages/aeliot-todo-registrar)

PHPackages © 2026

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