66% wp-google-fonts

Code Review | WP Google Fonts

WordPress plugin WP Google Fonts scored 66% from 54 tests.

About plugin

  • Plugin page: wp-google-fonts
  • Plugin version: 3.1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-5.8.1
  • WordPress version: 5.9.2
  • First release: May 24, 2010
  • Latest release: Nov 3, 2021
  • Number of updates: 52
  • Update frequency: every 80.4 days
  • Top authors: adrian3 (61.54%)grimmdude (25%)noahkagan (11.54%)marnietave (7.69%)

Code review

54 tests

User reviews

38 reviews

Install metrics

80,000+ active / 1,292,156 total downloads


Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼292.88ms] Passed 4 tests

A check of server-side resources used by WP Google Fonts
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1058.11 ▲2.29
Dashboard /wp-admin3.46 ▲0.0534.80 ▲2.10
Posts /wp-admin/edit.php3.68 ▲0.0494.59 ▲58.38
Add New Post /wp-admin/post-new.php6.93 ▼0.0496.14 ▼1,181.46
Media Library /wp-admin/upload.php3.34 ▲0.0430.09 ▲5.54
Other Tools /wp-admin/admin.php?page=gf-plugin-other-tools3.3429.06
Google Fonts /wp-admin/admin.php?page=google-fonts3.2820.99
AppSumo /wp-admin/admin.php?page=gf_go_appsumo_pro4.7822.38

Server storage [IO: ▲0.69MB] [DB: ▲1.07MB] Passed 3 tests

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 3 new options
New WordPress options

Browser metrics 75% from 4 tests

An overview of browser requirements for WP Google Fonts
A great user experience is important, so you should focus on the following
  • Nodes: Limit the number of DOM nodes under 25,000 (currently 42,334 on /wp-admin/admin.php?page=google-fonts)
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,809 ▲5415.89 ▲0.195.71 ▲0.162.22 ▼0.65
Dashboard /wp-admin2,934 ▲736.10 ▼0.10117.87 ▼19.55165.78 ▲0.08
Posts /wp-admin/edit.php2,735 ▲413.24 ▲0.0165.18 ▲1.26159.72 ▼47.86
Add New Post /wp-admin/post-new.php1,742 ▲8221.38 ▲1.03447.82 ▲3.21169.29 ▲6.18
Media Library /wp-admin/upload.php1,746 ▲515.53 ▲0.03136.23 ▼3.31203.54 ▲5.61
Other Tools /wp-admin/admin.php?page=gf-plugin-other-tools1,2202.4688.77169.58
Google Fonts /wp-admin/admin.php?page=google-fonts42,3342.1281.99190.60
AppSumo /wp-admin/admin.php?page=gf_go_appsumo_pro300.950.045.17

Uninstaller [IO: ▲0.00MB] [DB: ▲1.07MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 2 options in the database
    • googlefonts_options
    • googlefonts_data

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/admin.php?page=gf-plugin-other-tools
    • > User deprecated in wp-includes/functions.php+5326
    screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/admin.php?page=gf-plugin-other-tools
    • > User deprecated in wp-includes/functions.php+5326
    get_screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/admin.php?page=google-fonts
    • > Notice in wp-content/plugins/wp-google-fonts/google-fonts.php+1101
    Undefined index: wp_google_fonts_global_notification

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/wp-google-fonts/appsumo-capture-form.php
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_thickbox() in wp-content/plugins/wp-google-fonts/other_plugins.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_thickbox() in wp-content/plugins/wp-google-fonts/other_tools.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-google-fonts/google-fonts.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_thickbox() in wp-content/plugins/wp-google-fonts/appsumo.php:1

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=gf_go_appsumo_pro
    • > Network (severe)
    https://appsumo.com/tools/wordpress/?utm_source=sumo&utm_medium=wp-widget&utm_campaign=wp-google-fonts - Failed to load resource: the server responded with a status of 403 ()


Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: There are too many tags (16 tag instead of maximum 10)
  • Screenshots: Screenshot #1 (This screenshot shows the "settings" panel for the WP Google Fonts plugin.) image missing
You can look at the official readme.txt

wp-google-fonts/google-fonts.php 92% from 13 tests

The main file in "WP Google Fonts" v. 3.1.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-google-fonts.php" instead of "google-fonts.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin9,555 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PO File5200504471

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity171.00
▷ Minimum class complexity171.00
▷ Maximum class complexity171.00
Average method complexity5.25
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods40100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.16MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/products/under-construction-logo.png31.17KB17.38KB▼ 44.24%
images/products/google-analyticator-logo.png12.53KB2.97KB▼ 76.27%
images/products/social-media-widget-logo.png75.72KB28.07KB▼ 62.93%
images/products/recent-tweets-widget-logo.png34.12KB25.86KB▼ 24.22%