79% shoplic-payment-gateway

Code Review | 쇼플릭 우커머스 결제

WordPress plugin 쇼플릭 우커머스 결제 scored 79% from 54 tests.

About plugin

  • Plugin page: shoplic-payment-g...
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3.0-5.9
  • WordPress version: 6.3.1
  • First release: Mar 15, 2022
  • Latest release: Mar 29, 2022
  • Number of updates: 5
  • Update frequency: every 6.4 days
  • Top authors: shoplic (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 291 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼6.49ms] 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.62 ▲0.1635.36 ▼5.34
Dashboard /wp-admin3.46 ▲0.1546.18 ▼3.61
Posts /wp-admin/edit.php3.57 ▲0.2243.74 ▼3.09
Add New Post /wp-admin/post-new.php6.04 ▲0.1583.26 ▼13.91
Media Library /wp-admin/upload.php3.38 ▲0.1532.94 ▲2.16

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 164 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

쇼플릭 우커머스 결제: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.61 ▼0.821.67 ▼0.1842.82 ▼4.92
Dashboard /wp-admin2,209 ▲214.85 ▼1.05103.01 ▼13.4338.90 ▼7.72
Posts /wp-admin/edit.php2,089 ▼32.00 ▼0.0337.80 ▲3.3333.40 ▲2.88
Add New Post /wp-admin/post-new.php1,538 ▲523.19 ▼0.17666.04 ▲2.7157.02 ▲3.62
Media Library /wp-admin/upload.php1,382 ▼64.25 ▲0.08105.59 ▲6.5743.65 ▼4.54

Uninstaller [IO: ▲1.14MB] [DB: ▲0.00MB] 50% 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 has failed uninstalling correctly, leaving 164 files (1.14MB) in the plugin directory
    • (new file) assets/css/admins/shop-order-payment-data.css
    • (new file) assets/js/dist/wc-status-api-log.asset.php
    • (new file) assets/img/nicepay-01.jpg
    • (new file) assets/img/nicepay-logo.jpg
    • (new file) assets/img/icon-kakao-pay.png
    • (new file) assets/js/dist/payment-fields.js
    • (new file) assets/js/dist/payment-fields.asset.php
    • (new file) assets/img/nicepay-02.jpg
    • (new file) assets/js/dist/payment-fields.css
    • (new file) LICENSE
    • ...
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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
9 plugin tags: store, payment, checkout, e-commerce, woocommerce...

shoplic-payment-gateway/index.php 85% from 13 tests

The main file in "쇼플릭 우커머스 결제" v. 1.1.0 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:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("shoplic-payment-gateway.php" instead of "index.php")

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 detected11,034 lines of code in 152 files:
LanguageFilesBlank linesComment linesLines of code
PHP1281,4413,5927,242
JSON4002,334
JavaScript107420862
PO File1143242327
XML12225106
Markdown290100
CSS616063

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.51
Average class complexity7.59
▷ Minimum class complexity1.00
▷ Maximum class complexity61.00
Average method complexity2.61
▷ Minimum method complexity1.00
▷ Maximum method complexity45.00
Code structure
Namespaces2
Interfaces4
Traits4
Classes86
▷ Abstract classes2630.23%
▷ Concrete classes6069.77%
▷ Final classes11.67%
Methods387
▷ Static methods389.82%
▷ Public methods33285.79%
▷ Protected methods5012.92%
▷ Private methods51.29%
Functions54
▷ Named functions4277.78%
▷ Anonymous functions1222.22%
Constants13
▷ Global constants00.00%
▷ Class constants13100.00%
▷ Public constants1184.62%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/icon-kakao-pay.png0.68KB0.70KB0.00%