74% conversation-chatgpt

Code Review | Conversation via ChatGPT

WordPress plugin Conversation via ChatGPT scored74%from 54 tests.

About plugin

  • Plugin page: conversation-chatgpt
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.2
  • WordPress version: 6.3.1
  • First release: Mar 9, 2023
  • Latest release: Mar 30, 2023
  • Number of updates: 5
  • Update frequency: every 4.2 days
  • Top authors: novadream (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /774 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.12ms] Passed 4 tests

An overview of server-side resources used by Conversation via ChatGPT
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.76 ▼2.26
Dashboard /wp-admin3.32 ▲0.0247.28 ▼1.50
Posts /wp-admin/edit.php3.37 ▲0.0243.26 ▼2.91
Add New Post /wp-admin/post-new.php5.90 ▲0.0283.13 ▼9.80
Media Library /wp-admin/upload.php3.24 ▲0.0232.78 ▼1.02

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 2 new files
Database: 1 new table, 6 new options
New tables
wp_chatgpt_conversation
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Conversation via ChatGPT: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5914.76 ▲0.411.73 ▼0.3442.78 ▼1.10
Dashboard /wp-admin2,219 ▲344.84 ▼0.97112.67 ▼3.5541.90 ▼2.45
Posts /wp-admin/edit.php2,105 ▲162.00 ▼0.0333.55 ▼7.1133.10 ▼1.66
Add New Post /wp-admin/post-new.php1,551 ▲1823.03 ▼0.04636.90 ▼35.6960.35 ▲7.41
Media Library /wp-admin/upload.php1,404 ▲194.19 ▲0.0795.59 ▼4.1342.41 ▲0.68

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_chatgpt_conversation
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

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
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 take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/conversation-chatgpt/chatgpt_post.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Contributors: Plugin contributors field is missing
The official readme.txt is a good inspiration

conversation-chatgpt/chatgpt_post.php 92% from 13 tests

This is the main PHP file of "Conversation via ChatGPT" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("conversation-chatgpt.php" instead of "chatgpt_post.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin117 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12513117

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.09
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin