mage-os / module-meta-robots-tag

mage-os/module-meta-robots-tag

NoIndex NoFollow NoArchive Tag extension

  • Samuele Martini
  • Davide Lunardon
  • Tidycode
magento2-module Compatibility: 2.4.7-2.4.9 Code Quality: Fail Tests: N/A Security: Pass MIT

NoIndex NoFollow NoArchive Tag

NoIndex NoFollow NoArchive Tag extension

Installation

  • Composer:
composer require mage-os/module-meta-robots-tag

After installation, enable the module

bin/magento module:enable MageOS_MetaRobotsTag

upgrade your database:

bin/magento setup:upgrade

and compile the Magento dependency injection:

bin/magento setup:di:compile

Usage

Now you can find 3 new attributes in the "Search Engine Optimization" section of products, categories and CMS Page

[image: img.png]

[image: img_1.png]

[image: img_2.png]

By enabling the flag in one of the options, the option will be forced to "no" for that entity

Warning: if the option is not flagged, it does not mean that it will be forced to "yes", but default the configuration in the design settings will be used.

[image: img_3.png]

[1.2.1] - 2026-04-21

Changed

  • PHP 8.5 compatibility (also keeps PHP 8.2, 8.3 and 8.4 compatibility).
  • Declare explicit PHP version constraint in composer.json (~8.2.0||~8.3.0||~8.4.0||~8.5.0).
  • Cast PageConfig::getRobots() result to string before explode() to avoid deprecation/fatal when the metadata value is null.
  • Add missing return types and cleanup PHPDoc blocks on Model\SetMetaRobots, Observer\SetMetaRobotsCatalog, Setup\Patch\Data\*.
  • Promote constructor-promoted properties from private readonly to protected readonly to ease extension.

[1.0.0] - 07/01/2025

Added

  • First module version
Versions
Version Stability QA Status Compatibility Released
1.2.1 stable Fail Magento 2.4.7-2.4.9 Details 2026-05-01 02:43:14
1.2.0 stable Not tested Not yet tested Details 2025-10-07 00:49:13
1.1.0 stable Not tested Not yet tested Details 2025-10-01 16:33:12
1.0.0 stable Not tested Not yet tested Details 2025-03-05 08:55:30

Requires 4

Package Constraint
php ~8.2.0||~8.3.0||~8.4.0||~8.5.0
magento/framework *
magento/module-catalog >=103.0.0
magento/module-cms >=103.0.0

Compatibility

Each Magento release line is installed on its supported PHP versions, then the module is built (DI compilation + static-content deploy) and its unit and integration suites are run. The matrix shows the lines and PHP versions the module is confirmed to install and run on. Code-quality results further down (phpstan, phpcs, …) are reported separately and never affect compatibility.

Compatibility matrix (Magento × PHP)
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 Pass Pass
2.4.8 Pass Pass
2.4.9 Pass Pass

Code Quality

Advisory checks against the module's source. Static analysis runs once across the whole module; PHPStan re-runs per Magento + PHP version because resolvable symbols differ between releases. These NEVER affect the Compatibility badge — a phpcs finding can't make a module incompatible.

Static analysis

Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.

Static analysis results
Tool Status Findings Summary
PHPCS Pass 0
PHPMD Warning 2 2 rule violations (UnusedLocalVariable:1, UnusedFormalParameter:1)
Cpd Pass 0
Composer validate Info 3 valid; 3 advisory notes (composer validate --strict)

PHPStan

Type-checks the module's PHP against a real Magento install at the configured gate level. Re-runs per Magento and PHP version because resolvable symbols differ between releases. Cell → details modal.

PHPStan results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 4 4
2.4.8 4 4
2.4.9 4 4

Tests

Unit and integration suites, run for each applicable Magento and PHP version. A test failure speaks to the module's behaviour, not its compatibility with a Magento line, so it is reported here separately and never reddens the compatibility matrix.

Unit tests

Unit tests results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 N/A N/A
2.4.8 N/A N/A
2.4.9 N/A N/A

Integration tests

Integration tests results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 N/A N/A
2.4.8 N/A N/A
2.4.9 N/A N/A

Security

Security checks run directly against the module: an audit of its declared dependencies for known vulnerabilities (composer audit) and a scan of its source for malware and web-shell signatures. Each runs once. A malware detection fails the version outright.

Security results
Tool Status Findings Summary
Composer audit Pass 0
Malware scan Pass 0
License
MIT
Authors

More from mage-os

View vendor
Make it pay

Turn an existing module into recurring revenue.

If you already maintain a Magento 2 module on GitHub or GitLab, listing it on Packagento takes about five minutes. We mirror your tags, handle distribution signing, and route paid licenses through Stripe Connect, so you can keep shipping the way you already do.