84% venyoo-chat-bot

Code Review | Venyoo

WordPress plugin Venyoo scored 84% from 54 tests.

About plugin

  • Plugin page: venyoo-chat-bot
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7.2
  • WordPress version: 6.3.1
  • First release: Mar 1, 2018
  • Latest release: Mar 1, 2018
  • Number of updates: 5
  • Update frequency: every 13.8 days
  • Top authors: venyoo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 778 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.60ms] Passed 4 tests

Analyzing server-side resources used by Venyoo
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.56 ▼10.23
Dashboard /wp-admin3.31 ▲0.0146.69 ▼2.55
Posts /wp-admin/edit.php3.36 ▲0.0147.51 ▼1.10
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.75 ▼10.10
Media Library /wp-admin/upload.php3.23 ▲0.0133.46 ▼3.52
Venyoo Chat Bot /wp-admin/options-general.php?page=options-venyoo3.2030.63

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Venyoo
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.16 ▼1.591.53 ▼0.1739.60 ▼3.38
Dashboard /wp-admin2,213 ▲255.88 ▲1.0396.98 ▼19.7741.22 ▼2.99
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0435.50 ▲1.6735.20 ▲0.52
Add New Post /wp-admin/post-new.php1,522 ▲523.33 ▲5.79642.22 ▼19.8755.84 ▼9.72
Media Library /wp-admin/upload.php1,392 ▲44.19 ▼0.0395.65 ▼3.9042.21 ▼2.09
Venyoo Chat Bot /wp-admin/options-general.php?page=options-venyoo7702.0225.2224.10

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/venyoo-chat-bot/venyoo.php:10

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)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 90 tag instead of maximum 10
You can take inspiration from this readme.txt

venyoo-chat-bot/venyoo.php 92% from 13 tests

The principal PHP file in "Venyoo" v. 1.0.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("venyoo-chat-bot.php" instead of "venyoo.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
Good job! No executable or dangerous file extensions detected75 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP112839
PO File112036

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.07
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%
Functions3
▷ Named functions3100.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
PNG images were not found in this plugin