Repository navigation
Description
Part of #115. Start after #108 to #114 are merged; they rewrite these pages.
These 9 pages scored 19 to 22 of 25 in the audit. None needs a rewrite; what remains are gaps in coverage and smaller fixes. Tick a page when its notes are dealt with: fixed, or checked and found not to apply. Weakest first.
magento-2-coding-standards: 19/25
- Done. Effort: about an hour. A practical phpcs page whose rule table gives an assistant exact sniff names and fixes, but it treats "coding standards" as phpcs only, and ignores two tools the project ships.
Notes
Line numbers refer to the page as it is with all pull requests open on 2026-11-30 merged, so they are approximate. The notes come from an AI-assisted review of the page; a note marked "doubt" was not checked against the code. Check each one before acting on it.
Problems
- (lines 108, 47-49) the types of
Magento2.Legacy.EscapeMethodsOnBlockClass,Magento2.Annotation.MethodAnnotationStructureandMagento2.Annotation.MethodArgumentshave no<type>in the ruleset and could not be confirmed. Doubt. - (lines 47-49) "Give every method a PHPDoc block, even when all types are declared": the samples on
service-contracts(implementations),overview-of-magento-2-development,layouts-blocks-and-templatesandhyva-module-compatibilityhave constructors and methods without one, so the docs' own code produces these warnings. - The project template also ships
friendsofphp/php-cs-fixer(require-dev) with.php-cs-fixer.dist.phpin the project root; the page does not mention it or say how it relates tophpcbf. - (lines 28-29) JavaScript rules "as an ESLint configuration in
vendor/mage-os/magento-coding-standard/eslint/" (the directory holdseslint.config.mjs), but no command to run ESLint with it. - (lines 89-100) "Where code goes" repeats
directory-structureandbrief-explanation-of-each-componentand is not a coding-standard topic. - Nav label "Magento 2 coding standards" and slug
magento-2-coding-standardsvs H1 "Coding standards"; the standard is calledMagento2, the label still reads as the old product name. - (lines 21-23, 33-35) no sample of the report, so the reader does not see where the sniff name used in the table and in
phpcs:ignoreappears (-soption).
Missing
- The design rules that are not sniffs: constructor injection only, no
ObjectManagerin classes, no work in constructors (which now also decides lazy creation in Mage-OS 4.0.0), no helpers for new code, interfaces over classes,declare(strict_types=1). - Naming conventions: module and package names, event names, config paths, table and column names, layout handles and block names, plugin and observer names.
- Template, LESS and JavaScript rules in prose (escaping is covered elsewhere; inline scripts,
varversusconst, Hyvä templates under theMagento2standard are not). - PHP version compatibility checks with the bundled
mage-os/php-compatibility-fork. - A project
phpcs.xml.distand how to run the checks in CI or a pre-commit hook; severity thresholds (--severity=). - The other tools in
require-devin one table: PHPMD, php-cs-fixer, PHPStan, andinchoo/magento-bricklayer(present in thecomposer.jsonof a 4.0.0 project; mentioned on no page of this set).
best-practices-for-extension-development: 20/25
- Done. Effort: about an hour. Accurate and specific checklist with working samples, but as a release checklist it has no performance, caching, CSP, logging or uninstall items, and it repeats the registration and
magento/*guidance of the previous page.
Notes
Line numbers refer to the page as it is with all pull requests open on 2026-11-30 merged, so they are approximate. The notes come from an AI-assisted review of the page; a note marked "doubt" was not checked against the code. Check each one before acting on it.
Problems
- (line 16-27) the full
registration.phpand themagento/*replace rule are repeated fromdeveloping-extensions-in-magento-2; a checklist item with a link would do. - (line 187-196) "Security" has four bullets and no CSP rule (no inline scripts without
SecureHtmlRenderer,etc/csp_whitelist.xmlfor external hosts), although CSP breaks extensions most often in practice. - (line 198-210) "Code quality and tests" gives no commands; the reader has to open three other pages to run anything.
- (line 71-80) the
FreeShippingCheckersample comparesgetPrice()with a threshold; as a DI illustration fine, butgetPrice()is empty for configurable and bundle products, which the page doesn't say. - (line 208-210) the Luma/Hyvä note doesn't say which theme a fresh Mage-OS 4.0.0 install uses, so the reader can't tell which storefront to test first.
Missing
- Performance rules: no model loads in loops, collections with needed columns only,
cacheable="false"forbidden on shared pages, cache identities for custom blocks. - Configuration defaults in
etc/config.xml, logging throughPsr\Log\LoggerInterface, exception handling. - Uninstall and data ownership: revertable patches, what
module:uninstalldoes. - Composer rules for a release: version constraints, no
versionfield,composer validate(only on the previous page). - Area-specific plugin scoping example (e.g. why a
frontendplugin doesn't run in GraphQL).
how-to-contribute-to-the-magento-2-community: 20/25
- Done. Effort: about an hour. Matches
.github/CONTRIBUTING.mdat tag 4.0.0 and gives exact docs-format rules an assistant can follow, but keeps a "magento-2" slug.
Notes
Line numbers refer to the page as it is with all pull requests open on 2026-11-30 merged, so they are approximate. The notes come from an AI-assisted review of the page; a note marked "doubt" was not checked against the code. Check each one before acting on it.
Problems
- (nav / slug) slug
how-to-contribute-to-the-magento-2-community, navigation label "Community Contribution", H1 "Contributing to Mage-OS": three names for one page. - (line 21-25) "open an issue first" for larger features and "Propose new features in the Mage-OS Lab discussions" two bullets later; the rule for choosing isn't given.
- (line 74-78) the three commands have no expected result and no note on running them in a container;
composer installon the monorepo takes its packages from where? Not said. - (line 83)
git add .stages everything in a repository of this size; unsafe to copy. - (line 152-161) the banner rule says to add
communityNote: falseonly after every sample was run; in this set onlyadd-custom-shipping-carriercarries the flag, and it is one of the weakest pages. - (line 91) the "Mage-OS contributing guide" (
https://mage-os.org/community/contributing/) thatCONTRIBUTING.mdpoints to isn't linked.
Missing
- Where each Mage-OS-specific module and bundled third-party package is developed (repository per package).
- How to test a core change inside a real project (path repository or patch) and how to run integration and static tests for a pull request (links exist only to coding standards).
- Release flow: when a merged pull request ships, and how upstream Magento releases are merged in.
- Commit message convention and whether a CLA or sign-off is required.
glossary-of-terms: 20/25
- Done. Effort: about an hour. The 45 definitions are short, exact and correct, and the Scope entry is the best statement of website, store and store view in the set; but the selection leans to backend wiring, so the ORM, frontend and Mage-OS-specific terms the other pages use are not defined, and no page links here.
Notes
Line numbers refer to the page as it is with all pull requests open on 2026-11-30 merged, so they are approximate. The notes come from an AI-assisted review of the page; a note marked "doubt" was not checked against the code. Check each one before acting on it.
Problems
- Terms used on the pages of this set but not defined: model, resource model, collection, data interface, search criteria; UI component, jsLayout, mixin, widget, RequireJS, Knockout, Alpine.js, Tailwind CSS; customer (section) data, Content Security Policy; router, action, result; attribute (only "Attribute set" exists).
- Mage-OS-specific terms are missing: compiled interceptors and the
compiled_pluginscache type, lazy ghost andNonLazy, the M137 admin theme,replaceincomposer.json(howmage-os/*stands in formagento/*), metapackage, n98-magerun2. - (lines 155-184) "Plugin" is a 30-line entry with a PHP class and an XML fragment, argued around one case ("it can't change anything for
getName()"); every other entry is two to four lines. The fragment has no<config>root and no file path. This belongs onplugins. - (lines 204-211) website, store and store view are defined only inside "Scope"; there are no entries under S and W, so an alphabetical lookup of "Store view" fails although the description (line 2) advertises it.
- (line 135) "Queues run on MySQL, RabbitMQ (AMQP) or STOMP" is right and contradicts
core-featuresline 82 ("MySQL or RabbitMQ"). - (line 111-112) "Interceptor ... calls the plugins around the original methods" does not mention that Mage-OS compiles the plugin calls into the class, the fact three other pages build a rule on.
- The page has 0 inbound links; no page links a term to its definition.
- 19 single-letter H2 headings fill the table of contents with letters that hold one or two entries each.
Missing
- Commerce entities a developer meets in code: quote, order, invoice, shipment, credit memo, SKU, product types, category, customer group.
- Inventory terms (source, stock, reservation, salable quantity), since Multi-Source Inventory ships by default.
- Configuration files as terms:
app/etc/env.php(deployment configuration),app/etc/config.php,core_config_data,db_schema_whitelist.json. - Services: OpenSearch, Valkey or Redis, Varnish, RabbitMQ, with one line on what Mage-OS uses each for.
- Cron job, consumer and topic as separate entries; REST, SOAP and GraphQL instead of only "Web API".
developing-extensions-in-magento-2: 21/25
- Done. Effort: about an hour. Solid, current walkthrough (replace entries, PHP constraint, Symfony Console 7.4 and the compiled interceptors verified in the installed 4.0.0 packages), held back by a risky sample plugin, missing production and removal steps, and a navigation label that still says "Magento 2".
Notes
Line numbers refer to the page as it is with all pull requests open on 2026-11-30 merged, so they are approximate. The notes come from an AI-assisted review of the page; a note marked "doubt" was not checked against the code. Check each one before acting on it.
Problems
- (nav / line 6) navigation label and slug read "Developing extensions in Magento 2", the H1 is "Create and package an extension"; the label names the wrong product and doesn't match the page.
- (line 233) "Mage-OS compiles plugins into the generated interceptor classes" is correct for Mage-OS 4.0.0 (
Creatuity_Interceptionis enabled), but the page doesn't name that module or say that this differs from stock Magento, where a cache flush is enough in developer mode;di_xmlnames it. The page also never says whensetup:di:compileis needed instead. - (line 203-230) the sample plugin
afterGetNameonMagento\Catalog\Model\Productappends "Free shipping" to every product name on the storefront; that name is copied into quote and order items, and the method is called very often. Not a pattern to copy without a warning. - (line 329-333) "Install from a Git repository" ends at
setup:upgrade; on a production-mode shopsetup:di:compileandsetup:static-content:deployare also needed, and the deployment page isn't linked. - (line 10) "An extension is a module, theme or language package", but only the module is shown; no
ComponentRegistrar::THEME/LANGUAGEregistration and no link to theme development. - (line 300-303) expected output of
vendor:example:hello Aliceand ofmodule:statusisn't stated.
Missing
- Removing an extension:
module:disable,composer remove, what stays behind (tables,patch_listrows,core_config_data). - Production install steps (compile, static content deploy,
app/etc/config.phpin version control). - Publishing a public package (Packagist, licence such as OSL-3.0) and constraints that span several Magento/Mage-OS versions.
etc/config.xmldefaults andetc/acl.xmlin the "Add features" table.
how-to-get-help-and-support: 21/25
- Done. Effort: about an hour. Short and concrete (channels, issue template, security address, README location all exist); a few volatile facts and no route for problems that belong to extension or theme vendors.
Notes
Line numbers refer to the page as it is with all pull requests open on 2026-11-30 merged, so they are approximate. The notes come from an AI-assisted review of the page; a note marked "doubt" was not checked against the code. Check each one before acting on it.
Problems
- (line 18) hard-coded invite
https://discord.gg/8ARDbfhqwG;.github/CONTRIBUTING.mdat tag 4.0.0 uses the stable redirecthttps://mage-os.org/discord-channel/. Invite codes expire. - (line 22) "every Tuesday at 3:00 PM CET" is a fact that changes silently (CET/CEST, schedule); no link to a calendar. Repeated on the contribution page (line 26-27).
- (line 54-55) feature proposals are sent to the Mage-OS Lab discussions, while the repository ships a
feature_request.yamlissue template and the contribution page (line 21) says "open an issue first": which one is meant? - (line 59) "Report bugs in PHP itself in the PHP issue tracker" is out of place on this page.
- (line 40) names
exception.logandsystem.logbut notvar/report/<id>(the file behind the "error log record number" page) nor developer mode.
Missing
- Problems in third-party extensions and in Hyvä: where those are reported.
- A link to the troubleshooting page and to the docs' own "Mage-OS for Magento developers" page before asking.
- How to check whether a bug is already fixed upstream or in a newer Mage-OS release.
best-practices-for-secure-development: 22/25
- Done. Effort: about an hour. Precise, verifiable rules with complete samples (CSRF behaviour, CSP defaults and the
TypePooldump behaviour match the code); gaps are private data on cached pages, file handling and frontend-side XSS.
Notes
Line numbers refer to the page as it is with all pull requests open on 2026-11-30 merged, so they are approximate. The notes come from an AI-assisted review of the page; a note marked "doubt" was not checked against the code. Check each one before acting on it.
Problems
- (line 208-209) doubt: "
exec(),shell_exec(),system()andeval()are reported byMagento2.Security.InsecureFunction":evalis a language construct and is probably reported by a different sniff (Magento2.Security.LanguageConstruct); not verified. - (line 24-25) "skip this check ... return
trueorfalsefromvalidateForCsrf()": returningfalserejects the request, it doesn't skip anything; say that the action's answer replaces the form key check. - (line 205) "
FilterManagerhas nosanitizefilter" answers a claim that is no longer on any page. - (line 97-105, 251-258) the two template samples have no file path, unlike the controller sample.
- (line 107-109) the AJAX form key advice covers the
form_keycookie only; for Hyvä storefronts the helper (hyva.getFormKey()) isn't named, although line 261 addresses Hyvä. - (line 129) "Security features has an example" sends the reader to a weaker duplicate of this section.
Missing
- Private data and the full page cache: never render customer-specific data in cacheable blocks; use customer sections or
cacheable="false"with care. - File handling in module code: uploads, path traversal, reading and writing through
Magento\Framework\Filesystem(now only on the features page). - XSS on the JavaScript side: Knockout
htmlbinding, Alpinex-html, values passed throughx-magento-initJSON. - Admin UI components and mass actions:
aclResourcein UI component XML, ACL for grid data providers. - Open redirects (redirecting to a URL taken from the request) and encrypting non-config secrets with
EncryptorInterface::encrypt().
reporting-security-issues: 22/25
- Done. Effort: about an hour. Short, correct and matches
SECURITY.mdat tag 4.0.0 (addresses, HackerOne, no paid Mage-OS bounty); only process details are missing.
Notes
Line numbers refer to the page as it is with all pull requests open on 2026-11-30 merged, so they are approximate. The notes come from an AI-assisted review of the page; a note marked "doubt" was not checked against the code. Check each one before acting on it.
Problems
- (line 32-33) doubt: the example output "Mage-OS CLI 4.0.0 (based on Magento 2.4.9)" was not found as a literal string in
mage-os/framework; may be assembled at runtime. - (line 46) doubt: link
https://mage-os.org/product/releasesnot checked. - (line 19) "a Mage-OS Lab module" is not explained or linked.
Missing
- What happens after a report: acknowledgement, time frame, CVE assignment, credit, coordinated disclosure.
- Where to report issues in bundled third-party packages (for example
aligent/magento2-pci-4-compatibility). - Where shop owners get notified of security releases (mailing list, Discord announcement channel).
how-to-add-your-own-products-links-providers: 22/25
- Done. Effort: about an hour. Complete step-by-step tutorial with file paths, expected results after each step and the non-obvious pitfalls (link deletion on save, cache tags, fixed ID); held back by a slug and navigation label that don't match the title and by missing import/GraphQL coverage. Not checked against code, the class and method names match the core modifier as far as I can tell.
Notes
Line numbers refer to the page as it is with all pull requests open on 2026-11-30 merged, so they are approximate. The notes come from an AI-assisted review of the page; a note marked "doubt" was not checked against the code. Check each one before acting on it.
Problems
- (nav / line 6) navigation label "How to add your own product-links providers" and slug
...products-links-providersversus H1 "How to Add a Custom Product Link Type"; H1 in Title Case. - (line 381-525) 140 lines of listing XML copied from
related_product_listing.xml; the page doesn't say which lines differ from the core file, so an update of the core listing can't be followed. - (line 245-259) the REST example gives the body but no complete request (method, URL, token header) and no expected response.
- (line 84-98) the fixed ID
6is the weak point of the whole approach; the page says "pick a free ID" but the collision only shows atsetup:upgradeon another database (line 646-647), with no guard in the patch. - (line 565-575) the storefront collection doesn't filter by stock status, which the page doesn't mention.
Missing
- Product import/export of the new link type (CSV columns) and product duplication in the Admin (are accessories copied?).
- How to expose accessories in GraphQL; the page only states that they are absent.
- Removing the module: deleting the link type row and its links.
- A
composer.jsonor a pointer to the packaging page; an integration test for the provider.
Activity