83% lianaautomation-wpf

Code Review | LianaAutomation for WPForms

WordPress plugin LianaAutomation for WPForms scored83%from 54 tests.

About plugin

  • Plugin page: lianaautomation-wpf
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3
  • WordPress version: 6.3.1
  • First release: Nov 2, 2022
  • Latest release: Sep 6, 2023
  • Number of updates: 5
  • Update frequency: every 61.8 days
  • Top authors: lianatechnologies (80%)timopohjanvirtaliana (40%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /233 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
This plugin's installer ran successfully

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

A check of server-side resources used by LianaAutomation for WPForms
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.29 ▼8.82
Dashboard /wp-admin3.33 ▲0.0247.92 ▼0.46
Posts /wp-admin/edit.php3.38 ▲0.0251.82 ▼0.43
Add New Post /wp-admin/post-new.php5.91 ▲0.0291.40 ▼19.18
Media Library /wp-admin/upload.php3.25 ▲0.0235.21 ▼1.21
WPForms /wp-admin/admin.php?page=lianaautomation-wpf3.2131.17

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for LianaAutomation for WPForms
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲6213.26 ▼1.121.84 ▼0.1342.55 ▼1.19
Dashboard /wp-admin2,222 ▲375.79 ▼0.09106.78 ▲5.5538.81 ▼4.39
Posts /wp-admin/edit.php2,108 ▲162.04 ▲0.0538.48 ▼1.6734.79 ▼0.26
Add New Post /wp-admin/post-new.php1,553 ▲1123.33 ▲5.16627.13 ▲11.6747.51 ▼9.86
Media Library /wp-admin/upload.php1,407 ▲224.23 ▲0.0694.40 ▼3.0141.78 ▼2.39
WPForms /wp-admin/admin.php?page=lianaautomation-wpf8532.0323.4736.82

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • 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 | 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
  • 4× 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-wpf/includes/lianaautomation-wpf.php:234
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lianaautomation-wpf/includes/lianaautomation-cookie.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/lianaautomation-wpf/admin/class-lianaautomation-wpf.php:406
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lianaautomation-wpf/includes/lianaautomation-cookie.php:36

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 90% from 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: forms, automation, ecommerce, e-commerce

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

The primary PHP file in "LianaAutomation for WPForms" version 1.0.3 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.8" instead of "5.2")
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
Success! There were no dangerous files found in this plugin437 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP574213432
Markdown1405

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.43
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin