89% zyratalk-chat

Code Review | ZyraTalk Chat

WordPress plugin ZyraTalk Chat scored89%from 54 tests.

About plugin

  • Plugin page: zyratalk-chat
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 6.2-6.2
  • WordPress version: 6.3.1
  • First release: Aug 16, 2023
  • Latest release: Aug 17, 2023
  • Number of updates: 8
  • Update frequency: every 0.8 days
  • Top authors: zyratalkdev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /62 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
Install script ran successfully

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

This is a short check of server-side resources used by ZyraTalk Chat
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.59 ▲2.47
Dashboard /wp-admin3.35 ▲0.0445.38 ▼4.16
Posts /wp-admin/edit.php3.40 ▲0.0446.07 ▼2.74
Add New Post /wp-admin/post-new.php5.93 ▲0.0490.47 ▼10.39
Media Library /wp-admin/upload.php3.27 ▲0.0432.19 ▼6.89
ZyraTalk /wp-admin/options-general.php?page=zyra-talk-setting-page3.2430.14

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for ZyraTalk Chat
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.23 ▼0.121.65 ▼0.0641.23 ▲0.55
Dashboard /wp-admin2,202 ▲225.60 ▼0.0382.15 ▼4.7238.42 ▼6.90
Posts /wp-admin/edit.php2,104 ▲41.96 ▼0.0838.60 ▲2.6935.93 ▼2.47
Add New Post /wp-admin/post-new.php1,531 ▲322.93 ▼0.34670.33 ▲17.7355.94 ▲0.02
Media Library /wp-admin/upload.php1,407 ▲74.19 ▲0.0298.41 ▲4.4941.72 ▼0.29
ZyraTalk /wp-admin/options-general.php?page=zyra-talk-setting-page8372.0328.3026.70

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 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)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes: You can take inspiration from this readme.txt

zyratalk-chat/zyraTalkChat.php 92% from 13 tests

The main PHP file in "ZyraTalk Chat" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("zyratalk-chat.php" instead of "zyraTalkChat.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin70 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1211070

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.10
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin