84% flying-fonts

Code Review | Flying Fonts

WordPress plugin Flying Fonts scored84%from 54 tests.

About plugin

  • Plugin page: flying-fonts
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Jan 13, 2021
  • Latest release: Aug 9, 2023
  • Number of updates: 17
  • Update frequency: every 55.2 days
  • Top authors: gijo (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active /9,297 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.01MB] [CPU: ▼10.85ms] Passed 4 tests

This is a short check of server-side resources used by Flying Fonts
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.19 ▼4.20
Dashboard /wp-admin3.31 ▼0.0344.89 ▼16.44
Posts /wp-admin/edit.php3.36 ▲0.0042.00 ▼9.99
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.05 ▼12.75
Media Library /wp-admin/upload.php3.23 ▲0.0034.91 ▲2.65

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Flying Fonts
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.23 ▼1.421.67 ▼0.0742.82 ▲2.86
Dashboard /wp-admin2,203 ▲115.83 ▲0.8997.38 ▼14.5638.35 ▼2.18
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0334.46 ▼2.1133.20 ▼0.43
Add New Post /wp-admin/post-new.php1,534 ▲123.04 ▼0.05621.52 ▼59.7776.85 ▲20.58
Media Library /wp-admin/upload.php1,391 ▲64.22 ▼0.0295.88 ▼6.3443.88 ▲0.91

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/flying-fonts/flying-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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: websafe fonts, google fonts, fonts, system fonts

flying-fonts/flying-fonts.php Passed 13 tests

The main PHP script in "Flying Fonts" version 1.0.2 is automatically included on every request by WordPress
40 characters long description:
Remove Google Fonts and use system fonts

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
There were no executable files found in this plugin45 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP15929
JSON10016

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
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 functions133.33%
▷ Anonymous functions266.67%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin