84% korea-address

Code Review | 우커머스 한국형 주소, Korea Address

WordPress plugin 우커머스 한국형 주소, Korea Address scored84%from 54 tests.

About plugin

  • Plugin page: korea-address
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.0
  • WordPress version: 6.3.1
  • First release: Apr 3, 2021
  • Latest release: Aug 15, 2022
  • Number of updates: 33
  • Update frequency: every 15.2 days
  • Top authors: dgner (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /2,078 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼9.00ms] Passed 4 tests

Server-side resources used by 우커머스 한국형 주소, Korea Address
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.40 ▼0.0627.30 ▼11.74
Dashboard /wp-admin3.32 ▲0.0243.91 ▼2.25
Posts /wp-admin/edit.php3.37 ▲0.0242.61 ▼6.02
Add New Post /wp-admin/post-new.php5.90 ▲0.0288.58 ▼15.98
Media Library /wp-admin/upload.php3.25 ▲0.0234.84 ▲2.00

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for 우커머스 한국형 주소, Korea Address
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,465 ▼27014.44 ▲0.150.46 ▼1.3515.76 ▼31.85
Dashboard /wp-admin2,206 ▲184.85 ▼1.05116.94 ▲10.4544.77 ▲5.13
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0633.81 ▼0.8331.32 ▼3.45
Add New Post /wp-admin/post-new.php1,533 ▲523.19 ▲4.94652.31 ▲39.6366.25 ▲16.82
Media Library /wp-admin/upload.php1,388 ▼34.15 ▼0.07101.51 ▼2.5441.13 ▼2.97

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/korea-address/k-woocommerce.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

korea-address/k-woocommerce.php 92% from 13 tests

The principal PHP file in "우커머스 한국형 주소, Korea Address" v. 1.2 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("korea-address.php" instead of "k-woocommerce.php")

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

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin