74% website-visitor-converter-by-lead-liaison

Code Review | Website Visitor Converter by Lead Liaison

WordPress plugin Website Visitor Converter by Lead Liaison scored 74% from 54 tests.

About plugin

  • Plugin page: website-visitor-c...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.6.2
  • WordPress version: 6.3.1
  • First release: Sep 28, 2020
  • Latest release: Mar 8, 2021
  • Number of updates: 5
  • Update frequency: every 32.8 days
  • Top authors: llrevgen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 321 total downloads

Benchmarks

Plugin footprint 65% 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 gracefully, with no errors

Server metrics [RAM: ▲0.29MB] [CPU: ▼3.71ms] Passed 4 tests

Server-side resources used by Website Visitor Converter by Lead Liaison
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.2939.45 ▼4.13
Dashboard /wp-admin3.60 ▲0.2950.21 ▼3.60
Posts /wp-admin/edit.php3.71 ▲0.3553.48 ▲2.98
Add New Post /wp-admin/post-new.php6.20 ▲0.3191.54 ▼9.36
Media Library /wp-admin/upload.php3.52 ▲0.2939.18 ▲2.24
Settings /wp-admin/edit.php?post_type=wvc-forms&page=wvc-settings3.4936.41
Submissions /wp-admin/edit.php?post_type=wvc-forms&page=wvc-submissions3.4934.17
Codes /wp-admin/edit.php?post_type=wvc-forms&page=wvc-codes3.5035.26
Add New WVC Form /wp-admin/post-new.php?post_type=wvc-forms3.5646.34
WVC Forms /wp-admin/edit.php?post_type=wvc-forms3.5638.68

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 26 new files
Database: 2 new tables, 6 new options
New tables
wp_wvc_codes
wp_wvc_emails
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Website Visitor Converter by Lead Liaison: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,991 ▲25613.84 ▼0.556.17 ▲4.0772.98 ▲23.93
Dashboard /wp-admin2,280 ▲955.28 ▼0.60114.86 ▲9.6039.30 ▼8.91
Posts /wp-admin/edit.php2,165 ▲762.37 ▲0.3543.47 ▲4.5134.89 ▲0.69
Add New Post /wp-admin/post-new.php1,571 ▲3823.30 ▲0.07628.82 ▼17.5934.54 ▼18.58
Media Library /wp-admin/upload.php1,462 ▲744.51 ▲0.34100.22 ▲2.4941.88 ▲1.93
Settings /wp-admin/edit.php?post_type=wvc-forms&page=wvc-settings9032.0930.9227.09
Submissions /wp-admin/edit.php?post_type=wvc-forms&page=wvc-submissions8592.2028.0426.78
Codes /wp-admin/edit.php?post_type=wvc-forms&page=wvc-codes1,0512.0729.5129.26
Add New WVC Form /wp-admin/post-new.php?post_type=wvc-forms2,4913.77102.8582.49
WVC Forms /wp-admin/edit.php?post_type=wvc-forms1,1542.3136.8634.05

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 2 tables in the database
    • wp_wvc_emails
    • wp_wvc_codes
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 17× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/website-visitor-converter-by-lead-liaison/include/codes-list.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/website-visitor-converter-by-lead-liaison/include/post-type.php:33
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/website-visitor-converter-by-lead-liaison/include/views/form-type-2.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/website-visitor-converter-by-lead-liaison/include/views/form-type-3.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/website-visitor-converter-by-lead-liaison/include/plugin-activation.php:48
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/website-visitor-converter-by-lead-liaison/include/settings.php:152
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/website-visitor-converter-by-lead-liaison/include/submissions.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/website-visitor-converter-by-lead-liaison/include/views/form-type-6.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/website-visitor-converter-by-lead-liaison/include/views/form-type-5.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/website-visitor-converter-by-lead-liaison/include/helper-functions.php:19

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 issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
There were no plugin tags found

website-visitor-converter-by-lead-liaison/index.php 92% from 13 tests

The main file in "Website Visitor Converter by Lead Liaison" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("website-visitor-converter-by-lead-liaison.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin2,444 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP17267591,474
CSS45354628
JavaScript37613342

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity21.50
▷ Minimum class complexity4.00
▷ Maximum class complexity39.00
Average method complexity3.05
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods1995.00%
▷ Protected methods00.00%
▷ Private methods15.00%
Functions32
▷ Named functions32100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG images were found in this plugin