89% replace-google-fonts-with-bunny-fonts

Code Review | Replace Google Fonts with Bunny Fonts

WordPress plugin Replace Google Fonts with Bunny Fonts scored89%from 54 tests.

About plugin

  • Plugin page: replace-google-fo...
  • Plugin version: 2.1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.1.0
  • WordPress version: 6.3.1
  • First release: Aug 5, 2022
  • Latest release: Dec 6, 2022
  • Number of updates: 13
  • Update frequency: every 9.5 days
  • Top authors: antonioleutsch (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

1,000+ active /6,709 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼7.11ms] Passed 4 tests

Server-side resources used by Replace Google Fonts with Bunny Fonts
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0344.33 ▲2.32
Dashboard /wp-admin3.37 ▲0.0746.69 ▼2.84
Posts /wp-admin/edit.php3.41 ▲0.0545.41 ▼5.51
Add New Post /wp-admin/post-new.php6.05 ▲0.1680.43 ▼19.39
Media Library /wp-admin/upload.php3.31 ▲0.0833.52 ▼0.70

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Replace Google Fonts with Bunny Fonts
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.53 ▲0.161.72 ▼0.0546.94 ▲2.33
Dashboard /wp-admin2,195 ▲275.59 ▼0.0286.78 ▼4.7041.58 ▼2.59
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0435.87 ▼3.4435.23 ▲0.52
Add New Post /wp-admin/post-new.php1,526 ▼023.14 ▼0.02674.51 ▼8.3056.56 ▼4.07
Media Library /wp-admin/upload.php1,400 ▼04.19 ▼0.05101.06 ▼12.3545.51 ▼2.90

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: replace, bunny fonts, google fonts

replace-google-fonts-with-bunny-fonts/bunny-fonts.php 77% from 13 tests

The main file in "Replace Google Fonts with Bunny Fonts" v. 2.1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Main file name: Name the main plugin file the same as the plugin slug ("replace-google-fonts-with-bunny-fonts.php" instead of "bunny-fonts.php")
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected91 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1354391

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions333.33%
▷ Anonymous functions666.67%
Constants0
▷ Global constants00.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
No PNG files were detected