83% ochatbot-and-ometrics-conversion-optimization-tools

Code Review | Ochatbot - Free AI chatbot for eCommerce & Leads

WordPress plugin Ochatbot - Free AI chatbot for eCommerce & Leads scored 83% from 54 tests.

About plugin

  • Plugin page: ochatbot-and-omet...
  • Plugin version: 1.1.05
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Feb 7, 2021
  • Latest release: May 24, 2023
  • Number of updates: 38
  • Update frequency: every 22.1 days
  • Top authors: danberganometrics (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

60+ active / 5,738 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.20MB] [CPU: ▲0.48ms] Passed 4 tests

An overview of server-side resources used by Ochatbot - Free AI chatbot for eCommerce & Leads
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1742.67 ▼2.31
Dashboard /wp-admin3.50 ▲0.2052.69 ▲3.45
Posts /wp-admin/edit.php3.62 ▲0.2648.28 ▲1.75
Add New Post /wp-admin/post-new.php6.11 ▲0.2388.93 ▼0.98
Media Library /wp-admin/upload.php3.43 ▲0.2040.25 ▲7.40
Ometrics Ochatbot /wp-admin/options-general.php?page=wp-ometrics3.4735.11

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
wpometrics_reviews_installed_on
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Ochatbot - Free AI chatbot for eCommerce & Leads
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲8213.33 ▼1.072.06 ▲0.1738.27 ▼10.16
Dashboard /wp-admin2,234 ▲495.90 ▲0.04103.59 ▼11.3342.80 ▼0.32
Posts /wp-admin/edit.php2,119 ▲302.06 ▲0.0435.68 ▲1.7130.81 ▼6.47
Add New Post /wp-admin/post-new.php1,536 ▲2217.80 ▲0.14677.22 ▼19.2866.20 ▲9.36
Media Library /wp-admin/upload.php1,419 ▲314.31 ▲0.1399.13 ▼9.7343.18 ▼0.97
Ometrics Ochatbot /wp-admin/options-general.php?page=wp-ometrics1,2091.7627.3641.51

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • wpometrics_reviews_installed_on
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/ochatbot-and-ometrics-conversion-optimization-tools/views/dashboard-notices.php:6
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/ochatbot-and-ometrics-conversion-optimization-tools/views/settingsConnect.php:2

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 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

ochatbot-and-ometrics-conversion-optimization-tools/wp-ometrics.php 85% from 13 tests

The main file in "Ochatbot - Free AI chatbot for eCommerce & Leads" v. 1.1.05 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("ochatbot-and-ometrics-conversion-optimization-tools.php" instead of "wp-ometrics.php")
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.7" instead of "3.6.0")

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
Success! There were no dangerous files found in this plugin1,825 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP42072951,128
JavaScript15253469
CSS12013228

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity71.00
▷ Minimum class complexity46.00
▷ Maximum class complexity96.00
Average method complexity5.00
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods35
▷ Static methods1542.86%
▷ Public methods35100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin