90% wpbr-linepay-tw

Code Review | Pay with LINE Pay

WordPress plugin Pay with LINE Pay scored90%from 54 tests.

About plugin

  • Plugin page: wpbr-linepay-tw
  • Plugin version: 1.1.4
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.3.2
  • WordPress version: 6.3.1
  • First release: Sep 9, 2023
  • Latest release: Oct 20, 2023
  • Number of updates: 13
  • Update frequency: every 13.7 days
  • Top authors: wpbrewer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /309 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.01MB] [CPU: ▼7.35ms] Passed 4 tests

A check of server-side resources used by Pay with LINE Pay
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.98 ▲2.39
Dashboard /wp-admin3.31 ▼0.0447.03 ▼10.15
Posts /wp-admin/edit.php3.36 ▲0.0047.81 ▲1.14
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.01 ▼20.63
Media Library /wp-admin/upload.php3.23 ▲0.0037.36 ▲0.25

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

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

Browser metrics Passed 4 tests

Pay with LINE Pay: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.62 ▼0.041.74 ▲0.0844.80 ▲0.88
Dashboard /wp-admin2,198 ▲275.62 ▲0.0394.48 ▲3.0043.02 ▲1.10
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0036.03 ▼1.8136.04 ▲0.89
Add New Post /wp-admin/post-new.php1,526 ▼223.61 ▲0.52700.53 ▲22.5255.56 ▲3.64
Media Library /wp-admin/upload.php1,400 ▲64.21 ▼0.04105.41 ▲3.9844.42 ▲0.07

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: payment, line, line pay, woocommerce, taiwan...

wpbr-linepay-tw/wpbr-linepay-tw.php 92% from 13 tests

Analyzing the main PHP file in "Pay with LINE Pay" version 1.1.4
You should first fix the following items:
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.9" instead of "3.0.0")

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
Everything looks great! No dangerous files found in this plugin1,281 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP9314638985
PO File16072153
JavaScript114664
Markdown119036
YAML10028
CSS21015

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity13.14
▷ Minimum class complexity1.00
▷ Maximum class complexity45.00
Average method complexity2.55
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes114.29%
Methods55
▷ Static methods1120.00%
▷ Public methods4072.73%
▷ Protected methods00.00%
▷ Private methods1527.27%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants44
▷ Global constants49.09%
▷ Class constants4090.91%
▷ Public constants40100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/linepay-logo.png2.01KB1.17KB▼ 42.12%