# klaviyo/magento2-extension 5.0.1

> Version 5.0.1 of klaviyo/magento2-extension, released 2026-07-08.

`composer require klaviyo/magento2-extension:5.0.1`

Canonical URL: https://packagento.com/klaviyo/magento2-extension/5.0.1

## At a glance

- **Released**: 2026-07-08
- **PHP**: ^8.1
- **QA**: failing

## What it does

Klaviyo extension for Magento 2. Allows pushing newsletters to Klaviyo's platform and more.

## Dependencies

### Require

| Package | Constraint |
|---|---|
| ext-curl | * |
| giggsey/libphonenumber-for-php | ^9.0 |
| magento/module-quote | >=101.1.3 |
| php | ^8.1 |

## Quality

Version 5.0.1 fails the Packagento QA pipeline. Verdicts below are per-cell (Magento line × PHP version) for the matrixed tools, and run-once for the static / security tiers.


### Compatibility

Each Magento line is installed on its supported PHP versions, then the module is built (DI compile + static-content deploy). Cells show passed / failed / untested; staircase gaps render as `–`.

| 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. Never affect the Compatibility verdict — 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.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| PHPCS | Warning | 516 | 516 warnings (ruleset: Magento2), 86 auto-fixable with phpcbf |
| PHPMD | Warning | 74 | 74 rule violations (UnusedFormalParameter:48, MissingImport:9, EmptyCatchBlock:3, CyclomaticComplexity:3, UnusedLocalVariable:3) |
| Cpd | Warning | 2 | 2 duplicated chunks spanning 33 total lines (min-lines=5, min-tokens=70) |
| Composer validate | Info | 4 | valid; 4 advisory notes (composer validate --strict) |

#### PHPStan

Type-checks the module against a real Magento install. Re-runs per Magento + PHP version because resolvable symbols differ between releases.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | 92 | 92 | – | – |
| 2.4.8 | – | 93 | 93 | – |
| 2.4.9 | – | – | 93 | 93 |


### Tests

Unit and integration suites run per Magento + PHP cell. Test failures speak to the module's behaviour, not its compatibility with a line, so they're reported here separately.

#### Unit Tests

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | 14 | 14 | – | – |
| 2.4.8 | – | 14 | 14 | – |
| 2.4.9 | – | – | 32 | 32 |

#### Integration Tests

| 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

Dependency-advisory audit (composer audit) plus a source malware scan. A malware detection fails the version outright.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| Composer audit | Pass | 0 |  |
| Malware scan | Pass | 0 |  |

## Parent package

[klaviyo/magento2-extension](https://packagento.com/klaviyo/magento2-extension.md) — full catalogue, pricing, install steps, and vendor info.

