10% professional-contact-form

Code Review | Professional Contact Form

WordPress plugin Professional Contact Form scored10%from 54 tests.

About plugin

  • Plugin page: professional-cont...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-4.8
  • WordPress version: 6.3.1
  • First release: Jul 1, 2017
  • Latest release: Jul 1, 2017
  • Number of updates: 10
  • Update frequency: every 0.3 days
  • Top authors: Kelderic (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,222 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/professional-contact-form/includes/recaptcha.php+11
    Undefined index: pcf_reCaptcha_secret_key

Server metrics [RAM: ▼1.78MB] [CPU: ▼52.03ms] Passed 4 tests

Analyzing server-side resources used by Professional Contact Form
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.20 ▼1.266.32 ▼34.17
Dashboard /wp-admin2.22 ▼1.087.03 ▼43.39
Posts /wp-admin/edit.php2.22 ▼1.136.24 ▼41.09
Add New Post /wp-admin/post-new.php2.22 ▼3.666.93 ▼89.48
Media Library /wp-admin/upload.php2.22 ▼1.017.28 ▼30.35
Contact Form /wp-admin/options-general.php?page=pcf_options_page2.227.60

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Professional Contact Form
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲4613.81 ▼0.5415.37 ▲13.1942.89 ▼2.04
Dashboard /wp-admin2,202 ▲255.56 ▲0.0382.33 ▼13.9640.93 ▼1.16
Posts /wp-admin/edit.php2,107 ▲72.01 ▼0.0335.79 ▼1.0535.07 ▼2.95
Add New Post /wp-admin/post-new.php1,529 ▲323.65 ▲0.45605.69 ▼11.4964.42 ▲5.64
Media Library /wp-admin/upload.php1,398 ▼54.18 ▼0.03100.19 ▲1.0642.93 ▼0.83
Contact Form /wp-admin/options-general.php?page=pcf_options_page8412.1523.2546.05

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/professional-contact-form/includes/recaptcha.php+11
    Undefined index: pcf_reCaptcha_secret_key
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=pcf_options_page
    • > Notice in wp-content/plugins/professional-contact-form/includes/recaptcha.php+11
    Undefined index: pcf_reCaptcha_secret_key
    • > GET request to /wp-admin/options-general.php?page=pcf_options_page
    • > Notice in wp-content/plugins/professional-contact-form/includes/form.php+63
    Undefined index: pcf_field_name_status
    • > GET request to /wp-admin/options-general.php?page=pcf_options_page
    • > Notice in wp-content/plugins/professional-contact-form/includes/form.php+64
    Undefined index: pcf_field_name_required
    • > GET request to /wp-admin/options-general.php?page=pcf_options_page
    • > Notice in wp-content/plugins/professional-contact-form/includes/form.php+65
    Undefined index: pcf_field_name_placeholder
    • > GET request to /wp-admin/options-general.php?page=pcf_options_page
    • > Notice in wp-content/plugins/professional-contact-form/includes/form.php+71
    Undefined index: pcf_field_email_status
    • > GET request to /wp-admin/options-general.php?page=pcf_options_page
    • > Notice in wp-content/plugins/professional-contact-form/includes/form.php+72
    Undefined index: pcf_field_email_required
    • > GET request to /wp-admin/options-general.php?page=pcf_options_page
    • > Notice in wp-content/plugins/professional-contact-form/includes/form.php+73
    Undefined index: pcf_field_email_placeholder
    • > GET request to /wp-admin/options-general.php?page=pcf_options_page
    • > Notice in wp-content/plugins/professional-contact-form/includes/form.php+79
    Undefined index: pcf_field_phone_status
    • > GET request to /wp-admin/options-general.php?page=pcf_options_page
    • > Notice in wp-content/plugins/professional-contact-form/includes/form.php+80
    Undefined index: pcf_field_phone_required
    • > GET request to /wp-admin/options-general.php?page=pcf_options_page
    • > Notice in wp-content/plugins/professional-contact-form/includes/form.php+81
    Undefined index: pcf_field_phone_placeholder
    • > GET request to /wp-admin/options-general.php?page=pcf_options_page
    • > Notice in wp-content/plugins/professional-contact-form/includes/form.php+97
    Undefined index: pcf_reCaptcha_status
    • > GET request to /wp-admin/options-general.php?page=pcf_options_page
    • > Notice in wp-content/plugins/professional-contact-form/includes/form.php+98
    Undefined index: pcf_reCaptcha_site_key
    • > GET request to /wp-admin/options-general.php?page=pcf_options_page
    • > Notice in wp-content/plugins/professional-contact-form/includes/libs/azm_settings_page.php+229
    Undefined index: pcf_mail_to

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/professional-contact-form/professional-contact-form.php:43

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: invisible recapcha, contact, ajax, contact form, email

professional-contact-form/professional-contact-form.php Passed 13 tests

The principal PHP file in "Professional Contact Form" v. 1.0.0 is loaded by WordPress automatically on each request
89 characters long description:
This plugin creates a professional looking contact form, that requires very little setup.

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
There were no executable files found in this plugin887 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP732488857
SVG40024
CSS4004
JavaScript2002

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity15.67
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity4.30
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods25
▷ Static methods00.00%
▷ Public methods1976.00%
▷ Protected methods00.00%
▷ Private methods624.00%
Functions3
▷ Named functions00.00%
▷ Anonymous functions3100.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin