Magniffer
An extendable, XPath driven, static code analysis tool for Magento, built on the top of PHP-Parser library.
Install / Use
/learn @magento-ecg/MagnifferREADME
magniffer
An extendable, XPath driven, static code analysis tool for Magento, built on the top of PHP-Parser library.
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
With Composer:
composer require --dev magento-ecg/magniffer
Basic Usage
$ php ./vendor/bin/mgf /path/to/files
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
Related Skills
node-connect
349.7kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.7kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.7kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
