How mekkumar/module-store-health works
StoreHealth AI is a Magento Admin health dashboard. An administrator opens the dashboard, then its check endpoint invokes HealthChecker and returns JSON containing store checks, a score, attention items, and opportunities. The sampled checker implements product, category, cache, indexer, and cron signals. The README also describes the business-facing dashboard capabilities; unsampled presentation wiring and any AI or external analytics integrations are not mapped as implemented.
Main entry points: HealthChecker.php Health checker · Check.php Health check endpoint · dashboard.phtml Dashboard view · Index.php Dashboard page action
Components 19
Admin dashboard
- Dashboard page action
Controller/Adminhtml/Dashboard/Index.php - Dashboard block
Block/Adminhtml/Dashboard.php - Dashboard view
view/adminhtml/templates/dashboard.phtml - Dashboard JavaScript
view/adminhtml/web/js/dashboard.js - Dashboard styles
view/adminhtml/web/css/dashboard.css - Health check endpoint
Controller/Adminhtml/Dashboard/Check.php
Health analysis
- Health checker
Model/Health/HealthChecker.php - Product health
Model/Health/HealthChecker.php - Category health
Model/Health/HealthChecker.php - Cache health
Model/Health/HealthChecker.php - Indexer health
Model/Health/HealthChecker.php - Cron health
Model/Health/HealthChecker.php - Score and insights
Model/Health/HealthChecker.php
Magento signals
- Magento products
- Magento categories
- Magento cache manager
- Magento indexers
- Magento cron schedule
Other components
- Administrator
Connections 18
- Administrator → Dashboard page action: opens
README.md - Dashboard page action → Dashboard block: renders dashboard
Controller/Adminhtml/Dashboard/Index.php - Dashboard block → Health check endpoint: provides check URL
Block/Adminhtml/Dashboard.php - Dashboard view → Dashboard JavaScript: initializes
- Dashboard view → Dashboard styles: uses styles
- Health check endpoint → Health checker: runs checks
Controller/Adminhtml/Dashboard/Check.php - Health checker → Product health: computes
Model/Health/HealthChecker.php - Health checker → Category health: computes
Model/Health/HealthChecker.php - Health checker → Cache health: computes
Model/Health/HealthChecker.php - Health checker → Indexer health: computes
Model/Health/HealthChecker.php - Health checker → Cron health: computes
Model/Health/HealthChecker.php - Health checker → Score and insights: builds insights
Model/Health/HealthChecker.php - Product health → Magento products: queries
Model/Health/HealthChecker.php - Category health → Magento categories: counts
Model/Health/HealthChecker.php - Cache health → Magento cache manager: reads status
Model/Health/HealthChecker.php - Indexer health → Magento indexers: checks states
Model/Health/HealthChecker.php - Cron health → Magento cron schedule: counts jobs
Model/Health/HealthChecker.php - Health check endpoint → Administrator: returns JSON
Controller/Adminhtml/Dashboard/Check.php