83% korea-for-woocommerce

Code Review | Korea for WooCommerce

WordPress plugin Korea for WooCommerce scored 83% from 54 tests.

About plugin

  • Plugin page: korea-for-woocomm...
  • Plugin version: 1.1.8
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.9.1
  • WordPress version: 6.3.1
  • First release: Nov 20, 2019
  • Latest release: Aug 20, 2022
  • Number of updates: 77
  • Update frequency: every 13.0 days
  • Top authors: jgreys (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

300+ active / 5,153 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.02MB] [CPU: ▼5.91ms] Passed 4 tests

An overview of server-side resources used by Korea for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.21 ▼0.60
Dashboard /wp-admin3.33 ▲0.0243.85 ▼3.74
Posts /wp-admin/edit.php3.38 ▲0.0246.57 ▼5.67
Add New Post /wp-admin/post-new.php5.91 ▲0.0291.26 ▼13.64
Media Library /wp-admin/upload.php3.25 ▲0.0235.37 ▲2.77

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Korea for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲5013.15 ▼1.231.54 ▼0.3740.32 ▼0.31
Dashboard /wp-admin2,216 ▲255.90 ▲1.03112.39 ▼2.3442.64 ▼2.10
Posts /wp-admin/edit.php2,098 ▲92.02 ▲0.0239.22 ▼3.8437.55 ▲0.27
Add New Post /wp-admin/post-new.php1,540 ▲2022.98 ▼0.09582.66 ▼106.1849.77 ▼16.99
Media Library /wp-admin/upload.php1,398 ▲134.18 ▼0.05104.42 ▼24.7242.54 ▼0.98

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

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

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/korea-for-woocommerce/templates/order/order-details-vbank.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_is_mobile() in wp-content/plugins/korea-for-woocommerce/templates/checkout/result.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/korea-for-woocommerce/includes/wc-korea-hooks.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Contributors: The plugin contributors field is missing
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
The official readme.txt might help

korea-for-woocommerce/korea-for-woocommerce.php 92% from 13 tests

This is the main PHP file of "Korea for WooCommerce" version 1.1.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Domain Path: The domain path points to an invalid folder, "/i18n/" does not exist

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
No dangerous file extensions were detected7,142 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
XML11184,835
PHP305459842,303
JavaScript3003
CSS1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity17.74
▷ Minimum class complexity1.00
▷ Maximum class complexity96.00
Average method complexity4.56
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes19
▷ Abstract classes15.26%
▷ Concrete classes1894.74%
▷ Final classes00.00%
Methods90
▷ Static methods44.44%
▷ Public methods8695.56%
▷ Protected methods11.11%
▷ Private methods33.33%
Functions4
▷ Named functions00.00%
▷ Anonymous functions4100.00%
Constants5
▷ Global constants5100.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
No PNG files were detected