83% lianaautomation-wc

Code Review | LianaAutomation for WooCommerce

WordPress plugin LianaAutomation for WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: lianaautomation-wc
  • Plugin version: 1.0.39
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3
  • WordPress version: 6.3.1
  • First release: Oct 7, 2022
  • Latest release: Sep 7, 2023
  • Number of updates: 5
  • Update frequency: every 67.0 days
  • Top authors: lianatechnologies (80%)timopohjanvirtaliana (40%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /188 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼8.80ms] Passed 4 tests

This is a short check of server-side resources used by LianaAutomation for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.21 ▼6.74
Dashboard /wp-admin3.33 ▲0.0249.30 ▼6.33
Posts /wp-admin/edit.php3.38 ▲0.0248.83 ▲1.12
Add New Post /wp-admin/post-new.php5.91 ▲0.0288.64 ▼22.00
Media Library /wp-admin/upload.php3.25 ▲0.0238.45 ▼0.13
WooCommerce /wp-admin/admin.php?page=lianaautomation-wc3.2232.58

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

LianaAutomation for WooCommerce: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲2214.23 ▼0.002.05 ▲0.1143.61 ▲0.39
Dashboard /wp-admin2,217 ▲435.63 ▲0.0394.64 ▼8.6242.84 ▼3.69
Posts /wp-admin/edit.php2,119 ▲191.96 ▼0.0437.81 ▼0.0035.78 ▼2.73
Add New Post /wp-admin/post-new.php1,542 ▲1122.90 ▼0.29662.12 ▲2.3556.02 ▼2.55
Media Library /wp-admin/upload.php1,422 ▲194.29 ▼0.0998.60 ▼5.0845.83 ▲0.54
WooCommerce /wp-admin/admin.php?page=lianaautomation-wc8502.0326.4441.55

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 6× 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/lianaautomation-wc/includes/lianaautomation-wc-orderstatus.php:285
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/lianaautomation-wc/admin/class-lianaautomation-wc.php:406
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lianaautomation-wc/includes/lianaautomation-cookie.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lianaautomation-wc/includes/lianaautomation-cookie.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lianaautomation-wc/includes/lianaautomation-wc-login.php:238
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lianaautomation-wc/includes/lianaautomation-wc-customer.php:192

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% from 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
5 plugin tags: woocommerce, e-commerce, online store, automation, ecommerce

lianaautomation-wc/lianaautomation-wc.php 77% from 13 tests

The principal PHP file in "LianaAutomation for WooCommerce" v. 1.0.39 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 143 characters long)
  • Requires at least: Required version does not match the one declared in readme.txt ("5.8" instead of "5.2")
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin777 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP7115334769
Markdown1508

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity22.00
▷ Minimum class complexity22.00
▷ Maximum class complexity22.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin