63% mw-wp-form-line-notify

Code Review | MW WP Form LINE Notify

WordPress plugin MW WP Form LINE Notify scored 63% from 54 tests.

About plugin

  • Plugin page: mw-wp-form-line-n...
  • Plugin version: 0.9.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.9.1
  • WordPress version: 6.3.1
  • First release: May 29, 2017
  • Latest release: Dec 16, 2017
  • Number of updates: 6
  • Update frequency: every 33.5 days
  • Top authors: ko31 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 1,273 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼1.92MB] [CPU: ▼54.02ms] Passed 4 tests

A check of server-side resources used by MW WP Form LINE Notify
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.406.25 ▼38.88
Dashboard /wp-admin2.08 ▼1.229.96 ▼45.72
Posts /wp-admin/edit.php2.08 ▼1.278.37 ▼44.27
Add New Post /wp-admin/post-new.php2.08 ▼3.808.10 ▼87.21
Media Library /wp-admin/upload.php2.08 ▼1.148.28 ▼29.38
Line Notify /wp-admin/edit.php?post_type=mw-wp-form&page=mw-wp-form-line-notify2.099.66

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

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

Browser metrics Passed 4 tests

MW WP Form LINE Notify: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲1113.16 ▼0.145.23 ▼0.0247.15 ▲1.64
Dashboard /wp-admin2,206 ▼35.84 ▼0.04105.03 ▼0.5242.36 ▲1.80
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0033.57 ▼2.9931.61 ▼3.60
Add New Post /wp-admin/post-new.php1,534 ▼823.16 ▼0.05769.81 ▲82.1164.14 ▲5.34
Media Library /wp-admin/upload.php1,382 ▼94.28 ▼0.0196.11 ▼3.5141.09 ▼1.06
Line Notify /wp-admin/edit.php?post_type=mw-wp-form&page=mw-wp-form-line-notify280.440.114.69

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/mw-wp-form-line-notify/mw-wp-form-line-notify.php+75
    Trying to access array offset on value of type bool
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/edit.php?post_type=mw-wp-form&page=mw-wp-form-line-notify
    • > Notice in wp-content/plugins/mw-wp-form-line-notify/mw-wp-form-line-notify.php+75
    Trying to access array offset on value of type bool

SRP 50% from 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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_file_data() in wp-content/plugins/mw-wp-form-line-notify/mw-wp-form-line-notify.php:41

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
    • > GET request to /wp-admin/edit.php?post_type=mw-wp-form&page=mw-wp-form-line-notify
    • > Network (severe)
    wp-admin/edit.php?post_type=mw-wp-form&page=mw-wp-form-line-notify - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: form, mail, line, line notify

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

The main PHP script in "MW WP Form LINE Notify" version 0.9.0 is automatically included on every request by WordPress
59 characters long description:
This plugin send LINE Notify a message sent from MW WP Form

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin230 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12624176
PO File1222454

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.25
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin