Benchmarks
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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.83 ▲0.12 | 45.92 ▲23.26 |
Dashboard /wp-admin | 3.06 ▲0.00 | 43.64 ▼3.49 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 45.13 ▼0.40 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 98.38 ▼552.72 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 34.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 15.96 ▲0.46 | 8.19 ▼1.41 | 47.77 ▼4.29 |
Dashboard /wp-admin | 2,970 ▲76 | 5.85 ▼0.00 | 145.64 ▲0.95 | 119.49 ▲3.13 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.70 ▲0.02 | 70.32 ▲5.37 | 97.84 ▲3.44 |
Add New Post /wp-admin/post-new.php | 1,683 ▲183 | 18.50 ▼0.03 | 384.98 ▲5.50 | 114.68 ▼8.17 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.01 ▼0.00 | 152.59 ▼9.49 | 121.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
Optimizations
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 ("")
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 59 | 13 | 250 |
PO File | 2 | 60 | 62 | 170 |
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 code | 0.18 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 83.33% |
▷ Protected methods | 2 | 16.67% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/product-image-fallback.png | 15.85KB | 5.67KB | ▼ 64.22% |
assets/linepay_logo_new.png | 17.34KB | 5.91KB | ▼ 65.94% |
assets/linepay_logo_74x24.png | 2.50KB | 1.44KB | ▼ 42.69% |