84% lianamailer-wpf

Code Review | LianaMailer for WPForms

WordPress plugin LianaMailer for WPForms scored84%from 54 tests.

About plugin

  • Plugin page: lianamailer-wpf
  • Plugin version: 1.20
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3
  • WordPress version: 6.3.1
  • First release: Oct 24, 2022
  • Latest release: Sep 7, 2023
  • Number of updates: 7
  • Update frequency: every 45.7 days
  • Top authors: lianatechnologies (71.43%)timopohjanvirtaliana (42.86%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /585 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by LianaMailer for WPForms
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.66 ▼6.33
Dashboard /wp-admin3.31 ▲0.0146.75 ▼9.80
Posts /wp-admin/edit.php3.37 ▲0.0049.03 ▼0.16
Add New Post /wp-admin/post-new.php5.90 ▲0.0094.09 ▼1.30
Media Library /wp-admin/upload.php3.24 ▲0.0033.12 ▼0.32

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for LianaMailer for WPForms
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.161.71 ▼0.5039.15 ▼5.61
Dashboard /wp-admin2,195 ▲215.62 ▼0.0591.47 ▼1.3546.53 ▲5.86
Posts /wp-admin/edit.php2,100 ▼31.98 ▼0.0338.88 ▲3.6736.54 ▼0.72
Add New Post /wp-admin/post-new.php1,526 ▼223.13 ▲0.03659.61 ▼11.4450.68 ▼1.87
Media Library /wp-admin/upload.php1,400 ▲34.22 ▲0.0199.12 ▼16.4544.84 ▼2.07

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WPF_LianaMailer\\is_admin() in wp-content/plugins/lianamailer-wpf/admin/class-lianamailer-wpf.php:314
    • > PHP Fatal error
      Uncaught Error: Class 'WPForms_Field' not found in wp-content/plugins/lianamailer-wpf/includes/class-wpf-field-lianamailer.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: automation, newsletter

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

Analyzing the main PHP file in "LianaMailer for WPForms" version 1.20
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Requires at least: The required version number must match the one declared in readme.txt ("5.8" instead of "5.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,557 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP73046571,352
JavaScript13011156
CSS15041
Markdown1508

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity45.60
▷ Minimum class complexity10.00
▷ Maximum class complexity94.00
Average method complexity4.68
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods61
▷ Static methods11.64%
▷ Public methods4878.69%
▷ Protected methods23.28%
▷ Private methods1118.03%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin