Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.47ms] Passed 4 tests
An overview of server-side resources used by LINE Pay for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 39.47 ▲0.54 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.38 ▼7.98 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.03 ▲1.57 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 79.90 ▼16.00 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.79 ▲3.14 |
Server storage [IO: ▲0.12MB] [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: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for LINE Pay for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲64 | 14.38 ▲0.22 | 1.83 ▲0.19 | 43.26 ▲3.58 |
Dashboard /wp-admin | 2,206 ▲29 | 5.53 ▼0.00 | 79.59 ▼10.18 | 40.20 ▼3.64 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 2.03 ▲0.04 | 39.04 ▲1.67 | 38.08 ▲1.38 |
Add New Post /wp-admin/post-new.php | 1,544 ▲16 | 18.13 ▼4.99 | 629.05 ▼54.25 | 65.75 ▲9.50 |
Media Library /wp-admin/upload.php | 1,405 ▲8 | 4.14 ▼0.07 | 95.21 ▼5.50 | 40.67 ▼3.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 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: e-commerce, payment, japanese, woocommerce, paidy...
linepay-wc/linepay-wc.php Passed 13 tests
The main file in "LINE Pay for WooCommerce" v. 1.1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
24 characters long description:
Line Pay for WooCommerce
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,553 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 185 | 739 | 1,543 |
CSS | 2 | 0 | 0 | 10 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 34.67 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 76.00 |
Average method complexity | 3.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 79 | |
▷ Static methods | 2 | 2.53% |
▷ Public methods | 73 | 92.41% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 7.59% |
Functions | 7 | |
▷ Named functions | 6 | 85.71% |
▷ Anonymous functions | 1 | 14.29% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/linepay_white.png | 2.91KB | 1.61KB | ▼ 44.69% |
assets/images/linepay_logo.png | 0.86KB | 0.57KB | ▼ 33.98% |