Download the PHP package mage2kishan/module-corewebvitals without Composer

On this page you can find all versions of the php package mage2kishan/module-corewebvitals. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package module-corewebvitals

Magento 2 Core Web Vitals Extension: LCP, FID, INP and CLS Monitoring (Hyva + Luma)

Magento 2.4.4 - 2.4.8 PHP 8.1 - 8.4 Hyva + Luma Live Demo & Details Packagist Upwork Top Rated Plus Website

Measure real Core Web Vitals from real shoppers on every page of your Magento 2 store. Panth Core Web Vitals injects a lightweight JavaScript snippet that uses the native browser PerformanceObserver API to collect LCP, FID, INP, and CLS. It also adds resource hints (dns-prefetch, preconnect, prefetch) and performance HTTP headers from the admin, with no third-party library needed. Works on both Hyva and Luma.

Product page: kishansavaliya.com/magento-2-corewebvitals.html


Quick Answer

What is Panth Core Web Vitals? It is a Magento 2 extension that collects LCP, FID, INP, and CLS from every real visitor using the browser's native PerformanceObserver API, then sends those metrics to GA4 or a custom endpoint so you can track your Google ranking signals over time.

What does it add to my store?

Which themes are supported? Both Hyva and Luma. The snippet loads via standard layout XML and has no theme-specific dependencies.

What does it need? Magento 2.4.4 to 2.4.8, PHP 8.1 to 8.4, and the free mage2kishan/module-core package.


Need Custom Magento 2 Development?

Get a free quote for your project in 24 hours for custom modules, Hyva themes, performance work, M1 to M2 migrations, and Adobe Commerce Cloud.

Get a Free Quote

### Kishan Savaliya **Top Rated Plus on Upwork** [![Hire on Upwork](https://img.shields.io/badge/Hire%20on%20Upwork-Top%20Rated%20Plus-14a800?style=for-the-badge&logo=upwork&logoColor=white)](https://www.upwork.com/freelancers/~016dd1767321100e21) 100% Job Success • 10+ Years Magento Experience Adobe Certified • Hyva Specialist ### Panth Infotech Agency **Magento Development Team** [![Visit Agency](https://img.shields.io/badge/Visit%20Agency-Panth%20Infotech-14a800?style=for-the-badge&logo=upwork&logoColor=white)](https://www.upwork.com/agencies/1881421506131960778/) Custom Modules • Theme Design • Migrations Performance • SEO • Adobe Commerce Cloud

Visit our website: kishansavaliya.com  |  Get a quote: kishansavaliya.com/get-quote


Table of Contents


Who Is It For


Key Features

Real-time Metric Collection (PerformanceObserver API)

Per-metric Targets and Ratings

Resource Hints

Performance HTTP Headers

Analytics Integration

Admin and Code Quality


Metric Thresholds

Metric Good Needs Improvement Poor
LCP (Largest Contentful Paint) less than 2500 ms less than 4000 ms more than 4000 ms
FID (First Input Delay) less than 100 ms less than 300 ms more than 300 ms
INP (Interaction to Next Paint) less than 200 ms less than 500 ms more than 500 ms
CLS (Cumulative Layout Shift) less than 0.1 less than 0.25 more than 0.25

Targets align with Google's official thresholds from web.dev/vitals.


Compatibility

Requirement Versions Supported
Magento Open Source 2.4.4, 2.4.5, 2.4.6, 2.4.7, 2.4.8
Adobe Commerce 2.4.4, 2.4.5, 2.4.6, 2.4.7, 2.4.8
Adobe Commerce Cloud 2.4.4 to 2.4.8
PHP 8.1.x, 8.2.x, 8.3.x, 8.4.x
Hyva Theme 1.0+ (fully supported)
Luma Theme Native support
Required Dependency mage2kishan/module-core (free)

Installation

Composer Installation (Recommended)

Manual Installation via ZIP

  1. Download the latest release from Packagist or from the product page.
  2. Extract it to app/code/Panth/CoreWebVitals/ in your Magento install.
  3. Make sure Panth_Core is installed too (required dependency).
  4. Run the commands above starting from bin/magento module:enable.

Verify Installation

After install, open:

Set Enable Module = Yes and flush the cache.


Configuration

Go to Stores -> Configuration -> Panth Extensions -> Core Web Vitals.

General Settings

Setting Group Default Description
Enable Module General No Master toggle. Injects the monitoring snippet on every frontend page.
Debug Mode General No Logs metrics to the browser console and exposes window.coreWebVitalsMetrics. Disable in production.
Send Metrics to Analytics General Yes Forwards metrics to GA4 via gtag or to the custom beacon endpoint.
Custom Beacon Endpoint URL General (blank) Absolute URL that receives metric data as JSON via navigator.sendBeacon.
GA4 Measurement ID General (blank) Optional G-XXXXXXX ID to route metrics to a specific GA4 property.

LCP Monitoring

Setting Group Default Description
Monitor LCP LCP Yes Enable Largest Contentful Paint tracking.
Target LCP (milliseconds) LCP 2500 Your target LCP time. Used to rate the metric as good, needs improvement, or poor.

FID / INP Monitoring

Setting Group Default Description
Monitor FID and INP FID / INP Yes Enable First Input Delay and Interaction to Next Paint tracking.
Target FID (milliseconds) FID / INP 100 Your target First Input Delay.
Target INP (milliseconds) FID / INP 200 Your target Interaction to Next Paint. INP is the primary interaction metric since March 2024.

CLS Monitoring

Setting Group Default Description
Monitor CLS CLS Yes Enable Cumulative Layout Shift tracking.
Target CLS Score CLS 0.1 Your target CLS score (unitless).

Resource Hints

Setting Group Default Description
DNS Prefetch Domains Resource Hints (blank) One domain per line, no protocol. Outputs <link rel="dns-prefetch"> in the page head.
Preconnect Domains Resource Hints (blank) One domain per line. Outputs <link rel="preconnect" crossorigin>. Limit to 2 to 4 critical origins.
Prefetch URLs Resource Hints (blank) One full URL per line for low-priority next-navigation prefetch.

How It Works

  1. When the module is enabled, a block renders core-web-vitals.phtml in the page head via layout XML.
  2. The template outputs a small JavaScript snippet that registers PerformanceObserver listeners for largest-contentful-paint, first-input, event (INP), and layout-shift entry types.
  3. Each time a metric value is captured, it is rated against your configured target and Google's thresholds, then sent to GA4 via gtag if present, to your custom beacon endpoint via navigator.sendBeacon, and as a browser CustomEvent.
  4. If Debug Mode is on, every metric value is also logged to the browser console.
  5. A second block renders resource-hints.phtml, which outputs <link> tags for dns-prefetch, preconnect, and prefetch from your admin settings.
  6. A response plugin adds the Server-Timing, X-DNS-Prefetch-Control, and Link headers to every frontend HTTP response.

FAQ

Does this replace Google PageSpeed Insights?

No. PageSpeed Insights runs synthetic lab tests from Google's servers. This module collects field data from your real visitors, which is what Google actually uses as a ranking signal.

Will the snippet slow down my pages?

No. The snippet loads with defer, uses the native PerformanceObserver API with no polling, and has no third-party library dependency.

Is INP the same as FID?

INP replaced FID as an official Core Web Vital in March 2024. The module tracks both. FID is kept for legacy dashboards and backwards compatibility. INP is the current ranking signal.

Does it work on Hyva themes?

Yes. The snippet and resource hints load via standard default_head_blocks.xml and have no Hyva-specific or Luma-specific code.

Does it send data to third parties by default?

No. With the default configuration, no data leaves your store unless you have GA4 (gtag) loaded on your pages. You control every destination via the admin settings.

Is it GDPR / CCPA compliant?

Yes. No personal data is collected. The metrics are anonymous performance numbers. You decide where they are sent.

Does it work with multi-store setups?

Yes. All settings respect Magento's scope hierarchy: default, website, and store view.

Can I use it with Adobe Commerce Cloud and Fastly?

Yes. The Server-Timing and Link headers work with Fastly's VCL. Make sure your VCL does not strip these headers if you want them visible in DevTools.

Does Panth Core Web Vitals need Panth Core?

Yes. mage2kishan/module-core is a free, required dependency that Composer installs for you automatically.


Support

Channel Contact
Product Page kishansavaliya.com/magento-2-corewebvitals.html
Email [email protected]
Website kishansavaliya.com
WhatsApp +91 84012 70422
GitHub Issues github.com/mage2sk/module-corewebvitals/issues
Upwork (Top Rated Plus) Hire Kishan Savaliya
Upwork Agency Panth Infotech

Response time: 1-2 business days.

Need Custom Magento Development?

Looking for Core Web Vitals optimization, Hyva migrations, Luma speed tuning, or Adobe Commerce Cloud performance work? Get a free quote in 24 hours:

Get a Free Quote

Hire on Upwork    Visit Agency    View Product Page


About Panth Infotech

Built and maintained by Kishan Savaliya (kishansavaliya.com), a Top Rated Plus Magento developer on Upwork with 10+ years of eCommerce experience.

Panth Infotech is a Magento 2 development agency that builds high quality, security focused extensions and themes for both Hyva and Luma storefronts. The extension suite covers SEO, performance, checkout, product presentation, customer engagement, and store management, with each module built to MEQP standards and tested across Magento 2.4.4 to 2.4.8.

Browse the full extension catalog on our Magento extensions page or on Packagist.


Quick Links

Resource Link
Product Page magento-2-corewebvitals.html
Packagist mage2kishan/module-corewebvitals
GitHub mage2sk/module-corewebvitals
Website kishansavaliya.com
Free Quote kishansavaliya.com/get-quote
Upwork (Top Rated Plus) Hire Kishan Savaliya
Upwork Agency Panth Infotech
Email [email protected]
WhatsApp +91 84012 70422

Ready to track your Core Web Vitals from real shoppers?
See Core Web Vitals


SEO Keywords: magento 2 core web vitals, core web vitals magento 2, magento 2 LCP, largest contentful paint magento, magento 2 FID, first input delay magento, magento 2 INP, interaction to next paint magento, magento 2 CLS, cumulative layout shift magento, magento 2 performance monitoring, magento 2 page speed extension, real user monitoring magento, RUM magento 2, PerformanceObserver magento 2, magento 2 resource hints, dns-prefetch magento 2, preconnect magento 2, prefetch magento 2, magento 2 Server-Timing header, magento 2 GA4 web vitals, google analytics 4 core web vitals magento, magento 2 performance extension, magento 2.4.8 performance, hyva core web vitals, luma core web vitals, magento 2 google ranking performance, magento 2 web vitals extension, magento 2 speed extension, mage2kishan corewebvitals, panth core web vitals, panth infotech, kishan savaliya magento, hire magento performance developer, top rated plus upwork, adobe commerce cloud performance, fastly magento performance


All versions of module-corewebvitals with dependencies

PHP Build Version
Package Version
Requires php Version ~8.1.0||~8.2.0||~8.3.0||~8.4.0
magento/framework Version ^103.0
magento/module-store Version ^101.0
magento/module-config Version ^101.0
magento/module-backend Version ^102.0
mage2kishan/module-core Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mage2kishan/module-corewebvitals contains the following files

Loading the files please wait ...