78% kiwichat

Code Review | KiwiChat NextClient

WordPress plugin KiwiChat NextClient scored78%from 54 tests.

About plugin

  • Plugin page: kiwichat
  • Plugin version: 6.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.3
  • WordPress version: 6.3.1
  • First release: Aug 26, 2019
  • Latest release: Sep 8, 2023
  • Number of updates: 22
  • Update frequency: every 67.0 days
  • Top authors: kiwichat (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /4,742 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼7.19ms] Passed 4 tests

Server-side resources used by KiwiChat NextClient
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.47 ▲3.00
Dashboard /wp-admin3.35 ▲0.0548.29 ▼4.11
Posts /wp-admin/edit.php3.40 ▲0.0449.46 ▼7.65
Add New Post /wp-admin/post-new.php5.93 ▲0.0488.38 ▼19.34
Media Library /wp-admin/upload.php3.27 ▲0.0437.45 ▲2.36

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 13 new options
New WordPress options
kiwichat_style
kiwichat_server
kiwichat_chan
db_upgraded
kiwichat_coding
kiwichat_nick
kiwichat_height
theysaidso_admin_options
kiwichat_width
widget_recent-comments
...

Browser metrics Passed 4 tests

KiwiChat NextClient: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲6513.63 ▼0.772.10 ▲0.3343.59 ▲0.80
Dashboard /wp-admin2,235 ▲415.91 ▲0.1095.46 ▼5.4475.65 ▲28.97
Posts /wp-admin/edit.php2,117 ▲172.00 ▼0.0539.18 ▼1.2934.50 ▼1.05
Add New Post /wp-admin/post-new.php1,536 ▼417.49 ▼6.02705.55 ▲73.4758.83 ▲8.69
Media Library /wp-admin/upload.php1,402 ▲24.18 ▼0.1199.60 ▼3.4978.81 ▲26.62

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 13 options in the database
    • widget_recent-posts
    • kiwichat_style
    • can_compress_scripts
    • widget_recent-comments
    • kiwichat_height
    • kiwichat_coding
    • kiwichat_chan
    • db_upgraded
    • widget_theysaidso_widget
    • kiwichat_nick
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 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
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/kiwichat/public/index.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/kiwichat/kiwichat.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
You can take inspiration from this readme.txt

kiwichat/kiwichat.php Passed 13 tests

The primary PHP file in "KiwiChat NextClient" version 6.2 is used by WordPress to initiate all plugin functionality
106 characters long description:
KiwiChat is an online chat client, your IRC client based on kiwiirc Add your networks. Join your channels.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin242 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP35443242

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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
6 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/kiwichat.png0.55KB0.58KB0.00%
admin/images/github.png2.56KB1.51KB▼ 41.07%
admin/images/help.png1.07KB1.17KB0.00%
admin/images/kiwiirc.png2.51KB2.33KB▼ 7.42%
admin/images/kiwichat-logo.png10.91KB4.59KB▼ 57.97%