68% contact-form-multi

Code Review | Contact Form Multi by BestWebSoft - Multiple Forms Plugin for Single WordPress Website

WordPress plugin Contact Form Multi by BestWebSoft - Multiple Forms Plugin for Single WordPress Website scored68%from 54 tests.

About plugin

  • Plugin page: contact-form-multi
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3
  • WordPress version: 6.3.1
  • First release: Mar 24, 2014
  • Latest release: Aug 10, 2023
  • Number of updates: 49
  • Update frequency: every 70.0 days
  • Top authors: bestwebsoft (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

600+ active /40,726 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.78MB] [CPU: ▼1.18ms] Passed 4 tests

This is a short check of server-side resources used by Contact Form Multi by BestWebSoft - Multiple Forms Plugin for Single WordPress Website
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.24 ▲0.7847.19 ▲8.93
Dashboard /wp-admin4.13 ▲0.7856.72 ▼3.21
Posts /wp-admin/edit.php4.18 ▲0.8250.36 ▲5.11
Add New Post /wp-admin/post-new.php6.67 ▲0.7885.44 ▼14.04
Media Library /wp-admin/upload.php3.99 ▲0.7643.44 ▲7.44
Plugins /wp-admin/admin.php?page=bws_panel4.3042.59
Themes /wp-admin/admin.php?page=bws_themes4.3040.40
System Status /wp-admin/admin.php?page=bws_system_status3.9747.71

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 116 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
bstwbsftwppdtplgns_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Contact Form Multi by BestWebSoft - Multiple Forms Plugin for Single WordPress Website: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲8714.81 ▲0.221.63 ▼0.2041.72 ▲0.46
Dashboard /wp-admin2,236 ▲455.92 ▲1.0498.96 ▼8.6241.34 ▼2.46
Posts /wp-admin/edit.php2,122 ▲302.17 ▲0.1436.87 ▲1.0535.20 ▲5.31
Add New Post /wp-admin/post-new.php1,554 ▲4023.60 ▲6.08678.28 ▼3.6363.17 ▲9.93
Media Library /wp-admin/upload.php1,418 ▲304.18 ▼0.01100.32 ▼9.4044.32 ▼3.78
Plugins /wp-admin/admin.php?page=bws_panel2,8612.0133.4876.23
Themes /wp-admin/admin.php?page=bws_themes9992.2124.3342.07
System Status /wp-admin/admin.php?page=bws_system_status1,2312.2626.2635.55

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
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/contact-form-multi/contact-form-multi.php+335
    Trying to access array offset on value of type bool
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 3× 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/contact-form-multi/bws_menu/class-bws-settings.php:1453
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/contact-form-multi/contact-form-multi.php:362
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/contact-form-multi/bws_menu/product_list.php:9

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=bws_panel
    • > Network (severe)
    http://ps.w.org/custom-admin-page/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Tags: There are too many tags (12 tag instead of maximum 10)
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (The Contact Form plugin settings page with a newly created contact form.), #2 (The Contact Form plugin additional settings tab with a newly created contact form.), #3 (The Contact Form plugin appearance tab with a newly created contact form.)
The official readme.txt is a good inspiration

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

The main file in "Contact Form Multi by BestWebSoft - Multiple Forms Plugin for Single WordPress Website" v. 1.3.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
59 characters long description:
Add unlimited number of contact forms to WordPress website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin18,289 lines of code in 36 files:
LanguageFilesBlank linesComment linesLines of code
PO File103,3124,7387,638
CSS81572545,384
PHP84385674,541
JavaScript632115559
SVG400167

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.64
Average class complexity115.50
▷ Minimum class complexity21.00
▷ Maximum class complexity210.00
Average method complexity12.45
▷ Minimum method complexity1.00
▷ Maximum method complexity79.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods1470.00%
▷ Protected methods00.00%
▷ Private methods630.00%
Functions62
▷ Named functions62100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
64 PNG files occupy 3.22MB with 1.39MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
bws_menu/icons/plugins/gpt-ai-content-creator.png15.49KB7.03KB▼ 54.61%
bws_menu/css/jquery-ui-styles/1.9.2/images/ui-icons_cd0a0a_256x240.png4.27KB4.11KB▼ 3.78%
bws_menu/css/jquery-ui-styles/1.10.4/images/ui-bg_glass_75_dadada_1x400.png0.31KB0.18KB▼ 39.81%
bws_menu/icons/plugins/bike-rental.png6.86KB2.68KB▼ 60.89%
bws_menu/css/jquery-ui-styles/1.11.4/images/ui-bg_glass_65_ffffff_1x400.png0.20KB0.09KB▼ 57.49%