承接 mintis/webfont-checker 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

mintis/webfont-checker

Composer 安装命令:

composer require mintis/webfont-checker

包简介

Een WP-CLI extensie voor het scannen en optimaliseren van webfonts.

README 文档

README

Overview

Webfont Checker is a powerful tool designed to analyze the fonts used on a WordPress website. It scans all internal pages, detects which fonts and font-weights are actively used, and identifies unnecessary fonts loaded via @font-face or preload links.

This tool is particularly useful for optimizing performance by removing unused webfonts, reducing page load times, and improving overall efficiency.

Features

  • Automatic site crawling: Scans all internal pages to ensure complete font analysis.
  • Font weight detection: Identifies all font-weights used across the website.
  • Preload & @font-face analysis: Detects fonts loaded via @font-face rules and preload links.
  • Identifies unused fonts: Helps optimize performance by suggesting font removals.
  • Supports WordPress WP-CLI: Easily integrate with WordPress via WP-CLI commands.

Requirements

  • Node.js (must be installed and available in the system path)
  • Puppeteer (automatically installed if missing)
  • WP-CLI (WordPress Command Line Interface)

Installation

1. Install via Composer

composer require mintis/webfont-checker --dev

2. Activate WP-CLI Command

After installation, WP-CLI should automatically register the webfont command. To verify installation, run: wp webfont scan

If the command is not found, ensure WP-CLI is properly installed and that the package is correctly registered.

Usage

Running a Font Scan

To perform a full scan of your website, use the following command: wp webfont scan

Example Output

🔍 Starting crawl from: http://yourwebsite.com/ 📌 Found internal pages: 12 🔍 Analyzing: http://yourwebsite.com/home ... 🚀 Used font-weights & styles across the entire site: 🎨 Roboto: 400, 700, 900 🎨 Open Sans: 300, 400 italic

🖋 Loaded fonts and font-weights via @font-face and preload links: 🎨 Lato: 100, 300, 400, 700, 900

Unused loaded fonts and weights! Consider removing these: Lato (100, 300, 700, 900)

✅ Scan complete! Check if you are loading unnecessary @font-face fonts.

Troubleshooting

Node.js Not Found

If Node.js is not detected, install it using:

macOS

brew install node

Linux (Debian-based)

sudo apt install nodejs npm

Windows

Download from https://nodejs.org/

WP-CLI Not Found

Ensure WP-CLI is installed by running: wp --info

If WP-CLI is missing, install it by following the official guide: WP-CLI Installation

Manually Installing Dependencies

If Puppeteer is not installed, manually install it using: cd path/to/webfont-checker npm install puppeteer

Contributing

Feel free to contribute to Webfont Checker by submitting pull requests or reporting issues in the GitHub repository.

License

This project is licensed under the MIT License.

mintis/webfont-checker 适用场景与选型建议

mintis/webfont-checker 是一款 基于 JavaScript 开发的 Composer 扩展包,目前已累计 38 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 02 月 09 日, 在 PHP 生态内属于活跃度较高的组件。

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

围绕 mintis/webfont-checker 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

  • 总下载量: 38
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 15
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-02-09