63% verbato

Code Review | Verbato.ai

WordPress plugin Verbato.ai scored63%from 54 tests.

About plugin

  • Plugin page: verbato
  • Plugin version: 1.1.8
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.2
  • WordPress version: 6.3.1
  • First release: Jun 16, 2023
  • Latest release: Jun 27, 2023
  • Number of updates: 10
  • Update frequency: every 1.1 days
  • Top authors: verbato (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /168 total downloads

Benchmarks

Plugin footprint 65% 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: ▼1.88MB] [CPU: ▼59.13ms] Passed 4 tests

Server-side resources used by Verbato.ai
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.11 ▼1.355.21 ▼39.23
Dashboard /wp-admin2.13 ▼1.186.68 ▼42.56
Posts /wp-admin/edit.php2.13 ▼1.235.67 ▼48.46
Add New Post /wp-admin/post-new.php2.13 ▼3.764.96 ▼106.28
Media Library /wp-admin/upload.php2.13 ▼1.104.98 ▼32.89
Global Settings /wp-admin/admin.php?page=verbato-plugin2.135.09
Verbato Account /wp-admin/admin.php?page=?page=verbato-plugin&tab=account2.135.76
Conversation Logs /wp-admin/admin.php?page=?page=verbato-plugin&tab=logs2.135.64

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, 9 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
verbato_project
verbato_project_id
widget_recent-comments
db_upgraded
verbato_project_api_url

Browser metrics Passed 4 tests

Verbato.ai: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,876 ▲11514.36 ▲0.131.98 ▲0.1842.86 ▲2.09
Dashboard /wp-admin2,257 ▲805.65 ▲0.0384.08 ▼7.9039.22 ▼3.57
Posts /wp-admin/edit.php2,158 ▲552.04 ▲0.0942.53 ▼3.4133.89 ▼2.47
Add New Post /wp-admin/post-new.php6,389 ▲4,86327.47 ▲4.26868.02 ▲188.6561.95 ▲4.84
Media Library /wp-admin/upload.php1,458 ▲614.22 ▲0.0298.93 ▼3.4041.20 ▼2.97
Global Settings /wp-admin/admin.php?page=verbato-plugin1,1492.0626.0635.00
Verbato Account /wp-admin/admin.php?page=?page=verbato-plugin&tab=account280.420.104.38
Conversation Logs /wp-admin/admin.php?page=?page=verbato-plugin&tab=logs280.420.174.27

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • Uninstall procedure had uncaught errors
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the main handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • verbato_project_id
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=?page=verbato-plugin&tab=logs
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the main handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=verbato-plugin
    • > Notice in wp-content/plugins/verbato/templates/global-settings.php+86
    Only variables should be passed by reference

SRP 50% 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
Almost there! Just fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_generate_uuid4() in wp-content/plugins/verbato/render.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/verbato/verbato.php:9

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=?page=verbato-plugin&tab=account
    • > Network (severe)
    wp-admin/admin.php?page=?page=verbato-plugin&tab=account - Failed to load resource: the server responded with a status of 403 (Forbidden)
    • > GET request to /wp-admin/admin.php?page=?page=verbato-plugin&tab=logs
    • > Network (severe)
    wp-admin/admin.php?page=?page=verbato-plugin&tab=logs - Failed to load resource: the server responded with a status of 403 (Forbidden)

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
There were not plugin tags detected

verbato/verbato.php Passed 13 tests

This is the main PHP file of "Verbato.ai" version 1.1.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
113 characters long description:
Intelligent 3D chatbot that supports your customers by answering their questions about your products or services.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,945 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP7132351,190
JavaScript1101388
CSS1747337
JSON10030

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions19
▷ Named functions1368.42%
▷ Anonymous functions631.58%
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
13 compressed PNG files occupy 0.69MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png2.77KB2.32KB▼ 16.06%
assets/jcb.png0.95KB0.97KB0.00%
assets/model.png50.67KB35.41KB▼ 30.11%
assets/master_card.png1.74KB1.50KB▼ 13.62%
assets/diners_club.png1.07KB1.11KB0.00%