84% fonts

Code Review | Fonts

WordPress plugin Fonts scored84%from 54 tests.

About plugin

  • Plugin page: fonts
  • Plugin version: 2.3
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 8, 2012
  • Latest release: Jul 13, 2022
  • Number of updates: 67
  • Update frequency: every 52.3 days
  • Top authors: wordpresssites (100%)

Code review

54 tests

User reviews

95 reviews

Install metrics

10,000+ active /267,351 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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼9.01ms] Passed 4 tests

An overview of server-side resources used by Fonts
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0144.72 ▲0.97
Dashboard /wp-admin3.34 ▼0.0345.52 ▼17.56
Posts /wp-admin/edit.php3.40 ▲0.0149.65 ▲4.05
Add New Post /wp-admin/post-new.php5.93 ▲0.0182.43 ▼22.38
Media Library /wp-admin/upload.php3.27 ▲0.0136.74 ▲2.95

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: no files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Fonts
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲3814.47 ▼0.201.75 ▼0.4941.65 ▼1.41
Dashboard /wp-admin2,215 ▲305.82 ▼0.0699.48 ▼4.6540.92 ▲2.35
Posts /wp-admin/edit.php2,097 ▲52.01 ▼0.0439.92 ▲4.9435.32 ▲0.54
Add New Post /wp-admin/post-new.php1,523 ▼2117.80 ▼0.50690.30 ▲16.1754.01 ▼9.51
Media Library /wp-admin/upload.php1,397 ▲64.28 ▲0.08109.93 ▲10.0548.16 ▲5.85

Uninstaller [IO: ✅] [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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/fonts/fonts.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Requires at least: Version not formatted correctly
The official readme.txt is a good inspiration

fonts/fonts.php 92% from 13 tests

The main PHP file in "Fonts" ver. 2.3 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 418 characters long)

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
Good job! No executable or dangerous file extensions detected28 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP151128

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
fonts.png55.31KB20.28KB▼ 63.33%
icon-128x128.png5.99KB2.19KB▼ 63.44%
icon-256x256.png14.38KB4.35KB▼ 69.78%