78% pgall-for-woocommerce

Code Review | 워드프레스 결제 심플페이 - 우커머스 결제 플러그인

WordPress plugin 워드프레스 결제 심플페이 - 우커머스 결제 플러그인 scored78%from 54 tests.

About plugin

  • Plugin page: pgall-for-woocomm...
  • Plugin version: 3.3.8
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6.0-6.3
  • WordPress version: 6.3.1
  • First release: Mar 28, 2018
  • Latest release: Nov 29, 2023
  • Number of updates: 290
  • Update frequency: every 7.2 days
  • Top authors: codemstory (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

1,000+ active /70,493 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼6.50ms] Passed 4 tests

This is a short check of server-side resources used by 워드프레스 결제 심플페이 - 우커머스 결제 플러그인
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0636.43 ▼4.71
Dashboard /wp-admin3.36 ▲0.0243.40 ▼17.45
Posts /wp-admin/edit.php3.48 ▲0.1246.17 ▼0.68
Add New Post /wp-admin/post-new.php5.95 ▲0.0689.64 ▼3.17
Media Library /wp-admin/upload.php3.29 ▲0.0630.93 ▲0.29

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 745 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for 워드프레스 결제 심플페이 - 우커머스 결제 플러그인
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.70 ▼0.031.49 ▼0.2136.18 ▼7.37
Dashboard /wp-admin2,195 ▲215.61 ▲0.0591.41 ▲5.2540.63 ▲0.90
Posts /wp-admin/edit.php2,100 ▲32.00 ▲0.0539.31 ▲1.0435.05 ▼2.44
Add New Post /wp-admin/post-new.php1,526 ▼1023.07 ▼0.13597.56 ▼21.6059.23 ▲4.16
Media Library /wp-admin/upload.php1,400 ▼04.21 ▲0.0695.52 ▼0.1840.80 ▼1.24

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 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
Please fix the following items
  • 4× PHP files output text when accessed directly:
    • > /wp-content/plugins/pgall-for-woocommerce/templates/checkout/pafw/payment-fields.php
    • > /wp-content/plugins/pgall-for-woocommerce/includes/admin/meta-boxes/views/subscription.php
    • > /wp-content/plugins/pgall-for-woocommerce/templates/checkout/pafw/payment-button.php
    • > /wp-content/plugins/pgall-for-woocommerce/templates/checkout/pafw/payment-methods.php
  • 80× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WC() in wp-content/plugins/pgall-for-woocommerce/templates/pafw/bacs/cash-receipt.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wc_get_order() in wp-content/plugins/pgall-for-woocommerce/templates/myaccount/exchange-return-request.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/pgall-for-woocommerce/templates/pafw/tosspayments/form-key-in.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/pgall-for-woocommerce/templates/checkout/pafw/account.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/pgall-for-woocommerce/templates/pafw/nicepay/form-key-in.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function pafw_get_payment_gateway_from_order() in wp-content/plugins/pgall-for-woocommerce/includes/admin/meta-boxes/views/additional_charge.php:2
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_meta() on null in wp-content/plugins/pgall-for-woocommerce/includes/admin/meta-boxes/views/cash-receipt.php:3
    • > PHP Notice
      Undefined variable: register_delivery_info in wp-content/plugins/pgall-for-woocommerce/includes/admin/meta-boxes/views/escrow.php on line 16
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/pgall-for-woocommerce/templates/checkout/pafw/payment-fields.php on line 36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/pgall-for-woocommerce/includes/admin/views/guide.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Please fix the following attributes: The official readme.txt might help

pgall-for-woocommerce/pgall-for-woocommerce.php Passed 13 tests

The main file in "워드프레스 결제 심플페이 - 우커머스 결제 플러그인" v. 3.3.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
94 characters long description:
코드엠샵에서 개발, 운영되는 우커머스 전용 결제 통합 시스템 입니다.

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
There were no executable files found in this plugin183,783 lines of code in 567 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript12221,87531,410145,368
PHP3014,34432027,905
HTML49375295,843
Markdown565601,899
SVG594001,831
JSON1700923
CSS1401614

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity8.81
▷ Minimum class complexity1.00
▷ Maximum class complexity184.00
Average method complexity2.61
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes216
▷ Abstract classes146.48%
▷ Concrete classes20293.52%
▷ Final classes10.50%
Methods1,007
▷ Static methods35435.15%
▷ Public methods96796.03%
▷ Protected methods373.67%
▷ Private methods30.30%
Functions75
▷ Named functions6586.67%
▷ Anonymous functions1013.33%
Constants43
▷ Global constants716.28%
▷ Class constants3683.72%
▷ Public constants36100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
129 PNG files occupy 1.03MB with 0.46MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/vendor/amcharts/patterns/black/pattern16.png0.16KB0.10KB▼ 36.88%
assets/vendor/amcharts/patterns/black/pattern10.png0.15KB0.10KB▼ 34.84%
assets/images/register.png0.67KB0.38KB▼ 43.71%
assets/vendor/amcharts/images/dragIconRectBigH.png0.70KB0.29KB▼ 58.46%
assets/gateways/npay/images/card_logo.png3.03KB1.56KB▼ 48.48%