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 10y 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 4w 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 74% 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

4163d 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

[zircote/swagger-php

Generate interactive documentation for your RESTful API using PHP attributes (preferred) or PHPDoc annotations

5.3k148.6M670](/packages/zircote-swagger-php)[jolicode/castor

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

55344.7k5](/packages/jolicode-castor)[friendsoftypo3/content-blocks

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

103574.3k68](/packages/friendsoftypo3-content-blocks)[phpro/grumphp

A composer plugin that enables source code quality checks.

4.3k17.0M1.1k](/packages/phpro-grumphp)[typo3/cms

TYPO3 CMS is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.

1.2k1.9M122](/packages/typo3-cms)[phparkitect/phparkitect

Enforce architectural constraints in your PHP applications

9244.5M32](/packages/phparkitect-phparkitect)

PHPackages © 2026

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