90% hangeul-web-fonts

Code Review | Hangeul Web Fonts

WordPress plugin Hangeul Web Fonts scored90%from 54 tests.

About plugin

  • Plugin page: hangeul-web-fonts
  • Plugin version: 0.4.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6.1
  • WordPress version: 6.3.1
  • First release: Nov 15, 2016
  • Latest release: Nov 24, 2016
  • Number of updates: 68
  • Update frequency: every 0.1 days
  • Top authors: miracl2l22 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /5,260 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.39ms] Passed 4 tests

Server-side resources used by Hangeul Web Fonts
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.54 ▼1.52
Dashboard /wp-admin3.32 ▲0.0245.88 ▼5.13
Posts /wp-admin/edit.php3.37 ▲0.0245.68 ▲0.88
Add New Post /wp-admin/post-new.php5.90 ▲0.0283.11 ▼11.52
Media Library /wp-admin/upload.php3.25 ▲0.0232.68 ▼3.38
Hangeul Web Fonts /wp-admin/options-general.php?page=hangeul-web-fonts3.2130.28

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Hangeul Web Fonts
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲6513.29 ▼1.104.71 ▲2.6537.49 ▼4.06
Dashboard /wp-admin2,228 ▲394.84 ▼0.04106.58 ▼5.8542.46 ▲1.18
Posts /wp-admin/edit.php2,111 ▲222.04 ▼0.0033.80 ▲0.0734.37 ▼1.67
Add New Post /wp-admin/post-new.php1,537 ▲423.25 ▼0.20675.82 ▲7.8457.14 ▼3.44
Media Library /wp-admin/upload.php1,410 ▲254.31 ▲0.0794.63 ▼13.3341.59 ▼5.28
Hangeul Web Fonts /wp-admin/options-general.php?page=hangeul-web-fonts8712.0726.9077.61

Uninstaller [IO: ▲0.00MB] [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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: web font, web fonts, korean, font, hangeul...

hangeul-web-fonts/hangeul-web-fonts.php 92% from 13 tests

The main file in "Hangeul Web Fonts" v. 0.4.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Domain Path: The domain path folder was not found ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin256 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP24639221
CSS24335

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity6.50
▷ Minimum class complexity6.00
▷ Maximum class complexity7.00
Average method complexity1.65
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods15.88%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

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