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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.47MB] [CPU: ▼158.44ms] Passed 4 tests
Server-side resources used by Woocommerce Line Notify
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.97 ▲0.24 | 35.82 ▲11.59 |
Dashboard /wp-admin | 3.21 ▲0.15 | 51.26 ▲1.57 |
Posts /wp-admin/edit.php | 3.32 ▲0.20 | 49.33 ▲2.95 |
Add New Post /wp-admin/post-new.php | 3.06 ▼2.38 | 22.84 ▼639.38 |
Media Library /wp-admin/upload.php | 3.15 ▲0.14 | 35.96 ▲1.11 |
About /wp-admin/admin.php?page=woo-line-notify&tab=about | 3.12 | 29.95 |
Line Notify /wp-admin/admin.php?page=woo-line-notify | 3.12 | 33.20 |
API /wp-admin/admin.php?page=woo-line-notify&tab=api | 3.12 | 31.12 |
Debug /wp-admin/admin.php?page=woo-line-notify&tab=debug | 3.12 | 32.05 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 2 new options
New WordPress options |
---|
wln-api-endpoint |
wln-api-key |
Browser metrics Passed 4 tests
Woocommerce Line Notify: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,837 ▲241 | 16.22 ▲0.72 | 7.71 ▼1.26 | 45.00 ▼3.60 |
Dashboard /wp-admin | 3,128 ▲191 | 5.93 ▼0.04 | 146.38 ▼1.88 | 157.65 ▲36.50 |
Posts /wp-admin/edit.php | 2,778 ▲39 | 2.69 ▼0.00 | 68.60 ▼1.45 | 96.17 ▲8.60 |
Add New Post /wp-admin/post-new.php | 1,708 ▲93 | 18.69 ▼2.67 | 372.65 ▲83.11 | 121.11 ▲8.90 |
Media Library /wp-admin/upload.php | 1,846 ▲39 | 5.01 ▼0.01 | 161.79 ▲6.17 | 115.72 ▼8.75 |
About /wp-admin/admin.php?page=woo-line-notify&tab=about | 1,292 | 2.19 | 55.86 | 76.74 |
Line Notify /wp-admin/admin.php?page=woo-line-notify | 1,315 | 2.15 | 59.92 | 72.59 |
API /wp-admin/admin.php?page=woo-line-notify&tab=api | 1,147 | 2.11 | 55.04 | 76.99 |
Debug /wp-admin/admin.php?page=woo-line-notify&tab=debug | 1,149 | 2.12 | 54.42 | 80.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 2 options in the database
- wln-api-endpoint
- wln-api-key
Smoke tests 75% from 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 50% from 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
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/woo-line-notify/woo-line-notify.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
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
Attributes that need to be fixed:
- Tags: There are too many tags (13 tag instead of maximum 10)
woo-line-notify/woo-line-notify.php Passed 13 tests
The entry point to "Woocommerce Line Notify" version 1.1.7 is a PHP file that has certain tags in its header comment area
42 characters long description:
Woocommerce new order notify to line chat.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,012 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 82 | 114 | 655 |
Markdown | 1 | 22 | 0 | 164 |
PO File | 1 | 37 | 49 | 161 |
JSON | 1 | 0 | 0 | 21 |
JavaScript | 1 | 1 | 0 | 11 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 14.67 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 1 | 3.57% |
▷ Public methods | 28 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/image/line-notify-logo.png | 21.26KB | 7.24KB | ▼ 65.95% |