Magento 2 Performance Optimization Checklist (2026)

PerformanceMagento 2Core Web Vitals

A slow Magento store costs you twice: shoppers leave before buying, and search engines rank slow pages lower. The good news is that most Magento 2 performance problems come from a short list of causes. Work through this checklist roughly in order. The early items usually give the biggest improvements for the least effort.

Start by measuring

  • Run PageSpeed Insights on your home, category, product and cart pages, on mobile. Note LCP, CLS and INP.
  • Measure server response time (TTFB) for cached and uncached pages.
  • If possible, use a profiler such as New Relic or Blackfire to see which code and queries take the time.

Measuring first tells you whether the problem is on the server, in the database, in custom code or in the frontend, and lets you prove the improvement afterwards.

Application mode and PHP

  1. Run in production mode: bin/magento deploy:mode:set production. Developer mode is dramatically slower.
  2. Use a supported PHP version (Magento 2.4.8 supports PHP 8.3 and 8.4) with OPcache enabled and given enough memory.
  3. Compile dependency injection and deploy static content as part of every deployment.
  4. Enable all caches in System → Cache Management, and fix whatever is invalidating them repeatedly.

Caching

  1. Use Varnish for full page cache instead of the built-in file-based cache. Cached pages can then be served in milliseconds.
  2. Use Redis, or Valkey on Magento 2.4.8, for the default cache and for sessions, instead of the filesystem or database.
  3. Check your hit rate. Blocks marked cacheable="false" in layout XML disable full page cache for the whole page. This is a very common mistake in custom modules and themes.
  4. Warm the cache after deployments and cache flushes so the first visitors do not get slow pages.

Indexers, cron and search

  1. Set indexers to Update by Schedule so saving products does not trigger full reindexes during the day.
  2. Make sure cron runs every minute and is healthy, because stuck cron jobs leave indexes and caches stale.
  3. Run OpenSearch on adequate resources; catalog search and layered navigation depend on it. Magento 2.4.8 removed Elasticsearch support, so upgrading stores must move to OpenSearch.
  4. Run message queue consumers properly so asynchronous operations do not pile up.

Database

  1. Tune MySQL/MariaDB: especially innodb_buffer_pool_size, which should fit most of your data in memory.
  2. Clean up large tables such as old quotes, reports and logs, which grow quietly for years.
  3. Use the slow query log to find heavy queries, often from extensions or custom collections.

Extensions and custom code

  1. Disable modules you do not use: every enabled module adds configuration, plugins and sometimes JavaScript.
  2. Review extensions that add queries or scripts to every page. Replace or remove the worst offenders.
  3. Look for collections loaded in loops, missing pagination and heavy around plugins in custom code.
  4. Move slow work such as ERP calls, emails and exports to message queues or cron instead of running it during the request.

Frontend

  1. Serve images as WebP at the right size, and lazy-load images below the fold.
  2. Do not lazy-load the main product or hero image, because that hurts LCP. Preload it instead.
  3. Reserve space for images, banners and widgets to avoid layout shift (CLS).
  4. Reduce third-party scripts: chat widgets, trackers and tag managers are often the biggest INP problems.
  5. Use a CDN for static files and media, with HTTP/2 or HTTP/3.
  6. If your theme is Luma and mobile scores are still poor, consider Hyvä, which removes most of Luma's JavaScript.

Where to go from here

Items 1–8 alone fix a surprising number of slow stores. If you have worked through the list and your store is still slow, the cause is usually specific custom code or extensions, and that is where profiling pays off. My Magento performance optimization service starts with exactly that audit, and extensions such as WebP Images and Health Dashboard help with images and monitoring.

For a real before-and-after example, see how I took this website from 58 to 100 on PageSpeed.

Sources

Sukumar Gorai

Sukumar Gorai

Adobe Certified Magento Expert and Technical Lead with 15+ years of experience and 62 extensions on the Adobe Commerce Marketplace. More about me →

Need help with this?

Server, caching, database and frontend tuning for faster pages and better Core Web Vitals.

Performance Optimization
Available for new projects

Have a Magento project in mind?

Tell me about your store and what you need. I reply to every enquiry within one business day.

Adobe Certified Expert

Adobe Commerce Developer certification, verified on Credly.

15+ years of Magento

From Magento 1 to Magento 2.4.x, Adobe Commerce and Hyvä.

62 Marketplace extensions

Each one reviewed and approved by Adobe.