84% lianamailer-gf

Code Review | LianaMailer for Gravity Forms

WordPress plugin LianaMailer for Gravity Forms scored 84% from 54 tests.

About plugin

  • Plugin page: lianamailer-gf
  • Plugin version: 1.0.6
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3
  • WordPress version: 6.3.1
  • First release: Oct 10, 2022
  • Latest release: Sep 7, 2023
  • Number of updates: 10
  • Update frequency: every 33.4 days
  • Top authors: lianatechnologies (60%)timopohjanvirtaliana (50%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,385 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.11ms] Passed 4 tests

This is a short check of server-side resources used by LianaMailer for Gravity Forms
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.23 ▼2.44
Dashboard /wp-admin3.31 ▲0.0143.36 ▼8.01
Posts /wp-admin/edit.php3.36 ▲0.0044.75 ▼1.01
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.17 ▼12.14
Media Library /wp-admin/upload.php3.23 ▲0.0033.64 ▼1.83

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by LianaMailer for Gravity Forms
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.24 ▼1.174.90 ▲3.1244.08 ▼0.99
Dashboard /wp-admin2,206 ▲174.85 ▼0.10109.66 ▼17.1839.01 ▼3.81
Posts /wp-admin/edit.php2,089 ▼02.05 ▼0.0142.41 ▲8.4535.16 ▲0.19
Add New Post /wp-admin/post-new.php1,538 ▲2423.35 ▲5.94638.42 ▼33.0258.32 ▲6.09
Media Library /wp-admin/upload.php1,388 ▼34.18 ▼0.1192.96 ▼1.5541.19 ▼0.79

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function GF_LianaMailer\\is_admin() in wp-content/plugins/lianamailer-gf/admin/class-lianamailer-gf.php:315

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: automation, newsletter

lianamailer-gf/lianamailer-gf.php 85% from 13 tests

The primary PHP file in "LianaMailer for Gravity Forms" version 1.0.6 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.8" instead of "5.2")
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

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
No dangerous file extensions were detected1,707 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP73126731,402
JavaScript14319244
CSS11053
Markdown1508

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity50.00
▷ Minimum class complexity10.00
▷ Maximum class complexity116.00
Average method complexity4.83
▷ Minimum method complexity1.00
▷ Maximum method complexity44.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods65
▷ Static methods23.08%
▷ Public methods5483.08%
▷ Protected methods23.08%
▷ Private methods913.85%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin