100% wc-payment-gateway-line-pay

Code Review | LINE Pay Gateway for WooCommerce

WordPress plugin LINE Pay Gateway for WooCommerce scored 100% from 54 tests.

About plugin

  • Plugin page: wc-payment-gatewa...
  • Plugin version: 0.4.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.3.1
  • WordPress version: 5.8.1
  • First release: Oct 29, 2015
  • Latest release: Nov 14, 2015
  • Number of updates: 26
  • Update frequency: every 0.6 days
  • Top authors: happydenn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 2,309 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

Server-side resources used by LINE Pay Gateway for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.83 ▲0.1245.92 ▲23.26
Dashboard /wp-admin3.06 ▲0.0043.64 ▼3.49
Posts /wp-admin/edit.php3.11 ▲0.0045.13 ▼0.40
Add New Post /wp-admin/post-new.php5.42 ▼0.0198.38 ▼552.72
Media Library /wp-admin/upload.php3.00 ▲0.0034.78 ▲0.38

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

LINE Pay Gateway for WooCommerce: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.96 ▲0.468.19 ▼1.4147.77 ▼4.29
Dashboard /wp-admin2,970 ▲765.85 ▼0.00145.64 ▲0.95119.49 ▲3.13
Posts /wp-admin/edit.php2,739 ▼02.70 ▲0.0270.32 ▲5.3797.84 ▲3.44
Add New Post /wp-admin/post-new.php1,683 ▲18318.50 ▼0.03384.98 ▲5.50114.68 ▼8.17
Media Library /wp-admin/upload.php1,807 ▼05.01 ▼0.00152.59 ▼9.49121.68 ▼3.47

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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 SRP test was a success

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


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Donate link: Invalid URI ("")
The official readme.txt is a good inspiration

wc-payment-gateway-line-pay/wc-payment-gateway-line-pay.php Passed 13 tests

The main PHP script in "LINE Pay Gateway for WooCommerce" version 0.4.3 is automatically included on every request by WordPress
66 characters long description:
Accept LINE Pay mobile payments on your WooCommerce powered store!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin420 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PO File26062170

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity7.00
▷ Minimum class complexity2.00
▷ Maximum class complexity12.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods1083.33%
▷ Protected methods216.67%
▷ Private methods00.00%
▷ Named functions4100.00%
▷ Anonymous functions00.00%
▷ Global constants2100.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
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/product-image-fallback.png15.85KB5.67KB▼ 64.22%
assets/linepay_logo_new.png17.34KB5.91KB▼ 65.94%
assets/linepay_logo_74x24.png2.50KB1.44KB▼ 42.69%