84% woo-line-notify

Code Review | Woocommerce Line Notify

WordPress plugin Woocommerce Line Notify scored 84% from 54 tests.

About plugin

  • Plugin page: woo-line-notify
  • Plugin version: 1.1.7
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.4
  • WordPress version: 5.8.1
  • First release: Feb 28, 2019
  • Latest release: Apr 20, 2020
  • Number of updates: 25
  • Update frequency: every 16.7 days
  • Top authors: iamapinan (96%)Otto42 (12%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active / 4,970 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
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
PageMemory (MB)CPU Time (ms)
Home /2.97 ▲0.2435.82 ▲11.59
Dashboard /wp-admin3.21 ▲0.1551.26 ▲1.57
Posts /wp-admin/edit.php3.32 ▲0.2049.33 ▲2.95
Add New Post /wp-admin/post-new.php3.06 ▼2.3822.84 ▼639.38
Media Library /wp-admin/upload.php3.15 ▲0.1435.96 ▲1.11
About /wp-admin/admin.php?page=woo-line-notify&tab=about3.1229.95
Line Notify /wp-admin/admin.php?page=woo-line-notify3.1233.20
API /wp-admin/admin.php?page=woo-line-notify&tab=api3.1231.12
Debug /wp-admin/admin.php?page=woo-line-notify&tab=debug3.1232.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,837 ▲24116.22 ▲0.727.71 ▼1.2645.00 ▼3.60
Dashboard /wp-admin3,128 ▲1915.93 ▼0.04146.38 ▼1.88157.65 ▲36.50
Posts /wp-admin/edit.php2,778 ▲392.69 ▼0.0068.60 ▼1.4596.17 ▲8.60
Add New Post /wp-admin/post-new.php1,708 ▲9318.69 ▼2.67372.65 ▲83.11121.11 ▲8.90
Media Library /wp-admin/upload.php1,846 ▲395.01 ▼0.01161.79 ▲6.17115.72 ▼8.75
About /wp-admin/admin.php?page=woo-line-notify&tab=about1,2922.1955.8676.74
Line Notify /wp-admin/admin.php?page=woo-line-notify1,3152.1559.9272.59
API /wp-admin/admin.php?page=woo-line-notify&tab=api1,1472.1155.0476.99
Debug /wp-admin/admin.php?page=woo-line-notify&tab=debug1,1492.1254.4280.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)
Please take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP382114655
Markdown1220164
PO File13749161
JSON10021
JavaScript11011

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 code0.20
Average class complexity14.67
▷ Minimum class complexity3.00
▷ Maximum class complexity34.00
Average method complexity2.46
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods28
▷ Static methods13.57%
▷ Public methods28100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
src/image/line-notify-logo.png21.26KB7.24KB▼ 65.95%