Skip to main content

mageperf

PyPI version npm version License: MIT Python GitHub

Free, open-source Magento 2 performance analyzer CLI — scans any store from your terminal with no account, no cloud, and no data leaving your machine.

Developed and maintained by EaseCloud — cloud-native, AI-driven, and Magento infrastructure solutions.

Quick Start

pip install easecloud-mageperf
mageperf analyze https://your-store.com

Features

  • Magento detection — fingerprints version, edition, and deployment mode; --force overrides for hardened stores
  • Performance analysis — Core Web Vitals via Google PageSpeed Insights API (optional)
  • Security checks — exposed admin paths, debug mode, insecure headers
  • Configuration checks — caching, JS/CSS merging, CDN, production mode
  • Search engine detection — flags likely MySQL search engine usage (critical performance issue on large catalogs)
  • Extension audit — 25+ known performance-heavy extensions flagged with actionable guidance
  • Report comparison — diff two reports to measure improvement: mageperf compare <before> <after>
  • Selective analysis — --checks magento or --checks performance to run subsets
  • Local reports — stored in ~/.easecloud/mageperf/reports/ as JSON
  • Browser UI — rich report viewer served locally on port 4780
  • JSON output — pipe results into scripts or AI agents

Installation

pip install easecloud-mageperf

npm / npx

npx @easecloud/mageperf analyze https://your-store.com
# or install globally
npm install -g @easecloud/mageperf

Docker

docker run --rm easecloud/mageperf analyze https://your-store.com

One-line install script

curl -fsSL https://raw.githubusercontent.com/easecloudio/mageperf/main/install.sh | bash

Usage

# Analyze a store
mageperf analyze https://your-store.com

# Analyze and open the browser UI when done
mageperf analyze https://your-store.com --open

# Force analysis when Magento fingerprints are hardened
mageperf analyze https://your-store.com --force

# Run only performance checks (skip Magento config/security)
mageperf analyze https://your-store.com --checks performance

# JSON output (pipe into jq, scripts, AI agents)
mageperf analyze https://your-store.com --format json | jq .overall_score

# List saved reports (numbered for easy reference)
mageperf list

# Open report by number from the list
mageperf open 1

# Compare two reports to measure improvement
mageperf compare <before-id> <after-id>

# Open the local report UI
mageperf serve

Commands

Command Description
mageperf analyze <url> Run a full analysis
mageperf list List saved reports (numbered)
mageperf open <id|number> Open a report in the browser UI (UUID or list index)
mageperf compare <id1> <id2> Diff two reports: score delta, resolved findings
mageperf serve Start the local report UI server
mageperf delete <id> Delete a single report
mageperf clean Delete all saved reports
mageperf config set <key> <value> Set a config value
mageperf config get <key> Get a config value

analyze options

Flag Default Description
--format summary Output format: summary, json, table
--output <file> — Write JSON report to a file
--open off Open browser UI after analysis
--no-pagespeed off Skip Google PageSpeed API calls
--force off Skip Magento detection gate (for hardened stores)
--checks <subset> all Comma-separated checks to run: performance, magento, all
--timeout <secs> 20 HTTP request timeout in seconds

Configuration

Config is stored in ~/.easecloud/mageperf/config.json.

# Set your Google PageSpeed API key (optional, improves accuracy)
mageperf config set pagespeed-api-key YOUR_KEY

# Change the local UI port (default: 4780)
mageperf config set server-port 4780

Get a free PageSpeed API key at Google Cloud Console.
Without a key, mageperf falls back to direct HTTP analysis.

How it works

Analysis runs in five layers:

  1. Magento detection — headers, HTML patterns, JS indicators, known paths; --force bypasses if the store hardens its fingerprint
  2. Performance — PageSpeed Insights API (optional) or direct HTTP timing
  3. Security — admin URL exposure, debug headers, error reporting
  4. Configuration — caching strategy, JS/CSS bundling, deployment mode
  5. Search engine — detects likely MySQL catalog search via response timing and headers; flags it as a critical finding on large catalogs

All checks use only publicly available data. No credentials, no admin access required.

Any check that fails (timeout, connection error) surfaces in the terminal output with its error message rather than silently defaulting to zero.

Output example

Overall Score: 74/100

  Performance   82  ████████░░
  Security      61  ██████░░░░
  Config        79  ███████░░░

2 critical issues found. Run with --open to view full report.
Report saved: ~/.easecloud/mageperf/reports/abc123.json

Comparing two reports:

$ mageperf compare <before-id> <after-id>

Score Comparison
  Baseline : https://store.com  [2026-04-01]  score=55  grade=C
  Compared : https://store.com  [2026-04-14]  score=74  grade=B

 Category      Before  After  Delta
 Overall          55     74   +19
 Performance      50     82   +32
 Security         60     61    +1
 Config           55     79   +24

Resolved (1):
  ✓ Enable CSS merging

Development

git clone https://github.com/easecloudio/mageperf.git
cd mageperf
pip install -e ".[dev]"

# Run tests
pytest tests/ -v

# Build the UI (requires Node 18+)
cd ui && npm install && npm run build

Project structure

mageperf/           Python package
  cli.py            Typer CLI entry point
  config.py         Config management (~/.easecloud/mageperf/)
  core/             Analysis engine
    magento_checker.py
    performance_checker.py
    analysis_orchestrator.py
    scoring_service.py
  storage/          Local JSON report store
  server/           stdlib HTTP server + pre-built UI
    static/         Pre-built Next.js UI
tests/              pytest test suite (73 tests)
ui/                 Next.js 15 UI source (TypeScript)
Dockerfile          Docker image build
install.sh          Universal install script
package.json        npm wrapper (@easecloud/mageperf)

About EaseCloud

EaseCloud is a cloud consulting and solutions company specializing in:

  • Magento 2 performance optimization and infrastructure
  • Cloud-native application development on AWS, GCP, and Azure
  • AI and automation integrations
  • DevOps, infrastructure management, and CI/CD
  • Data analytics and BI platform consulting

We built mageperf to give the Magento community a transparent, no-signup performance tool while demonstrating our expertise in store optimization and cloud infrastructure.

If your team is running a high-traffic Magento store or needs help closing the gaps mageperf surfaces, get in touch — we provide consulting, caching strategy, Core Web Vitals tuning, and managed infrastructure for merchants at scale.

📧 support@easecloud.io 🌐 easecloud.io

Bug Reports & Issues

Found a bug or have a feature request?

🐛 Create a GitHub issue

Please include:

  • Magento version and edition (if known)
  • mageperf version (mageperf --version)
  • Steps to reproduce
  • Expected vs actual behavior
  • Any error messages or terminal output

Contributing

See CONTRIBUTING.md.

License

MIT © EaseCloud

Metadata

Release files for easecloud-mageperf 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for easecloud-mageperf 0.2.1
File Size Uploaded Provenance Actions
easecloud_mageperf-0.2.1.tar.gz 1.2 MB With provenance Details for easecloud_mageperf-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for easecloud-mageperf 0.2.1
File Interpreter ABI Platform Actions
easecloud_mageperf-0.2.1-py3-none-any.whl Python 3 none any Details for easecloud_mageperf-0.2.1-py3-none-any.whl

Total release size: 2.1 MB

Release files / easecloud_mageperf-0.2.1.tar.gz

Download URL easecloud_mageperf-0.2.1.tar.gz
Size 1.2 MB
Tags Source
SHA-256 checksum
How to use checksums
99b70b948a860cc54de45472160e10eb25bfbede0573bf52732e12dd5bd0ae38
BLAKE2b-256 checksum
How to use checksums
1f75339893eb494393f9ae5415b393e25d555d385c53cdfd35c33afdf11d2124
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.

Transparency log

Release files / easecloud_mageperf-0.2.1-py3-none-any.whl

Download URL easecloud_mageperf-0.2.1-py3-none-any.whl
Size 957.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ebac2759f3b562758fc64aa6abe0aa417a4747e77e8c219e0643cfa8cf796d0a
BLAKE2b-256 checksum
How to use checksums
554b7390e360ba9350ec105936e9a616a9f4f7e104fe9a24fd85995946c5b3db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.

Transparency log

Security for easecloud-mageperf 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for easecloud_mageperf-0.2.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page