68% contact-forms

Code Review | WordPress Contact Forms by Cimatti

WordPress plugin WordPress Contact Forms by Cimatti scored68%from 54 tests.

About plugin

  • Plugin page: contact-forms
  • Plugin version: 1.6.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.3.2
  • WordPress version: 6.3.1
  • First release: Jul 25, 2013
  • Latest release: Nov 3, 2023
  • Number of updates: 104
  • Update frequency: every 36.1 days
  • Top authors: cimatti (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

1,000+ active /69,202 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.92MB] [CPU: ▼1.67ms] Passed 4 tests

This is a short check of server-side resources used by WordPress Contact Forms by Cimatti
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.41 ▲0.9445.77 ▲7.07
Dashboard /wp-admin4.27 ▲0.9251.70 ▼10.65
Posts /wp-admin/edit.php4.32 ▲0.9651.67 ▲6.95
Add New Post /wp-admin/post-new.php6.79 ▲0.9084.83 ▼10.03
Media Library /wp-admin/upload.php4.13 ▲0.9044.07 ▲9.43
Dashboard /wp-admin/admin.php?page=accua_forms4.2041.21
Forms /wp-admin/admin.php?page=accua_forms_list4.1639.60
Fields /wp-admin/admin.php?page=accua_forms_fields4.1040.26
Add new /wp-admin/admin.php?page=accua_forms_add4.1840.93
Submissions /wp-admin/admin.php?page=accua_forms_submissions_list4.2543.01
Settings /wp-admin/admin.php?page=accua_forms_settings4.2844.65

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 149 new files
Database: 3 new tables, 11 new options
New tables
wp_accua_forms_submissions_notes
wp_accua_forms_submissions_values
wp_accua_forms_submissions
New WordPress options
theysaidso_admin_options
accua_form_api_keys
can_compress_scripts
db_upgraded
accua_forms_avail_fields
accua_forms_db_version
accua_forms_lastid
widget_recent-comments
accua_forms_default_form_data
widget_recent-posts
...

Browser metrics Passed 4 tests

An overview of browser requirements for WordPress Contact Forms by Cimatti
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,023 ▲26113.99 ▼0.368.55 ▲6.7442.56 ▼4.31
Dashboard /wp-admin2,330 ▲1535.42 ▼0.2697.43 ▲2.5385.55 ▲42.65
Posts /wp-admin/edit.php2,178 ▲782.48 ▲0.5439.31 ▲1.8534.31 ▼4.47
Add New Post /wp-admin/post-new.php1,746 ▲21521.79 ▲0.71621.19 ▲11.9034.13 ▼18.58
Media Library /wp-admin/upload.php1,477 ▲774.67 ▲0.45104.25 ▲5.3278.24 ▲37.47
Dashboard /wp-admin/admin.php?page=accua_forms1,0462.3835.0329.12
Forms /wp-admin/admin.php?page=accua_forms_list1,1842.4843.7050.50
Fields /wp-admin/admin.php?page=accua_forms_fields1,4452.1829.7028.05
Add new /wp-admin/admin.php?page=accua_forms_add4,47712.28276.93142.86
Submissions /wp-admin/admin.php?page=accua_forms_submissions_list1,2862.2133.0528.15
Settings /wp-admin/admin.php?page=accua_forms_settings2,92810.55198.69213.04

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie tables were found after uninstall: 3 tables
    • wp_accua_forms_submissions_notes
    • wp_accua_forms_submissions_values
    • wp_accua_forms_submissions
  • This plugin did not uninstall successfully, leaving 11 options in the database
    • accua_forms_lastid
    • accua_form_api_keys
    • widget_recent-posts
    • accua_forms_avail_fields
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • accua_forms_default_form_data
    • accua_forms_db_version
    • ...

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=accua_forms_add
    • > Notice in wp-content/plugins/contact-forms/accua-forms.php+1029
    Undefined variable: form_fields_html

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
Almost there! Just fix the following items
  • 75× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/contact-forms/accua-forms-list-page.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'Element_Textarea' not found in wp-content/plugins/contact-forms/PFBC/Element/TinyMCE.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Element_Textbox' not found in wp-content/plugins/contact-forms/PFBC/Element/Color.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'PFBCError' not found in wp-content/plugins/contact-forms/PFBC/Error/Standard.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Element' not found in wp-content/plugins/contact-forms/classes/Element/FieldsetBegin.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Base' not found in wp-content/plugins/contact-forms/PFBC/Validation.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Element_Textbox' not found in wp-content/plugins/contact-forms/PFBC/Element/Email.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'AccuaForm_View_Standard' not found in wp-content/plugins/contact-forms/classes/View/SideBySide.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'View' not found in wp-content/plugins/contact-forms/PFBC/View/Standard.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'OptionElement' not found in wp-content/plugins/contact-forms/PFBC/Element/Sort.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 33 tag instead of maximum 10
Please take inspiration from this readme.txt

contact-forms/contact-forms.php Passed 13 tests

This is the main PHP file of "WordPress Contact Forms by Cimatti" version 1.6.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
67 characters long description:
Quickly create and publish forms in your WordPress powered website.

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
There were no executable files found in this plugin26,234 lines of code in 128 files:
LanguageFilesBlank linesComment linesLines of code
PHP842,1084,12014,026
JavaScript372,6852,37810,770
PO File3460784946
CSS38430488
make1324

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity19.62
▷ Minimum class complexity1.00
▷ Maximum class complexity416.00
Average method complexity4.38
▷ Minimum method complexity1.00
▷ Maximum method complexity66.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes77
▷ Abstract classes79.09%
▷ Concrete classes7090.91%
▷ Final classes00.00%
Methods428
▷ Static methods327.48%
▷ Public methods40795.09%
▷ Protected methods184.21%
▷ Private methods30.70%
Functions79
▷ Named functions79100.00%
▷ Anonymous functions00.00%
Constants69
▷ Global constants69100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/cimatti-icon-10.png1.21KB0.41KB▼ 66.42%
img/cimatti-20-icon.png1.48KB0.73KB▼ 50.49%
img/cimatti-16-icon.png1.32KB0.46KB▼ 65.48%
img/cimatti-45-icon.png2.15KB1.45KB▼ 32.55%
img/cimatti-32-icon.png1.72KB0.91KB▼ 47.10%