84% liquid-chatgpt

Code Review | AI Engine for WordPress: ChatGPT, GPT Content Generator

WordPress plugin AI Engine for WordPress: ChatGPT, GPT Content Generator scored84%from 54 tests.

About plugin

  • Plugin page: liquid-chatgpt
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Feb 18, 2023
  • Latest release: Mar 2, 2023
  • Number of updates: 4
  • Update frequency: every 3.0 days
  • Top authors: liquidthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,494 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.11MB] [CPU: ▲0.89ms] Passed 4 tests

Server-side resources used by AI Engine for WordPress: ChatGPT, GPT Content Generator
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1139.04 ▼4.32
Dashboard /wp-admin3.41 ▲0.1149.07 ▲1.46
Posts /wp-admin/edit.php3.52 ▲0.1751.22 ▲2.72
Add New Post /wp-admin/post-new.php6.01 ▲0.12108.29 ▲10.81
Media Library /wp-admin/upload.php3.33 ▲0.1036.91 ▲3.69
Liquid ChatGPT /wp-admin/admin.php?page=lqdai3.3031.77
Logs /wp-admin/admin.php?page=lqdai-logs3.3033.89

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

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

Browser metrics Passed 4 tests

A check of browser resources used by AI Engine for WordPress: ChatGPT, GPT Content Generator
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲9613.30 ▼0.991.52 ▼0.3539.99 ▼5.32
Dashboard /wp-admin2,237 ▲494.89 ▼0.96109.66 ▲7.1144.06 ▲4.02
Posts /wp-admin/edit.php2,120 ▲312.04 ▼0.0040.04 ▼0.1532.94 ▼3.48
Add New Post /wp-admin/post-new.php1,718 ▲20418.46 ▲0.90616.43 ▼38.6758.73 ▲2.02
Media Library /wp-admin/upload.php1,413 ▲224.27 ▼0.0296.76 ▼1.2042.20 ▼2.49
Liquid ChatGPT /wp-admin/admin.php?page=lqdai8992.0423.8228.75
Logs /wp-admin/admin.php?page=lqdai-logs7842.1726.1924.90

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • 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
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/liquid-chatgpt/include/page-logs.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/liquid-chatgpt/include/page-options.php:54

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

readme.txt Passed 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
7 plugin tags: gpt, ai, gpt-3, content generator, openai...

liquid-chatgpt/liquid-chatgpt.php 85% from 13 tests

The entry point to "AI Engine for WordPress: ChatGPT, GPT Content Generator" version 1.0.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin863 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP312470491
CSS1331219
JavaScript1286153

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity27.00
▷ Minimum class complexity27.00
▷ Maximum class complexity27.00
Average method complexity3.17
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods13
▷ Static methods17.69%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions1184.62%
▷ Anonymous functions215.38%
Constants3
▷ Global constants3100.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
No PNG files were detected