monogo/pagespeed-analysis 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

monogo/pagespeed-analysis

Composer 安装命令:

composer require monogo/pagespeed-analysis

包简介

Magento 2 module for Google PageSpeed Analysis

README 文档

README

Magento 2 module for Google PageSpeed Analysis.

This module will work only with Magento 2.4.0 and higher

Module is using chart.js : https://www.chartjs.org/

Install

Git

  • Locate the /app/code directory which should be under the magento root installation.
  • If the code folder is not there, create it.
  • Create a folder Monogo inside the code folder.
  • Change to the Monogo folder and clone the Git repository (https://github.com/MonogoPolska/monogo-m2-pagespeed-analysis.git) into Monogo specifying the local repository folder to be OptimizeDatabase e.g.

git clone https://github.com/MonogoPolska/monogo-m2-pagespeed-analysis PagespeedAnalysis

Composer

composer require monogo/pagespeed-analysis

Magento Setup

  • Run Magento commands

php bin/magento setup:upgrade

php bin/magento setup:di:compile

php bin/magento setup:static-content:deploy

App Configuration Options

Go to Stores->Configuration->Monogo->Pagespeed Analysis

  • Enable module Default value is 1 (Yes)
  • Provide PageSpeed API Key. You can get one from https://developers.google.com/speed/docs/insights/v5/get-started -> Get A Key
  • Select strategy [Mobile,Desktop]
  • Use Magento Cron - You can disable Magento cron and run PageSpeed scan from shell (recommended) Default value is 0 (No)
  • Cron schedule - Use Crontab Format (Eg. "0 0 * * *" every day at 01:05)
  • Provide website / websites to scan
  • Additional charts configuration (show last X days, colors, chart height, use auto scale)
  • Debug settings

Default values:

enable: 0

strategy: mobile,desktop

use_cron: 0

height: 150 px

history: 30 days

Chart colors

performance: #4268b3

seo: #d46fd4

pwa: #f2970e

best_practices: #24a318

accessibility: #f5d60c

ttfb: #0c90f5

Shell

Usage:  php bin/magento monogo:pagespeed:run

You can setup external cron to run:

* */4 * * * php bin/magento monogo:pagespeed:run

Report

Go to Reports->Statistics->Pagespeed

In tabs you will have charts with desktop/mobile view. Under Show details button you will see last scan details.

In Grid you can add comment to specific record (for example: A/B testing start or Production deployment) This comment will be visible on charts after page refresh.

TODO

  • email weekly reports
  • Tests

monogo/pagespeed-analysis 适用场景与选型建议

monogo/pagespeed-analysis 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 10.87k 次下载、GitHub Stars 达 6, 最近一次更新时间为 2019 年 05 月 28 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「PageSpeed」 「Insights」 「magento 2」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 monogo/pagespeed-analysis 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 monogo/pagespeed-analysis 我们能提供哪些服务?
定制开发 / 二次开发

基于 monogo/pagespeed-analysis 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 10.87k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 7
  • 点击次数: 10
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 6
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-05-28