84% no-google-fonts

Code Review | No Google Fonts

WordPress plugin No Google Fonts scored84%from 54 tests.

About plugin

  • Plugin page: no-google-fonts
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.7.1
  • WordPress version: 6.3.1
  • First release: Feb 26, 2016
  • Latest release: Apr 17, 2021
  • Number of updates: 12
  • Update frequency: every 156.4 days
  • Top authors: shazdeh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,221 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.96ms] Passed 4 tests

Server-side resources used by No Google Fonts
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0143.78 ▲0.99
Dashboard /wp-admin3.32 ▲0.0155.17 ▲4.78
Posts /wp-admin/edit.php3.37 ▲0.0149.49 ▼4.69
Add New Post /wp-admin/post-new.php5.90 ▲0.0199.11 ▼6.76
Media Library /wp-admin/upload.php3.24 ▲0.0134.74 ▼1.36

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

No Google Fonts: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.28 ▲0.001.95 ▲0.0138.09 ▼8.12
Dashboard /wp-admin2,198 ▲185.59 ▼0.0184.44 ▼4.8939.09 ▼5.88
Posts /wp-admin/edit.php2,097 ▼61.97 ▼0.0640.69 ▼2.2839.76 ▼4.67
Add New Post /wp-admin/post-new.php1,536 ▲1018.56 ▼4.77619.38 ▲5.7372.94 ▲12.10
Media Library /wp-admin/upload.php1,394 ▼34.19 ▼0.2098.09 ▼3.7642.57 ▼4.09

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/no-google-fonts/no-google-fonts.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: fonts, wordpress-fonts, webfonts, typography, google-webfonts

no-google-fonts/no-google-fonts.php Passed 13 tests

The main PHP file in "No Google Fonts" ver. 0.3 adds more information about the plugin and also serves as the entry point for this plugin
60 characters long description:
Disables all Google font stylesheets loaded on the frontend.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin25 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP151425

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin