68% core37-form-builder

Code Review | Contact Form Builder For WordPress : #1 Free Contact Us Form Builder By Core37

WordPress plugin Contact Form Builder For WordPress : #1 Free Contact Us Form Builder By Core37 scored68%from 54 tests.

About plugin

  • Plugin page: core37-form-builder
  • Plugin version: 1.2.27
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.7
  • WordPress version: 6.3.1
  • First release: Sep 24, 2016
  • Latest release: Mar 24, 2017
  • Number of updates: 62
  • Update frequency: every 3.0 days
  • Top authors: core37 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /8,367 total downloads

Benchmarks

Plugin footprint 65% 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.47MB] [CPU: ▼3.41ms] Passed 4 tests

A check of server-side resources used by Contact Form Builder For WordPress : #1 Free Contact Us Form Builder By Core37
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.96 ▲0.5037.89 ▲0.90
Dashboard /wp-admin3.80 ▲0.5045.03 ▼1.09
Posts /wp-admin/edit.php3.85 ▲0.5049.49 ▼1.14
Add New Post /wp-admin/post-new.php6.34 ▲0.4583.11 ▼12.32
Media Library /wp-admin/upload.php3.66 ▲0.4337.21 ▲4.28
Make Form /wp-admin/admin.php?page=core37-form-builder-make3.6639.68
Subscribers /wp-admin/admin.php?page=core37-form-builder-subscribers3.6437.27
C37 Form Builder /wp-admin/admin.php?page=core37-form-builder3.6534.66

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 165 new files
Database: 2 new tables, 7 new options
New tables
core37_form_sessions
core37_form_kv
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
recovery_mode_email_last_sent
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Contact Form Builder For WordPress : #1 Free Contact Us Form Builder By Core37
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,021 ▲26015.05 ▲0.6717.07 ▲15.3044.24 ▲1.76
Dashboard /wp-admin2,220 ▲405.68 ▲0.0989.04 ▼2.3336.73 ▼2.73
Posts /wp-admin/edit.php2,137 ▲372.82 ▲0.8440.42 ▲2.5331.38 ▼4.73
Add New Post /wp-admin/post-new.php1,557 ▲3124.01 ▲0.80636.12 ▲18.7138.28 ▼20.33
Media Library /wp-admin/upload.php1,434 ▲345.26 ▲1.0598.72 ▼4.3842.24 ▼3.43
Make Form /wp-admin/admin.php?page=core37-form-builder-make1,1385.3381.9744.11
Subscribers /wp-admin/admin.php?page=core37-form-builder-subscribers8272.8041.4870.65
C37 Form Builder /wp-admin/admin.php?page=core37-form-builder7212.1826.1528.08

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The uninstall procedure failed, leaving 2 tables in the database
    • core37_form_kv
    • core37_form_sessions
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-posts
    • recovery_mode_email_last_sent
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/admin.php?page=core37-form-builder
    • > Error in wp-content/plugins/core37-form-builder/inc/encrypt.php+23
    Uncaught Exception: The PHP mcrypt extension must be installed for encryption in wp-content/plugins/core37-form-builder/inc/encrypt.php:23
    Stack trace:
    #0 wp-content/plugins/core37-form-builder/inc/encrypt.php(17): C37_Crypt->checkEnvironment()
    #1 wp-content/plugins/core37-form-builder/pages/main-page.php(1): C37_Crypt->__construct()
    #2 wp-content/plugins/core37-form-builder/functions.php(237): include_once('/var/www/wordpr...')
    #3 wp-includes/class-wp-hook.php(310): core37_form_ui_main()
    #4 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #5 wp-includes/plugin.php(517): WP_Hook->do_action()
    #6 wp-admin/admin.php(259): do_action()
    #7 {main}
    thrown

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 10× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/core37-form-builder/inc/process.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/core37-form-builder/inc/captcha.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'C37FormManager' not found in wp-content/plugins/core37-form-builder/pages/mail-templates.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/core37-form-builder/inc/captcha.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/core37-form-builder/inc/shortcode.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/core37-form-builder/pages/main-page.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/core37-form-builder/inc/captcha.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/core37-form-builder/inc/ajax.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/core37-form-builder/pages/make-form.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/core37-form-builder/pages/subscribers.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots need descriptions #1, #2 in core37-form-builder/assets to your readme.txt
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
The official readme.txt is a good inspiration

core37-form-builder/index.php 92% from 13 tests

"Contact Form Builder For WordPress : #1 Free Contact Us Form Builder By Core37" version 1.2.27's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("core37-form-builder.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin35,508 lines of code in 139 files:
LanguageFilesBlank linesComment linesLines of code
CSS486,1491,17026,379
PHP468001,0793,559
JavaScript288649493,198
LESS1434441,646
SVG100685
Markdown16031
Sass11210

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity35.00
▷ Minimum class complexity1.00
▷ Maximum class complexity244.00
Average method complexity3.27
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods120
▷ Static methods3529.17%
▷ Public methods6251.67%
▷ Protected methods4940.83%
▷ Private methods97.50%
Functions49
▷ Named functions49100.00%
▷ Anonymous functions00.00%
Constants27
▷ Global constants311.11%
▷ Class constants2488.89%
▷ Public constants24100.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
6 PNG files occupy 0.09MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/radio_checkbox_05.png17.77KB2.30KB▼ 87.07%
css/images/radio_checkbox_03.png17.79KB2.31KB▼ 87.00%
css/images/radio_checkbox_06.png17.91KB2.29KB▼ 87.21%
css/images/radio_checkbox_02.png18.63KB2.50KB▼ 86.57%
css/images/radio_checkbox_04.png17.96KB2.30KB▼ 87.19%