84% custom-fonts-for-beaver-builder

Code Review | Custom Fonts For Beaver Builder

WordPress plugin Custom Fonts For Beaver Builder scored 84% from 54 tests.

About plugin

  • Plugin page: custom-fonts-for-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.9.4
  • WordPress version: 6.3.1
  • First release: Feb 18, 2018
  • Latest release: Feb 18, 2018
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: louisreingold (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 960 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

A check of server-side resources used by Custom Fonts For Beaver Builder
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.36 ▼3.38
Dashboard /wp-admin3.31 ▲0.0153.24 ▼2.24
Posts /wp-admin/edit.php3.36 ▲0.0171.91 ▲19.57
Add New Post /wp-admin/post-new.php5.89 ▲0.01103.00 ▲10.62
Media Library /wp-admin/upload.php3.24 ▲0.0142.66 ▲7.09

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Custom Fonts For Beaver Builder
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲2713.23 ▼1.241.83 ▼0.1141.13 ▼5.47
Dashboard /wp-admin2,206 ▲64.86 ▲0.03110.44 ▼3.8240.42 ▼3.48
Posts /wp-admin/edit.php2,086 ▼32.01 ▼0.0136.44 ▲1.3934.14 ▲0.46
Add New Post /wp-admin/post-new.php1,534 ▲123.14 ▲0.21676.79 ▲46.1755.40 ▲4.65
Media Library /wp-admin/upload.php1,391 ▲64.22 ▲0.0495.83 ▼7.5340.68 ▼2.28

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/custom-fonts-for-beaver-builder/custom-fonts-for-beaver-builder.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 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
7 plugin tags: beaver builder, woff, font, typography, font face...

custom-fonts-for-beaver-builder/custom-fonts-for-beaver-builder.php 92% from 13 tests

This is the main PHP file of "Custom Fonts For Beaver Builder" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 167 characters long)

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
There were no executable files found in this plugin44 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP127844

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
No PNG images were found in this plugin