74% yabe-webfont

Code Review | Yabe Webfont

WordPress plugin Yabe Webfont scored74%from 54 tests.

About plugin

  • Plugin page: yabe-webfont
  • Plugin version: 1.0.59
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.4
  • WordPress version: 6.3.1
  • First release: Jun 15, 2023
  • Latest release: Nov 8, 2023
  • Number of updates: 33
  • Update frequency: every 4.4 days
  • Top authors: rosua (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

1,000+ active /2,294 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲1.18MB] [CPU: ▲3.48ms] Passed 4 tests

An overview of server-side resources used by Yabe Webfont
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.81 ▲1.3450.44 ▲10.60
Dashboard /wp-admin4.41 ▲1.0752.63 ▼7.82
Posts /wp-admin/edit.php4.53 ▲1.1755.52 ▲8.12
Add New Post /wp-admin/post-new.php7.50 ▲1.62103.70 ▲6.05
Media Library /wp-admin/upload.php4.36 ▲1.1344.46 ▲7.56
Yabe Webfont /wp-admin/admin.php?page=yabe-webfont-builder-redirect4.3136.05
Yabe Webfont /wp-admin/themes.php?page=yabe_webfont4.5343.30

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 303 new files
Database: 2 new tables, 8 new options
New tables
wp_yabe_webfont_fonts
wp_yabe_webfont_migrations
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
yabe_webfont_notices
widget_theysaidso_widget
widget_recent-comments
yabe_webfont_version
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Yabe Webfont
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲7214.29 ▲0.101.63 ▼0.0938.39 ▼7.04
Dashboard /wp-admin2,199 ▲195.62 ▼0.0092.62 ▼7.8144.16 ▲1.55
Posts /wp-admin/edit.php2,107 ▲71.94 ▼0.0140.17 ▲5.2436.14 ▲2.26
Add New Post /wp-admin/post-new.php1,538 ▲1225.02 ▲1.44623.41 ▼75.8168.06 ▲18.68
Media Library /wp-admin/upload.php1,401 ▲14.16 ▼0.06100.11 ▲0.6441.68 ▼5.28
Yabe Webfont /wp-admin/admin.php?page=yabe-webfont-builder-redirect2,0166.36117.3837.30
Yabe Webfont /wp-admin/themes.php?page=yabe_webfont1,3826.5695.3132.57

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie tables were found after uninstall: 2 tables
    • wp_yabe_webfont_migrations
    • wp_yabe_webfont_fonts
  • Zombie WordPress options detected upon uninstall: 8 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • yabe_webfont_notices
    • db_upgraded
    • yabe_webfont_version
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, 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
Please fix the following
  • 73× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface '_YabeWebfont\\Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface' not found in wp-content/plugins/yabe-webfont/vendor/symfony/property-info/DependencyInjection/PropertyInfoConstructorPass.php:22
    • > PHP Fatal error
      Uncaught Error: Interface 'Yabe\\Webfont\\Builder\\BuilderInterface' not found in wp-content/plugins/yabe-webfont/src/Builder/Pinegrow/Main.php:24
    • > PHP Fatal error
      Uncaught Error: Interface 'Yabe\\Webfont\\Builder\\BuilderInterface' not found in wp-content/plugins/yabe-webfont/src/Builder/Elementor/Main.php:22
    • > PHP Fatal error
      Uncaught Error: Interface '_YabeWebfont\\Symfony\\Component\\String\\Inflector\\InflectorInterface' not found in wp-content/plugins/yabe-webfont/vendor/symfony/string/Inflector/FrenchInflector.php:18
    • > PHP Parse error
      syntax error, unexpected 'public' (T_PUBLIC), expecting variable (T_VARIABLE) in wp-content/plugins/yabe-webfont/vendor/symfony/service-contracts/Attribute/SubscribedService.php on line 27
    • > PHP Warning
      require_once(lib/byte_safe_strings.php): failed to open stream: No such file or directory in wp-content/plugins/yabe-webfont/vendor/paragonie/random_compat/psalm-autoload.php on line 5
    • > PHP Fatal error
      Uncaught Error: Class '_YabeWebfont\\Symfony\\Component\\PropertyAccess\\Exception\\RuntimeException' not found in wp-content/plugins/yabe-webfont/vendor/symfony/property-access/Exception/InvalidPropertyPathException.php:18
    • > PHP Fatal error
      Uncaught Error: Interface '_YabeWebfont\\Rosua\\Migrations\\Exception\\ControlException' not found in wp-content/plugins/yabe-webfont/vendor/rosua/migrations/src/Exception/SkipMigration.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'Yabe\\Webfont\\Builder\\BuilderInterface' not found in wp-content/plugins/yabe-webfont/src/Builder/Kadence/Main.php:22
    • > PHP Fatal error
      Uncaught Error: Class '_YabeWebfont\\Symfony\\Component\\Finder\\Comparator\\Comparator' not found in wp-content/plugins/yabe-webfont/vendor/symfony/finder/Comparator/DateComparator.php:18

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

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #6 in yabe-webfont/assets to your readme.txt
You can look at the official readme.txt

yabe-webfont/yabe-webfont.php 92% from 13 tests

The main PHP file in "Yabe Webfont" ver. 1.0.59 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

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 plugin15,007 lines of code in 277 files:
LanguageFilesBlank linesComment linesLines of code
PHP1974465,83812,516
JSON19001,993
Markdown191410360
JavaScript26159101
XML10019
SVG8008
CSS61117
Bourne Shell1203

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity15.35
▷ Minimum class complexity1.00
▷ Maximum class complexity181.00
Average method complexity3.62
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces47
Interfaces29
Traits2
Classes130
▷ Abstract classes53.85%
▷ Concrete classes12596.15%
▷ Final classes2721.60%
Methods904
▷ Static methods16818.58%
▷ Public methods76584.62%
▷ Protected methods101.11%
▷ Private methods12914.27%
Functions259
▷ Named functions20177.61%
▷ Anonymous functions5822.39%
Constants170
▷ Global constants1710.00%
▷ Class constants15390.00%
▷ Public constants12279.74%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected