84% lianamailer-contact-form-7

Code Review | LianaMailer for Contact Form 7

WordPress plugin LianaMailer for Contact Form 7 scored 84% from 54 tests.

About plugin

  • Plugin page: lianamailer-conta...
  • 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 4, 2022
  • Latest release: Sep 6, 2023
  • Number of updates: 7
  • Update frequency: every 48.3 days
  • Top authors: lianatechnologies (71.43%)timopohjanvirtaliana (42.86%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 748 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 successfully, without throwing any errors or notices

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

Analyzing server-side resources used by LianaMailer for Contact Form 7
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.13 ▼8.88
Dashboard /wp-admin3.31 ▲0.0045.55 ▼4.87
Posts /wp-admin/edit.php3.36 ▲0.0047.53 ▼1.06
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.57 ▲3.70
Media Library /wp-admin/upload.php3.23 ▲0.0035.39 ▲2.11

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for LianaMailer for Contact Form 7
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.31 ▼1.121.72 ▼0.2337.85 ▼13.08
Dashboard /wp-admin2,206 ▲185.85 ▲0.0597.28 ▼2.9139.62 ▼2.42
Posts /wp-admin/edit.php2,092 ▼02.01 ▼0.0239.43 ▼1.4934.51 ▼2.64
Add New Post /wp-admin/post-new.php1,544 ▲1123.21 ▲0.02616.96 ▲3.2152.26 ▲4.37
Media Library /wp-admin/upload.php1,385 ▼04.14 ▼0.0597.18 ▼11.1741.49 ▼4.52

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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 take a closer look at the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function CF7_LianaMailer\\is_admin() in wp-content/plugins/lianamailer-contact-form-7/admin/class-lianamailer-contactform7.php:340
    • > PHP Fatal error
      Uncaught Error: Call to undefined function CF7_LianaMailer\\add_action() in wp-content/plugins/lianamailer-contact-form-7/lianamailer-contact-form-7.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% 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
2 plugin tags: newsletter, automation

lianamailer-contact-form-7/lianamailer-contact-form-7.php 85% from 13 tests

"LianaMailer for Contact Form 7" version 1.0.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("5.8" instead of "5.2")
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,207 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP6208507999
JavaScript12512163
CSS12037
Markdown1508

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity40.25
▷ Minimum class complexity10.00
▷ Maximum class complexity95.00
Average method complexity3.98
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods52
▷ Static methods11.92%
▷ Public methods4076.92%
▷ Protected methods23.85%
▷ Private methods1019.23%
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

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin