74% chiliforms

Code Review | ChiliForms

WordPress plugin ChiliForms scored 74% from 54 tests.

About plugin

  • Plugin page: chiliforms
  • Plugin version: 0.5.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6.1
  • WordPress version: 5.8.1
  • First release: Oct 24, 2016
  • Latest release: Dec 3, 2016
  • Number of updates: 10
  • Update frequency: every 4.1 days
  • Top authors: alex.me (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,080 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.19MB] [CPU: ▼137.92ms] Passed 4 tests

Server-side resources used by ChiliForms
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.01 ▲0.1836.69 ▲1.74
Dashboard /wp-admin3.30 ▲0.2556.43 ▲7.90
Posts /wp-admin/edit.php3.35 ▲0.2448.76 ▲5.19
Add New Post /wp-admin/post-new.php5.60 ▲0.1696.37 ▼558.41
Media Library /wp-admin/upload.php3.18 ▲0.1835.61 ▼0.18
Entries /wp-admin/admin.php?page=chiliforms-submenu-entries3.2733.53
Forms /wp-admin/admin.php?page=chiliforms-menu3.2933.66
Settings /wp-admin/admin.php?page=chiliforms-submenu-options3.2231.59

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 47 new files
Database: 4 new tables, 1 new option
New tables
wp_kcf_fields
wp_kcf_entries_meta
wp_kcf_forms
wp_kcf_entries
New WordPress options
kcf_chiliforms_options

Browser metrics Passed 4 tests

A check of browser resources used by ChiliForms
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,737 ▲14215.98 ▲0.3511.79 ▲0.5245.97 ▲1.36
Dashboard /wp-admin3,009 ▲785.94 ▲0.00143.29 ▼22.49116.58 ▼1.73
Posts /wp-admin/edit.php2,778 ▲392.72 ▲0.0164.06 ▼1.0986.12 ▼1.53
Add New Post /wp-admin/post-new.php1,708 ▼1,97918.75 ▲3.67393.80 ▼161.87106.44 ▼4.90
Media Library /wp-admin/upload.php1,846 ▲395.02 ▼0.01160.16 ▼4.77115.38 ▼0.27
Entries /wp-admin/admin.php?page=chiliforms-submenu-entries1,1695.70123.6283.25
Forms /wp-admin/admin.php?page=chiliforms-menu1,1595.57121.4394.42
Settings /wp-admin/admin.php?page=chiliforms-submenu-options1,4315.71125.2796.58

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The plugin did not uninstall successfully, leaving 4 tables in the database
    • wp_kcf_entries
    • wp_kcf_forms
    • wp_kcf_fields
    • wp_kcf_entries_meta
  • Zombie WordPress options were found after uninstall: 1 option
    • kcf_chiliforms_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 9× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'KCF_BaseOptionsPageController' not found in wp-content/plugins/chiliforms/modules/pages/options/KCF_OptionsPageController.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/chiliforms/chiliforms.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'KCF_BaseEntriesPageController' not found in wp-content/plugins/chiliforms/modules/pages/entries/KCF_EntriesPageController.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'KCF_BaseFieldFactory' not found in wp-content/plugins/chiliforms/modules/field/KCF_FieldFactory.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'KCF_BaseTemplateModel' not found in wp-content/plugins/chiliforms/modules/form/KCF_TemplateModel.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'KCF_BaseFieldValidator' not found in wp-content/plugins/chiliforms/modules/field/KCF_FieldValidator.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'KCF_BaseFormModel' not found in wp-content/plugins/chiliforms/modules/form/KCF_FormModel.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'KCF_BaseFormsPageController' not found in wp-content/plugins/chiliforms/modules/pages/forms/KCF_FormsPageController.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/chiliforms/modules/api/api.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: multilingual, form builder, email, form, contact form...

chiliforms/chiliforms.php Passed 13 tests

Analyzing the main PHP file in "ChiliForms" version 0.5.1
34 characters long description:
A better WordPress forms solution.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected6,227 lines of code in 38 files:
LanguageFilesBlank linesComment linesLines of code
PHP246243492,523
Sass727031,510
CSS3145801,162
SVG100685
JavaScript387184347

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity11.00
▷ Minimum class complexity1.00
▷ Maximum class complexity66.00
Average method complexity2.05
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes21
▷ Abstract classes628.57%
▷ Concrete classes1571.43%
▷ Final classes00.00%
Methods178
▷ Static methods6536.52%
▷ Public methods8849.44%
▷ Protected methods7039.33%
▷ Private methods2011.24%
Functions12
▷ Named functions433.33%
▷ Anonymous functions866.67%
Constants16
▷ Global constants425.00%
▷ Class constants1275.00%
▷ Public constants12100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/logo-chili-header.png1.84KB1.73KB▼ 6.25%
assets/img/logo-chili-loader.png2.51KB2.36KB▼ 6.07%