10% hangul-font-nanumgothic-google

Code Review | Hangul font nanumgothic - google

WordPress plugin Hangul font nanumgothic - google scored 10% from 54 tests.

About plugin

  • Plugin page: hangul-font-nanum...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7.1-4.0.0
  • WordPress version: 5.8.1
  • First release: Nov 5, 2014
  • Latest release: Nov 5, 2014
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: iamgood (100%)

Code review

54 tests

User reviews

1 review

Install metrics

2,000+ active / 22,491 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/hangul-font-nanumgothic-google/class/ex_hf_class.php+70
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.82MB] [CPU: ▼185.09ms] Passed 4 tests

Server-side resources used by Hangul font nanumgothic - google
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /1.80 ▼1.036.31 ▼27.88
Dashboard /wp-admin1.82 ▼1.235.61 ▼36.56
Posts /wp-admin/edit.php1.82 ▼1.285.92 ▼37.56
Add New Post /wp-admin/post-new.php1.82 ▼3.616.39 ▼638.23
Media Library /wp-admin/upload.php1.82 ▼1.186.02 ▼28.00

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Hangul font nanumgothic - google
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,698 ▲10215.83 ▲0.309.76 ▼0.1048.41 ▲3.69
Dashboard /wp-admin2,982 ▲485.92 ▲0.00134.76 ▼8.75150.41 ▲35.35
Posts /wp-admin/edit.php2,773 ▲342.72 ▲0.0161.22 ▼1.9092.70 ▲3.85
Add New Post /wp-admin/post-new.php1,628 ▲1321.91 ▲0.47271.98 ▲1.28112.66 ▲4.15
Media Library /wp-admin/upload.php1,764 ▼435.00 ▼0.04125.66 ▼21.73146.90 ▲19.44

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
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/hangul-font-nanumgothic-google/class/ex_hf_class.php+70
    Trying to access array offset on value of type bool

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/hangul-font-nanumgothic-google/include/admin_page.php:4
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/hangul-font-nanumgothic-google/include/message.php:1
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/hangul-font-nanumgothic-google/include/error_message.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: google, nanumgothic font, google webfont loader, naver nanumgothic, webfont...

hangul-font-nanumgothic-google/index.php 92% from 13 tests

The main file in "Hangul font nanumgothic - google" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("hangul-font-nanumgothic-google.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin312 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP84625303
JavaScript1005
CSS1004

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity5.50
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity1.62
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes250.00%
Methods29
▷ Static methods13.45%
▷ Public methods29100.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

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/hangul.png1.14KB0.28KB▼ 75.81%