10% wpcontactus

Code Review | WPContactUs - Turn Form Submissions into Conversations

WordPress plugin WPContactUs - Turn Form Submissions into Conversations scored10%from 54 tests.

About plugin

  • Plugin page: wpcontactus
  • Plugin version: 1.2.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.9.1
  • WordPress version: 6.3.1
  • First release: Jan 31, 2018
  • Latest release: Apr 16, 2018
  • Number of updates: 9
  • Update frequency: every 9.0 days
  • Top authors: wtsircn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /860 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/wpcontactus/wpcontactus.php+111
    Non-static method Conversations_Admin_Settings::create_default_pages() should not be called statically

Server metrics [RAM: ▼0.84MB] [CPU: ▼39.64ms] Passed 4 tests

This is a short check of server-side resources used by WPContactUs - Turn Form Submissions into Conversations
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.06 ▼0.4019.59 ▼25.34
Dashboard /wp-admin3.20 ▼0.1021.51 ▼33.01
Posts /wp-admin/edit.php3.20 ▼0.1622.57 ▼30.30
Add New Post /wp-admin/post-new.php3.20 ▼2.6925.49 ▼69.89
Media Library /wp-admin/upload.php3.20 ▼0.0324.29 ▼13.35
Integration /wp-admin/admin.php?page=conversations-home3.2020.39
Form Settings /wp-admin/admin.php?page=conversations-settings-of-a-form3.2020.23
Settings /wp-admin/admin.php?page=conversations-settings3.2022.73

Server storage [IO: ▲0.39MB] [DB: ▲0.01MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 64 new files
Database: 3 new tables, 17 new options
New tables
wp_convxns_followups
wp_convxns_forms
wp_convxns_log
New WordPress options
conversations_db_version
conversations_end_users_view_page_slug
conversations_responders_login_page_slug
conversations_end_users_login_page_slug
conversations_convxns_sort_method
conversations_responders_view_page_slug
convx_temp_password_responder_1
conversations_email_from
can_compress_scripts
db_upgraded
...

Browser metrics Passed 4 tests

Checking browser requirements for WPContactUs - Turn Form Submissions into Conversations
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲7314.18 ▼0.202.58 ▲0.8940.00 ▼7.64
Dashboard /wp-admin2,226 ▲525.65 ▲0.0889.59 ▼2.7141.61 ▲0.33
Posts /wp-admin/edit.php2,131 ▲281.98 ▼0.0540.19 ▲3.1136.68 ▲0.05
Add New Post /wp-admin/post-new.php1,552 ▲2622.75 ▼0.30692.10 ▼45.7654.29 ▲2.05
Media Library /wp-admin/upload.php1,434 ▲344.19 ▼0.0198.39 ▼6.6443.61 ▼0.33
Integration /wp-admin/admin.php?page=conversations-home1,0652.0024.2335.46
Form Settings /wp-admin/admin.php?page=conversations-settings-of-a-form1,2382.0224.9832.14
Settings /wp-admin/admin.php?page=conversations-settings1,0152.0324.5339.77

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method Conversations::block_conversation_users_from_dashboard() should not be called statically
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_convxns_log
  • Zombie WordPress options detected upon uninstall: 7 options
    • convx_temp_password_responder_1
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=conversations-settings
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method Conversations::block_conversation_users_from_dashboard() should not be called statically
    • > GET request to /wp-admin/admin.php?page=conversations-home
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method Conversations_Admin_Settings::conv_home_page() should not be called statically
    • > GET request to /wp-admin/admin.php?page=conversations-home
    • > Deprecated in wp-content/plugins/wpcontactus/admin/admin-settings.php+306
    Non-static method Conversations_Admin_Settings::create_responders_block() should not be called statically
    • > GET request to /wp-admin/admin.php?page=conversations-settings-of-a-form
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method Conversations_Admin_Settings_Of_A_Form::conv_settings_of_a_form_page() should not be called statically
    • > GET request to /wp-admin/admin.php?page=conversations-settings-of-a-form
    • > Deprecated in wp-content/plugins/wpcontactus/admin/admin-settings-of-a-form.php+404
    Non-static method Conversations_Admin_Settings_Of_A_Form::get_first_form_category_name() should not be called statically
    • > GET request to /wp-admin/admin.php?page=conversations-settings-of-a-form
    • > Deprecated in wp-content/plugins/wpcontactus/admin/admin-settings-of-a-form.php+408
    Non-static method Conversations_Admin_Settings_Of_A_Form::get_saved_values() should not be called statically
    • > GET request to /wp-admin/admin.php?page=conversations-settings-of-a-form
    • > Deprecated in wp-content/plugins/wpcontactus/admin/admin-settings-of-a-form.php+420
    Non-static method Conversations_Admin_Settings_Of_A_Form::insert_values_in_html() should not be called statically
    • > GET request to /wp-admin/admin.php?page=conversations-settings-of-a-form
    • > Deprecated in wp-content/plugins/wpcontactus/admin/admin-settings-of-a-form.php+422
    Non-static method Conversations_Admin_Settings_Of_A_Form::get_saved_form_categories() should not be called statically
    • > GET request to /wp-admin/admin.php?page=conversations-settings
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method Conversations_Admin_Settings::conv_settings_page() should not be called statically
    • > GET request to /wp-admin/admin.php?page=conversations-settings
    • > Deprecated in wp-content/plugins/wpcontactus/admin/admin-settings.php+276
    Non-static method Conversations_Admin_Settings::get_saved_values() should not be called statically
    • > GET request to /wp-admin/admin.php?page=conversations-settings
    • > Deprecated in wp-content/plugins/wpcontactus/admin/admin-settings.php+284
    Non-static method Conversations_Admin_Settings::insert_values_in_html() should not be called statically

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
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpcontactus/classes/conversations-ajax-calls.php:358
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpcontactus/classes/conversations-post-calls.php:67
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpcontactus/classes/conversations-forms.php:471
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpcontactus/classes/conversations-view.php:318
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpcontactus/classes/conversations-login-view.php:77

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (18 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

wpcontactus/wpcontactus.php 92% from 13 tests

This is the main PHP file of "WPContactUs - Turn Form Submissions into Conversations" version 1.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 153 characters long)

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
Everything looks great! No dangerous files found in this plugin3,473 lines of code in 54 files:
LanguageFilesBlank linesComment linesLines of code
PHP196909542,167
HTML2820425770
JavaScript46975278
CSS3500258

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity19.26
▷ Minimum class complexity2.00
▷ Maximum class complexity54.00
Average method complexity6.69
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes19
▷ Abstract classes00.00%
▷ Concrete classes19100.00%
▷ Final classes00.00%
Methods61
▷ Static methods3354.10%
▷ Public methods61100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants15
▷ Global constants00.00%
▷ Class constants15100.00%
▷ Public constants15100.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
3 PNG files occupy 0.21MB with 0.14MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/settings-help-general.png82.86KB27.64KB▼ 66.64%
admin/images/settings-help-end-users.png64.49KB21.35KB▼ 66.89%
admin/images/settings-help-responders.png65.77KB21.18KB▼ 67.80%