83% use-bunnyfont-host-google-fonts

Code Review | Disable Google Fonts, Remove google fonts or Replace with Bunnyfonts

WordPress plugin Disable Google Fonts, Remove google fonts or Replace with Bunnyfonts scored83%from 54 tests.

About plugin

  • Plugin page: use-bunnyfont-hos...
  • Plugin version: 1.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Aug 3, 2022
  • Latest release: Sep 2, 2023
  • Number of updates: 37
  • Update frequency: every 10.9 days
  • Top authors: easywpstuff (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

800+ active /5,949 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.31MB] [CPU: ▼1.84ms] Passed 4 tests

This is a short check of server-side resources used by Disable Google Fonts, Remove google fonts or Replace with Bunnyfonts
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.06 ▲0.3243.95 ▲2.24
Dashboard /wp-admin3.89 ▲0.3358.69 ▲2.85
Posts /wp-admin/edit.php3.94 ▲0.2652.45 ▼0.63
Add New Post /wp-admin/post-new.php6.47 ▲0.3389.00 ▼11.81
Media Library /wp-admin/upload.php3.81 ▲0.3343.85 ▲5.87
Remove google fonts /wp-admin/options-general.php?page=remove-replace-gf3.7240.53

Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Disable Google Fonts, Remove google fonts or Replace with Bunnyfonts
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.29 ▼0.092.06 ▲0.2543.11 ▲3.92
Dashboard /wp-admin2,199 ▲225.60 ▼0.0489.33 ▼2.1138.93 ▼4.62
Posts /wp-admin/edit.php2,104 ▲42.04 ▲0.0534.92 ▼1.7735.72 ▲1.94
Add New Post /wp-admin/post-new.php1,557 ▲2618.24 ▼5.05632.58 ▼67.7560.31 ▲6.67
Media Library /wp-admin/upload.php1,401 ▲14.21 ▲0.02100.24 ▼4.6342.50 ▼3.26
Remove google fonts /wp-admin/options-general.php?page=remove-replace-gf8642.0624.3930.36

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/use-bunnyfont-host-google-fonts/inc/options.php:12
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/use-bunnyfont-host-google-fonts/vendor/appsero/client/vendor/tareq1988/wp-php-cs-fixer/loader.php' (include_path='.:/usr/share/php') in wp-content/plugins/use-bunnyfont-host-google-fonts/vendor/appsero/client/.php-cs-fixer.dist.php on line 3
    • > PHP Warning
      require_once(wp-content/plugins/use-bunnyfont-host-google-fonts/vendor/appsero/client/vendor/tareq1988/wp-php-cs-fixer/loader.php): failed to open stream: No such file or directory in wp-content/plugins/use-bunnyfont-host-google-fonts/vendor/appsero/client/.php-cs-fixer.dist.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Donate link: Invalid URI ("")
You can look at the official readme.txt

use-bunnyfont-host-google-fonts/bunnyfont.php 77% from 13 tests

"Disable Google Fonts, Remove google fonts or Replace with Bunnyfonts" version 1.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("use-bunnyfont-host-google-fonts.php" instead of "bunnyfont.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Domain Path: The domain path points to an invalid folder, "/l10n" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected2,918 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP176041,0852,403
Markdown1820255
JSON300113
XML161195
YAML16032
JavaScript13420

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity36.50
▷ Minimum class complexity1.00
▷ Maximum class complexity86.00
Average method complexity3.19
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods131
▷ Static methods2015.27%
▷ Public methods9471.76%
▷ Protected methods64.58%
▷ Private methods3123.66%
Functions21
▷ Named functions1885.71%
▷ Anonymous functions314.29%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin