83% artificial-intelligence-auto-content-generator

Code Review | AI Tools - Chatbot, ChatGPT, Content Generator, Image Generator, Artificial Intelligence GPT

WordPress plugin AI Tools - Chatbot, ChatGPT, Content Generator, Image Generator, Artificial Intelligence GPT scored83%from 54 tests.

About plugin

  • Plugin page: artificial-intell...
  • Plugin version: 3.13.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.2.2
  • WordPress version: 6.3.1
  • First release: Dec 27, 2022
  • Latest release: Jul 18, 2023
  • Number of updates: 80
  • Update frequency: every 2.5 days
  • Top authors: momothemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,992 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
Install script ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼0.29ms] Passed 4 tests

Server-side resources used by AI Tools - Chatbot, ChatGPT, Content Generator, Image Generator, Artificial Intelligence GPT
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1336.22 ▼5.09
Dashboard /wp-admin3.44 ▲0.1449.37 ▼3.97
Posts /wp-admin/edit.php3.49 ▲0.1355.45 ▲4.48
Add New Post /wp-admin/post-new.php6.06 ▲0.1799.50 ▲7.08
Media Library /wp-admin/upload.php3.36 ▲0.1336.12 ▲3.42
Draft Contents /wp-admin/edit.php?post_type=momoacg3.4037.75
Create /wp-admin/admin.php?page=momoacg-create3.4236.02
ChatGPT /wp-admin/admin.php?page=momochatgpt3.4033.42
Bulk Content Writer /wp-admin/admin.php?page=momobulkcw3.3732.89
Settings /wp-admin/admin.php?page=momoacg3.4334.82

Server storage [IO: ▲5.24MB] [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: 104 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for AI Tools - Chatbot, ChatGPT, Content Generator, Image Generator, Artificial Intelligence GPT
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,994 ▲25914.36 ▼0.015.24 ▲3.0537.20 ▼13.41
Dashboard /wp-admin2,295 ▲1075.11 ▼0.74115.28 ▼1.9745.19 ▼3.20
Posts /wp-admin/edit.php2,181 ▲922.32 ▲0.2639.94 ▲3.6432.13 ▼2.57
Add New Post /wp-admin/post-new.php6,482 ▲4,96821.01 ▲3.48888.01 ▲201.5847.34 ▼5.45
Media Library /wp-admin/upload.php1,480 ▲924.57 ▲0.35106.63 ▼9.0044.46 ▼3.04
Draft Contents /wp-admin/edit.php?post_type=momoacg1,1422.4336.0729.58
Create /wp-admin/admin.php?page=momoacg-create1,5002.3130.8450.15
ChatGPT /wp-admin/admin.php?page=momochatgpt1,2012.4327.5948.43
Bulk Content Writer /wp-admin/admin.php?page=momobulkcw1,1111.8929.7736.20
Settings /wp-admin/admin.php?page=momoacg1,9211.9831.0634.49

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 38× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/artificial-intelligence-auto-content-generator/fe-content-generator/class-momo-acg-fe-cg-shortcodes.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/artificial-intelligence-auto-content-generator/includes/admin/pages/page-momo-acg-openai.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/artificial-intelligence-auto-content-generator/bulkcw/pages/page-momo-bulkcw-editor.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/artificial-intelligence-auto-content-generator/includes/admin/pages/page-momo-acg-openai-instructions.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/artificial-intelligence-auto-content-generator/includes/cpt-momoacg/class-momo-cpt-momoacg.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/artificial-intelligence-auto-content-generator/chatgpt/admin/pages/page-momo-chatgpt-openai.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/artificial-intelligence-auto-content-generator/includes/admin/pages/page-momo-acg-general.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/artificial-intelligence-auto-content-generator/fe-content-generator/class-momo-acg-fe-cg-ajax.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/artificial-intelligence-auto-content-generator/woocommerce/admin/class-momo-acg-wc-admin-init.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/artificial-intelligence-auto-content-generator/class-momo-auto-content-generator.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention: The official readme.txt might help

artificial-intelligence-auto-content-generator/class-momo-auto-content-generator.php 77% from 13 tests

The main PHP script in "AI Tools - Chatbot, ChatGPT, Content Generator, Image Generator, Artificial Intelligence GPT" version 3.13.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("artificial-intelligence-auto-content-generator.php" instead of "class-momo-auto-content-generator.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Plugin Name: It is recommended to keep the plugin name shorter than 70 characters (currently 92 characters long)

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 plugin47,138 lines of code in 85 files:
LanguageFilesBlank linesComment linesLines of code
JSON40027,565
CSS151491238,772
PHP501341,1315,831
JavaScript112355913,326
SVG4001,642
Markdown1002

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity28.94
▷ Minimum class complexity1.00
▷ Maximum class complexity243.00
Average method complexity6.15
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes33
▷ Abstract classes00.00%
▷ Concrete classes33100.00%
▷ Final classes00.00%
Methods184
▷ Static methods00.00%
▷ Public methods184100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions116.67%
▷ Anonymous functions583.33%
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