83% lianaautomation-contact-form-7

Code Review | LianaAutomation for Contact Form 7

WordPress plugin LianaAutomation for Contact Form 7 scored83%from 54 tests.

About plugin

  • Plugin page: lianaautomation-c...
  • Plugin version: 1.0.32
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3
  • WordPress version: 6.3.1
  • First release: Oct 28, 2022
  • Latest release: Sep 6, 2023
  • Number of updates: 6
  • Update frequency: every 52.2 days
  • Top authors: lianatechnologies (83.33%)timopohjanvirtaliana (33.33%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /209 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 gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.75ms] Passed 4 tests

An overview of server-side resources used by LianaAutomation for Contact Form 7
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.92 ▼2.59
Dashboard /wp-admin3.32 ▼0.0249.16 ▼21.02
Posts /wp-admin/edit.php3.38 ▲0.0245.88 ▼1.46
Add New Post /wp-admin/post-new.php5.91 ▲0.0283.12 ▼9.91
Media Library /wp-admin/upload.php3.25 ▲0.0235.83 ▲0.02
Contact Form 7 /wp-admin/admin.php?page=lianaautomation-contactform73.2129.20

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by LianaAutomation for Contact Form 7
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6214.35 ▼0.211.71 ▼0.0838.57 ▼2.18
Dashboard /wp-admin2,214 ▲405.63 ▲0.1088.70 ▼0.2536.80 ▲1.19
Posts /wp-admin/edit.php2,119 ▲402.14 ▲0.1335.23 ▼0.6732.78 ▲0.71
Add New Post /wp-admin/post-new.php1,544 ▲1822.87 ▼0.20590.83 ▼1.4864.19 ▼2.86
Media Library /wp-admin/upload.php1,422 ▲284.17 ▼0.0596.54 ▲1.7544.10 ▲2.92
Contact Form 7 /wp-admin/admin.php?page=lianaautomation-contactform78652.0323.7940.34

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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
Please fix the following items
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/lianaautomation-contact-form-7/admin/class-lianaautomation-contactform7.php:412
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lianaautomation-contact-form-7/includes/lianaautomation-wpcf7.php:249
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lianaautomation-contact-form-7/includes/lianaautomation-cookie.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lianaautomation-contact-form-7/includes/lianaautomation-cookie.php:36

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 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: online store, automation, e-commerce, ecommerce

lianaautomation-contact-form-7/lianaautomation-contact-form-7.php 77% from 13 tests

The primary PHP file in "LianaAutomation for Contact Form 7" version 1.0.32 is used by WordPress to initiate all plugin functionality
It is important to 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
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Requires at least: Required version does not 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 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected466 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP677205460
Markdown1306

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin