79% chat-essential

Code Review | Chat Essential

WordPress plugin Chat Essential scored 79% from 54 tests.

About plugin

  • Plugin page: chat-essential
  • Plugin version: 0.12
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 5.9.2
  • First release: Aug 21, 2021
  • Latest release: Oct 4, 2021
  • Number of updates: 7
  • Update frequency: every 6.3 days
  • Top authors: chateverywhere (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 836 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
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼294.21ms] Passed 4 tests

Analyzing server-side resources used by Chat Essential
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.5155.13 ▲31.81
Dashboard /wp-admin3.47 ▲0.0739.86 ▲5.69
Posts /wp-admin/edit.php3.70 ▲0.0639.70 ▲1.53
Add New Post /wp-admin/post-new.php7.00 ▲0.0395.17 ▼1,184.21
Media Library /wp-admin/upload.php3.42 ▲0.1224.88 ▲0.14
QR Codes /wp-admin/admin.php?page=chat-essential-qr-code3.3224.63
AI /wp-admin/admin.php?page=chat-essential3.3222.71
Settings /wp-admin/admin.php?page=chat-essential-settings3.3223.13
Website /wp-admin/admin.php?page=chat-essential-website3.3223.33

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 1,688 new files
Database: 1 new table, 2 new options
New tables
wp_chat_essential
New WordPress options
chat_essential_db_version
chat_essential_activation_date

Browser metrics Passed 4 tests

This is an overview of browser requirements for Chat Essential
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,949 ▲22716.61 ▲0.538.96 ▲3.402.53 ▲0.08
Dashboard /wp-admin2,936 ▲786.39 ▲0.29125.20 ▼8.18203.73 ▲44.35
Posts /wp-admin/edit.php2,749 ▲653.03 ▼0.2166.48 ▲1.63171.31 ▲31.70
Add New Post /wp-admin/post-new.php1,699 ▼8218.10 ▼4.63380.74 ▼38.36195.59 ▲37.56
Media Library /wp-admin/upload.php1,739 ▲415.71 ▲0.16124.65 ▼19.56221.27 ▲39.83
QR Codes /wp-admin/admin.php?page=chat-essential-qr-code1,1942.5751.97130.41
AI /wp-admin/admin.php?page=chat-essential1,1972.5665.01151.82
Settings /wp-admin/admin.php?page=chat-essential-settings1,1922.7653.25135.24
Website /wp-admin/admin.php?page=chat-essential-website1,1972.7655.57131.84

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_chat_essential

Smoke tests 50% from 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 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/chat-essential/public/partials/chat-essential-public.php
  • 55× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/chat-essential/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Handler\\CurlFactoryInterface' not found in wp-content/plugins/chat-essential/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:20
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/chat-essential/vendor/guzzlehttp/promises/src/FulfilledPromise.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\TaskQueueInterface' not found in wp-content/plugins/chat-essential/vendor/guzzlehttp/promises/src/TaskQueue.php:14
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/chat-essential/vendor/guzzlehttp/psr7/src/CachingStream.php:13
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Client\\ClientExceptionInterface' not found in wp-content/plugins/chat-essential/vendor/guzzlehttp/guzzle/src/Exception/GuzzleException.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/chat-essential/vendor/guzzlehttp/guzzle/src/Exception/ClientException.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/chat-essential/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Client\\ClientExceptionInterface' not found in wp-content/plugins/chat-essential/vendor/psr/http-client/src/NetworkExceptionInterface.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/chat-essential/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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
7 plugin tags: artificial intelligence, gpt-3, openai, gpt3, customer...

chat-essential/chat-essential.php Passed 13 tests

The entry point to "Chat Essential" version 0.12 is a PHP file that has certain tags in its header comment area
45 characters long description:
Launch automated chats anywhere you advertise

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
No dangerous file extensions were detected608,753 lines of code in 1,535 files:
LanguageFilesBlank linesComment linesLines of code
PHP1,4945,54223,040602,314
Markdown161,24703,703
JSON15101,182
JavaScript54938850
CSS3024688
make1409
YAML1007

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity16.25
▷ Minimum class complexity1.00
▷ Maximum class complexity367.00
Average method complexity2.98
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces16
Interfaces29
Traits3
Classes138
▷ Abstract classes10.72%
▷ Concrete classes13799.28%
▷ Final classes3525.55%
Methods1,344
▷ Static methods27620.54%
▷ Public methods1,11182.66%
▷ Protected methods735.43%
▷ Private methods16011.90%
Functions171
▷ Named functions7543.86%
▷ Anonymous functions9656.14%
Constants205
▷ Global constants167.80%
▷ Class constants18992.20%
▷ Public constants17793.65%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.15MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/logo.png153.49KB34.24KB▼ 77.69%
images/qr-icon-gray.png0.40KB0.56KB0.00%