89% bontact

Code Review | Bontact - Multichannel Live Contact Form

WordPress plugin Bontact - Multichannel Live Contact Form scored89%from 54 tests.

About plugin

  • Plugin page: bontact
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.7.1
  • WordPress version: 6.3.1
  • First release: Feb 22, 2014
  • Latest release: Mar 2, 2017
  • Number of updates: 81
  • Update frequency: every 13.6 days
  • Top authors: bontact (87.65%)KingYes (13.58%)

Code review

54 tests

User reviews

14 reviews

Install metrics

20+ active /9,789 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.33ms] Passed 4 tests

A check of server-side resources used by Bontact - Multichannel Live Contact Form
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.56 ▼3.46
Dashboard /wp-admin3.32 ▲0.0244.05 ▼4.76
Posts /wp-admin/edit.php3.37 ▲0.0244.53 ▼0.73
Add New Post /wp-admin/post-new.php5.93 ▲0.0480.16 ▼8.37
Media Library /wp-admin/upload.php3.25 ▲0.0232.91 ▲0.54

Server storage [IO: ▲1.64MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Bontact - Multichannel Live Contact Form
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,855 ▲12014.44 ▲0.131.78 ▼0.0139.86 ▼3.24
Dashboard /wp-admin2,459 ▲2715.92 ▲0.01111.70 ▼3.16116.20 ▲72.17
Posts /wp-admin/edit.php2,347 ▲2582.06 ▲0.0339.36 ▲4.8643.55 ▲12.06
Add New Post /wp-admin/post-new.php1,561 ▲4123.37 ▲0.27736.28 ▲84.1068.72 ▼1.19
Media Library /wp-admin/upload.php1,415 ▲244.40 ▲0.1799.83 ▼3.6867.55 ▲23.44

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

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 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: Please add images for these screenshots: #1 (Bontact widget on your site), #2 (Active live chat window), #3 (Active Callback window), #4 (Chat Dashboard), #5 (Dashboard Settings - Widget style), #6 (Dashboard Reports – Chart history)
Please take inspiration from this readme.txt

bontact/bontact.php 92% from 13 tests

The principal PHP file in "Bontact - Multichannel Live Contact Form" v. 1.2.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 173 characters long)

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
Success! There were no dangerous files found in this plugin414 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP411839367
CSS4121046
JavaScript1011

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.26
Average class complexity7.75
▷ Minimum class complexity1.00
▷ Maximum class complexity27.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods1583.33%
▷ Protected methods316.67%
▷ Private methods00.00%
Functions0
▷ Named functions00.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

PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 1.49MB with 0.99MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png556.72KB170.06KB▼ 69.45%
screenshot-5.png82.44KB29.78KB▼ 63.88%
assets/images/logo-bontact-16x16.png1.14KB0.23KB▼ 80.17%
screenshot-6.png100.87KB37.76KB▼ 62.57%
screenshot-3.png72.66KB33.11KB▼ 54.44%