84% wp-line-notify

Code Review | WP LINE Notify

WordPress plugin WP LINE Notify scored84%from 54 tests.

About plugin

  • Plugin page: wp-line-notify
  • Plugin version: 1.4.5
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.3
  • WordPress version: 6.3.1
  • First release: Sep 7, 2018
  • Latest release: Aug 24, 2023
  • Number of updates: 50
  • Update frequency: every 36.3 days
  • Top authors: simon_tw (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

2,000+ active /17,225 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼4.62ms] Passed 4 tests

This is a short check of server-side resources used by WP LINE Notify
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1537.24 ▼4.35
Dashboard /wp-admin3.45 ▲0.1450.65 ▲0.47
Posts /wp-admin/edit.php3.56 ▲0.2054.67 ▲4.11
Add New Post /wp-admin/post-new.php6.03 ▲0.1485.46 ▼18.71
Media Library /wp-admin/upload.php3.37 ▲0.1438.52 ▲4.65
WP Line Notify /wp-admin/options-general.php?page=sig-wp-line-notify3.4033.90

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WP LINE Notify
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.27 ▼0.071.81 ▲0.0942.89 ▲0.15
Dashboard /wp-admin2,202 ▲255.65 ▲0.0185.22 ▼6.6141.92 ▼3.86
Posts /wp-admin/edit.php2,110 ▲71.96 ▲0.0137.88 ▲0.4233.20 ▼2.25
Add New Post /wp-admin/post-new.php1,531 ▲522.88 ▼0.21656.65 ▼33.4354.71 ▼1.33
Media Library /wp-admin/upload.php1,401 ▲14.24 ▲0.0295.34 ▼14.4543.77 ▼12.31
WP Line Notify /wp-admin/options-general.php?page=sig-wp-line-notify1,0751.9424.3129.09

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • _sig_line_notify_setting
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-line-notify/wp-line-notify.php:541

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: plugin, elementor, line, contact form, woocommerce...

wp-line-notify/wp-line-notify.php Passed 13 tests

"WP LINE Notify" version 1.4.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
51 characters long description:
This plugin can send a alert message by LINE Notify

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
Everything looks great! No dangerous files found in this plugin1,121 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP7264116916
PO File19498205

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity28.80
▷ Minimum class complexity6.00
▷ Maximum class complexity95.00
Average method complexity4.56
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods39
▷ Static methods717.95%
▷ Public methods3897.44%
▷ Protected methods00.00%
▷ Private methods12.56%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants266.67%
▷ Class constants133.33%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin