The Home for
Magento Excellence

Explore. Discover. Elevate. #magento

162
Modules Tested
99
Ready for Magento 2.4
63
Need Your Help
Stale v0.0.5

Yireo ThemeOverrideChecker

yireo/magento2-theme-override-checker

Magento module to find all files of a given Magento theme (for example Magento/luma), compare the found files with the parent theme (and/or modules) and return whether there are differences or not.

6,851
Downloads
Below average
17
GitHub Stars
Below average
1y ago
Last Release
1
Open Issues
Build Issues
2/3 checks passed

Build Tests

Composer Install
DI Compile
Templates

Code Quality

CS Coding Standard
PHPStan Failed

Tested on Magento 2.4.8-p3

Recent Test History

Each release is tested against the latest Magento version at that time.

v0.0.5 on Magento 2.4.8-p3
Dec 16, 2025
v0.0.5 on Magento 2.4.7-p4
Feb 15, 2025
v0.0.5 on Magento 2.4.7-p3
Oct 24, 2024
v0.0.5 on Magento 2.4.7-p2
Sep 13, 2024
v0.0.4 on Magento 2.4.7-p2
Sep 8, 2024
v0.0.4 on Magento 2.4.7-p2
Sep 8, 2024

+5 older tests

GitHub Repository
Source code & docs
Packagist
Version history
Issues & Support
Get help or report bugs

Looking for Contributors

Dependency injection compilation fails. Your contribution could help the entire Magento community!

Contribute

Share This Module's Status

Yireo ThemeOverrideChecker Magento compatibility status badge

README

Loaded from GitHub

Yireo ThemeOverrideChecker

Magento module to find all files of a given Magento theme (for example Magento/luma), compare the found files with the parent theme (and/or modules) and return whether there are differences or not.

Current status: Beta, ready for trying out

Installation

composer require yireo/magento2-theme-override-checker:@dev
bin/magento module:enable Yireo_ThemeOverrideChecker

Usage

List all possible overrides, with a warning for unneeded overrides (with no changes) and a red warning when lines are different:

bin/magento yireo:theme-overrides:check Magento/luma

List all specific override details for a specific file:

bin/magento yireo:theme-overrides:show Magento/luma web/jquery.js
bin/magento yireo:theme-overrides:show Magento/blank web/css/source/_theme.less

List a diff between the current version and the parent theme version:

bin/magento yireo:theme-overrides:diff Magento/luma web/css/source/_theme.less

FAQ

How does this work?

AmpersandHQ developed an excellent tool ampersand-magento2-upgrade-patch-helper to check the status of a current project. Part of this is that it also scans for override files in the theme. However, it does not report what overriding files actually means. For instance, is overriding an XML layout file good or bad? How many lines of overriding a JavaScript file classifies as a bad practice?

Todo

  • Support for multiple parent themes
  • Make contextLines in DifferGenerator configurable
  • Improve adviser
    • An XML layout file with dozens of line differences is ok
    • An XML override file is dangerous
    • An PHTML / JS / CSS file with dozens of line differences is dangerous
    • Markdown and text files can be the same
    • SVG files can be totally different

This content is fetched directly from the module's GitHub repository. We are not the authors of this content and take no responsibility for its accuracy, completeness, or any consequences arising from its use.

Back to All Modules