83% lianaautomation-gf

Code Review | LianaAutomation for Gravity Forms

WordPress plugin LianaAutomation for Gravity Forms scored83%from 54 tests.

About plugin

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

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /568 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼8.85ms] Passed 4 tests

An overview of server-side resources used by LianaAutomation for Gravity Forms
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0241.16 ▼3.09
Dashboard /wp-admin3.38 ▲0.0356.63 ▼13.49
Posts /wp-admin/edit.php3.43 ▲0.0753.83 ▲3.51
Add New Post /wp-admin/post-new.php5.96 ▲0.0791.77 ▼14.75
Media Library /wp-admin/upload.php3.30 ▲0.0737.70 ▼4.07
Gravity Forms /wp-admin/admin.php?page=lianaautomation-gf3.2737.06

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for LianaAutomation for Gravity Forms
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲4714.05 ▼0.191.88 ▲0.1344.60 ▲2.54
Dashboard /wp-admin2,214 ▲375.63 ▼0.0291.37 ▼6.1344.02 ▼8.47
Posts /wp-admin/edit.php2,119 ▲191.98 ▲0.0035.04 ▼5.7535.49 ▼6.16
Add New Post /wp-admin/post-new.php1,552 ▲2623.17 ▼0.32652.83 ▼28.0253.77 ▲1.43
Media Library /wp-admin/upload.php1,410 ▲74.23 ▲0.0399.88 ▼10.3244.37 ▼5.09
Gravity Forms /wp-admin/admin.php?page=lianaautomation-gf8652.1526.5238.50

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 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-gf/includes/lianaautomation-gf.php:283
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lianaautomation-gf/includes/lianaautomation-cookie.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lianaautomation-gf/includes/lianaautomation-cookie.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/lianaautomation-gf/admin/class-lianaautomation-gf.php:409

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: ecommerce, online store, e-commerce, automation, forms

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

Analyzing the main PHP file in "LianaAutomation for Gravity Forms" version 1.0.9
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Requires at least: The required version number must 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

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected488 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP575214481
Markdown1407

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.50
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin