PHPackages                             zytzagoo/wp-google-fonts-optimizer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. zytzagoo/wp-google-fonts-optimizer

ActiveWordpress-plugin[Utility &amp; Helpers](/categories/utility)

zytzagoo/wp-google-fonts-optimizer
==================================

Automatically detect and combine multiple Google Web Font requests into a single one.

0.2.0(8y ago)2111MITPHPPHP &gt;=5.4

Since Oct 12Pushed 8y ago1 watchersCompare

[ Source](https://github.com/zytzagoo/wp-google-fonts-optimizer)[ Packagist](https://packagist.org/packages/zytzagoo/wp-google-fonts-optimizer)[ Docs](https://github.com/zytzagoo/wp-google-fonts-optimizer)[ RSS](/packages/zytzagoo-wp-google-fonts-optimizer/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)Dependencies (6)Versions (3)Used By (0)

WP Google Fonts Optimizer
=========================

[](#wp-google-fonts-optimizer)

[![PHP Version](https://camo.githubusercontent.com/28b87178e6b5e280422ce2d3170a981012df4b8688466b0acdfd0481a246fff2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d352e342532422d626c75652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/zytzagoo/wp-google-fonts-optimizer)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/eacdee75a13763a3c9b4296b4f0c9b31fb76ff464699815659c9e7cc69b11918/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7a79747a61676f6f2f77702d676f6f676c652d666f6e74732d6f7074696d697a65722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/zytzagoo/wp-google-fonts-optimizer)[![Scrutinizer Coverage](https://camo.githubusercontent.com/aaad99e1d1ee901dc8cf66ac12c5ea88b594992f20a44681449145a8e0df568d/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f7a79747a61676f6f2f77702d676f6f676c652d666f6e74732d6f7074696d697a65722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/zytzagoo/wp-google-fonts-optimizer/?branch=master)[![Quality Score](https://camo.githubusercontent.com/1c5f4a828bcfa3006bcf1021b5314f0fbfc0c2c618f0128491fcc7f398a4f6a0/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7a79747a61676f6f2f77702d676f6f676c652d666f6e74732d6f7074696d697a65722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/zytzagoo/wp-google-fonts-optimizer)

WP Google Fonts Optimizer is a super-easy way to ensure your WordPress theme is not performing unnecessary extra requests for Google Web Fonts (in cases when you use more than one font family on a page).

It automatically scans your enqueued stylesheets and combines them into a single request when needed.

Optionally, for poorly coded themes (and/or conflicts with other plugins), it can scan and modify the generated markup.

Download
--------

[](#download)

See [Releases](https://github.com/zytzagoo/wp-google-fonts-optimizer/releases).

Or install it to your plugin directory via Composer:

```
composer create-project zytzagoo/wp-google-fonts-optimizer --no-dev

```

Quickstart
----------

[](#quickstart)

Install and activate the plugin, it should do it's job automatically after that.

Details / Troubleshooting
-------------------------

[](#details--troubleshooting)

By default, the plugin enqueues a new stylesheet (with combined font families etc.) and removes any found/enqueued stylesheets.

If your theme doesn't enqueue the Google Fonts properly (or if there is a potential conflict with another plugin/theme on your site), you can modify the way the plugin works and change it so that it parses the generated markup (instead of it inspecting the enqueued URLs). Do so by adding a filter to your `functions.php` (or even better, use a `mu-plugin`).

```
add_filter( 'zwf_gfo_mode', function( $mode ) {
    return 'markup';
});
```

When in *markup mode*, it replaces existing `` elements with a new one and places it in the ``. This mode also supports creating a [Web Font Loader](https://github.com/typekit/webfontloader) `` tag, if that's what you'd prefer. Turn it on using a filter:

```
add_filter( 'zwf_gfo_markup_type', function( $type ) {
    return 'script';
});
```

[License (MIT)](LICENSE.md)
---------------------------

[](#license-mit)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~12 days

Total

2

Last Release

3120d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/344f44ce37c7605ae6f003c639945bd7d5204f812dba6314999383f475ad6a44?d=identicon)[zytzagoo](/maintainers/zytzagoo)

---

Top Contributors

[![zytzagoo](https://avatars.githubusercontent.com/u/46947?v=4)](https://github.com/zytzagoo "zytzagoo (28 commits)")

---

Tags

google-fontsperformancewordpress-pluginwp-pluginwordpresswpcombinegoogle fontsrequestsoptimizerwebfontgoogle-web-fonts

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/zytzagoo-wp-google-fonts-optimizer/health.svg)

```
[![Health](https://phpackages.com/badges/zytzagoo-wp-google-fonts-optimizer/health.svg)](https://phpackages.com/packages/zytzagoo-wp-google-fonts-optimizer)
```

###  Alternatives

[roots/bedrock

WordPress boilerplate with Composer, easier configuration, and an improved folder structure

6.5k441.8k2](/packages/roots-bedrock)[ayecode/wp-super-duper

Lets you create a widget, block and shortcode all from the one file .

321.5k](/packages/ayecode-wp-super-duper)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
