84% kiamo

Code Review | Kiamo Chat and web call back by IRCF

WordPress plugin Kiamo Chat and web call back by IRCF scored84%from 54 tests.

About plugin

  • Plugin page: kiamo
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.4.2
  • WordPress version: 6.3.1
  • First release: Apr 4, 2019
  • Latest release: Jun 18, 2020
  • Number of updates: 4
  • Update frequency: every 117.7 days
  • Top authors: ircf (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /550 total downloads

Benchmarks

Plugin footprint 83% 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.08MB] [CPU: ▼4.49ms] Passed 4 tests

This is a short check of server-side resources used by Kiamo Chat and web call back by IRCF
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0229.44 ▼9.22
Dashboard /wp-admin3.40 ▲0.1049.94 ▼3.60
Posts /wp-admin/edit.php3.52 ▲0.1650.35 ▲1.68
Add New Post /wp-admin/post-new.php5.99 ▲0.1091.20 ▼6.83
Media Library /wp-admin/upload.php3.33 ▲0.1038.44 ▲1.97
Kiamo /wp-admin/options-general.php?page=kiamo3.2733.82

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Kiamo Chat and web call back by IRCF: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5813.27 ▼1.121.69 ▼0.1045.41 ▼3.84
Dashboard /wp-admin2,225 ▲195.89 ▲1.04107.04 ▼0.9841.62 ▼2.49
Posts /wp-admin/edit.php2,107 ▲72.00 ▲0.0139.42 ▼0.0530.70 ▼3.93
Add New Post /wp-admin/post-new.php1,556 ▲2523.18 ▲0.41609.70 ▼15.5869.77 ▼7.03
Media Library /wp-admin/upload.php1,407 ▲74.26 ▲0.02103.45 ▼9.7442.91 ▼2.60
Kiamo /wp-admin/options-general.php?page=kiamo9371.6926.6727.51

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=kiamo
    • > Notice in wp-content/plugins/kiamo/kiamo.php+150
    Undefined index: chat_enabled
    • > GET request to /wp-admin/options-general.php?page=kiamo
    • > Notice in wp-content/plugins/kiamo/kiamo.php+154
    Undefined index: chat_server
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=kiamo
    • > Notice in wp-content/plugins/kiamo/kiamo.php+160
    Undefined index: chat_mode
    • > GET request to /wp-admin/options-general.php?page=kiamo
    • > Notice in wp-content/plugins/kiamo/kiamo.php+165
    Undefined index: chat_id
    • > GET request to /wp-admin/options-general.php?page=kiamo
    • > Notice in wp-content/plugins/kiamo/kiamo.php+169
    Undefined index: chat_targeting_id
    • > GET request to /wp-admin/options-general.php?page=kiamo
    • > Notice in wp-content/plugins/kiamo/kiamo.php+173
    Undefined index: chat_agent_id
    • > GET request to /wp-admin/options-general.php?page=kiamo
    • > Notice in wp-content/plugins/kiamo/kiamo.php+177
    Undefined index: chat_customer_id

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 | A shallow check that no browser errors were triggered
There were no browser issues 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
9 plugin tags: callback, web services, phone, web service, call...

kiamo/kiamo.php Passed 13 tests

The main PHP file in "Kiamo Chat and web call back by IRCF" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
56 characters long description:
Integrates Kiamo chat and web call back on your website.

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
Everything looks great! No dangerous files found in this plugin839 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP44574538
PO File16060167
CSS13568
JavaScript20266

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity10.50
▷ Minimum class complexity9.00
▷ Maximum class complexity12.00
Average method complexity3.38
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods562.50%
▷ Public methods787.50%
▷ Protected methods00.00%
▷ Private methods112.50%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
9 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/kc-message-right.png0.38KB0.26KB▼ 31.04%
assets/kc-close.png0.99KB0.83KB▼ 16.60%
assets/kc-print.png0.87KB1.09KB0.00%
assets/kc-mail.png0.77KB0.92KB0.00%
assets/kc-ico-chat.png3.21KB0.82KB▼ 74.47%