84% bestchat

Code Review | BestChat - Live Chat & Chatbot

WordPress plugin BestChat - Live Chat & Chatbot scored84%from 54 tests.

About plugin

  • Plugin page: bestchat
  • Plugin version: 0.1
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Dec 28, 2022
  • Latest release: Dec 30, 2022
  • Number of updates: 4
  • Update frequency: every 1.8 days
  • Top authors: infobestchat (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /232 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▼0.14MB] [CPU: ▼13.30ms] Passed 4 tests

A check of server-side resources used by BestChat - Live Chat & Chatbot
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0237.80 ▼8.51
Dashboard /wp-admin3.23 ▼0.0841.51 ▼14.15
Posts /wp-admin/edit.php3.29 ▼0.0640.54 ▼7.79
Add New Post /wp-admin/post-new.php5.47 ▼0.4274.83 ▼22.74
Media Library /wp-admin/upload.php3.23 ▲0.0031.15 ▼5.67

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
bestchat_onboarding
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

BestChat - Live Chat & Chatbot: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲8214.35 ▲0.211.74 ▼0.1242.47 ▼6.36
Dashboard /wp-admin2,234 ▲545.57 ▼0.0383.91 ▼11.9881.14 ▲41.43
Posts /wp-admin/edit.php2,155 ▲551.98 ▼0.0140.59 ▲2.2940.15 ▲2.68
Add New Post /wp-admin/post-new.php1,573 ▲4523.07 ▼0.04747.77 ▲57.4352.53 ▼0.82
Media Library /wp-admin/upload.php1,451 ▲514.20 ▼0.02103.55 ▼11.4663.75 ▲20.37

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • bestchat_onboarding
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/bestchat/views/settings_install.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bestchat/bestchat.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/bestchat/views/settings_installed.php:14

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
8 plugin tags: bestchat, live chat, widget, chatbot, bot...

bestchat/bestchat.php Passed 13 tests

"BestChat - Live Chat & Chatbot" version 0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
29 characters long description:
bestchat is a Livechat plugin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin434 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
CSS2390240
PHP33011164
SVG30029
Markdown1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.23MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-1544x500.png179.57KB179.56KB0.00%
assets/banner-772x250.png56.71KB56.72KB0.00%