83% auyautochat-for-wp

Code Review | Autochat Automatic Conversation

WordPress plugin Autochat Automatic Conversation scored83%from 54 tests.

About plugin

  • Plugin page: auyautochat-for-wp
  • Plugin version: 1.1.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9.3
  • WordPress version: 6.3.1
  • First release: Dec 11, 2019
  • Latest release: Oct 13, 2022
  • Number of updates: 34
  • Update frequency: every 30.5 days
  • Top authors: autochat (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /4,017 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
The plugin installed gracefully, with no errors

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

Server-side resources used by Autochat Automatic Conversation
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1748.46 ▲5.76
Dashboard /wp-admin3.56 ▲0.25575.37 ▲528.19
Posts /wp-admin/edit.php3.59 ▲0.23242.70 ▲197.07
Add New Post /wp-admin/post-new.php6.10 ▲0.21255.66 ▲159.39
Media Library /wp-admin/upload.php3.42 ▲0.19236.72 ▲202.53

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 50 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Autochat Automatic Conversation
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,849 ▲11413.87 ▼0.691.81 ▲0.0644.70 ▼4.55
Dashboard /wp-admin2,240 ▲515.03 ▲0.07106.08 ▼16.1781.61 ▲37.02
Posts /wp-admin/edit.php2,137 ▲482.33 ▲0.2735.66 ▼1.2935.27 ▲0.91
Add New Post /wp-admin/post-new.php1,561 ▲2518.73 ▼4.55655.10 ▲14.1041.32 ▼12.62
Media Library /wp-admin/upload.php1,434 ▲434.36 ▲0.18109.00 ▲11.4188.15 ▲45.00

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
Please fix the following items
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/auyautochat-for-wp/auyautochat.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_head() in wp-content/plugins/auyautochat-for-wp/chatframe.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/auyautochat-for-wp/includes/options.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 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
Attributes that require attention:
  • Plugin Name: Please specify the plugin name on the first line ( === auyautochat-for-wp === )
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Installation.), #2 (Autochat button on website.), #3 (Autochat options.)
  • Tags: Too many tags (26 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

auyautochat-for-wp/auyautochat.php 92% from 13 tests

"Autochat Automatic Conversation" version 1.1.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("auyautochat-for-wp.php" instead of "auyautochat.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin2,564 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PO File124535101,031
PHP321526828
CSS49221567
JavaScript61932,94377
HTML116061

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
7 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/delete.png1.27KB0.41KB▼ 67.77%
assets/img/autocht_ic.png2.17KB1.28KB▼ 40.89%
assets/img/logo2.png3.22KB2.10KB▼ 34.67%
assets/img/check.png0.45KB0.30KB▼ 32.60%
assets/img/icon-message.png1.51KB0.51KB▼ 66.41%