10% appypie-chatbot

Code Review | Appypie Chatbot

WordPress plugin Appypie Chatbot scored10%from 54 tests.

About plugin

  • Plugin page: appypie-chatbot
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-5.7.2
  • WordPress version: 6.3.1
  • First release: Aug 16, 2021
  • Latest release: Aug 16, 2021
  • Number of updates: 2
  • Update frequency: every 15.5 days
  • Top authors: hancock11 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /309 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5453
    Function supports_collation is deprecated since version 3.5.0! Use wpdb::has_cap( 'collation' ) instead.

Server metrics [RAM: ▲0.06MB] [CPU: ▼2.96ms] Passed 4 tests

A check of server-side resources used by Appypie Chatbot
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0841.57 ▲3.78
Dashboard /wp-admin3.38 ▲0.0343.77 ▼13.03
Posts /wp-admin/edit.php3.43 ▲0.0748.35 ▼0.45
Add New Post /wp-admin/post-new.php5.97 ▲0.0898.03 ▲0.46
Media Library /wp-admin/upload.php3.30 ▲0.0732.41 ▲1.17

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: 1 new table, 6 new options
New tables
wp_chat_bot
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Appypie Chatbot
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.28 ▼0.081.77 ▼0.2037.61 ▼8.46
Dashboard /wp-admin2,214 ▲345.74 ▲0.1292.77 ▲8.2058.86 ▲17.69
Posts /wp-admin/edit.php2,128 ▲282.24 ▲0.2439.52 ▲4.1843.78 ▲6.78
Add New Post /wp-admin/post-new.php1,557 ▲3123.07 ▼0.02670.52 ▼12.1661.12 ▲5.59
Media Library /wp-admin/upload.php1,428 ▲284.36 ▲0.2095.15 ▼7.7345.84 ▼2.46

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, class 'AppypieChatBot' does not have a method 'appypieChatBotPluginActivateDeactivate'
  • Zombie tables were found after uninstall: 1 table
    • wp_chat_bot
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/appypie-chatbot/wc-chat-bot.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
There were not plugin tags detected

appypie-chatbot/wc-chat-bot.php 92% from 13 tests

Analyzing the main PHP file in "Appypie Chatbot" version 1.0.1
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("appypie-chatbot.php" instead of "wc-chat-bot.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,410 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
SVG200566
CSS11064414
PHP23220302
JavaScript2134128

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity2.27
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
9 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/lock.png0.48KB0.33KB▼ 30.18%
assets/images/chatbot.png1.24KB1.12KB▼ 9.72%
assets/images/chatbot-1.png3.36KB2.11KB▼ 37.20%
assets/images/arrow.png0.15KB0.17KB0.00%
assets/images/Chat Bot-772x250.png34.77KB12.13KB▼ 65.11%