84% line-auto-post

Code Review | LINE Auto Post

WordPress plugin LINE Auto Post scored84%from 54 tests.

About plugin

  • Plugin page: line-auto-post
  • Plugin version: 1.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.13-6.3.2
  • WordPress version: 6.3.1
  • First release: Jan 26, 2020
  • Latest release: Nov 11, 2023
  • Number of updates: 22
  • Update frequency: every 63.1 days
  • Top authors: growniche (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

600+ active /5,790 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.05MB] [CPU: ▼7.36ms] Passed 4 tests

Analyzing server-side resources used by LINE Auto Post
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0535.91 ▼0.32
Dashboard /wp-admin3.36 ▲0.0246.01 ▼13.02
Posts /wp-admin/edit.php3.42 ▲0.0647.26 ▼3.57
Add New Post /wp-admin/post-new.php5.95 ▲0.0686.92 ▼3.18
Media Library /wp-admin/upload.php3.29 ▲0.0636.43 ▼9.68

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

LINE Auto Post: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲5914.31 ▼0.041.74 ▼0.2236.39 ▼3.22
Dashboard /wp-admin2,211 ▲305.59 ▼0.1291.30 ▼22.1938.67 ▼5.15
Posts /wp-admin/edit.php2,116 ▲161.95 ▼0.0540.87 ▼0.3436.41 ▼2.83
Add New Post /wp-admin/post-new.php6,234 ▲4,70725.96 ▲2.90910.28 ▲238.4372.30 ▲11.31
Media Library /wp-admin/upload.php1,407 ▲44.15 ▲0.02100.57 ▼3.8743.26 ▼1.56

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

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)
Everything seems fine, however this is by no means an exhaustive test

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 items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/line-auto-post/line-auto-post.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

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
3 plugin tags: line, auto, post

line-auto-post/line-auto-post.php Passed 13 tests

The principal PHP file in "LINE Auto Post" v. 1.0.8 is loaded by WordPress automatically on each request
115 characters long description:
WordPressの投稿をLINE公式アカウント経由で連動配信することができるプラグインです。

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 plugin257 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP145254257

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity40.00
▷ Minimum class complexity40.00
▷ Maximum class complexity40.00
Average method complexity3.79
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods535.71%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants25
▷ Global constants00.00%
▷ Class constants25100.00%
▷ Public constants25100.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
No PNG files were detected