83% content-bot

Code Review | ContentBot AI Writer (ChatGPT, GPT3, GPT4)

WordPress plugin ContentBot AI Writer (ChatGPT, GPT3, GPT4) scored83%from 54 tests.

About plugin

  • Plugin page: content-bot
  • Plugin version: 1.2.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.4.1
  • WordPress version: 6.3.1
  • First release: Feb 5, 2021
  • Latest release: Nov 27, 2023
  • Number of updates: 33
  • Update frequency: every 31.1 days
  • Top authors: NickDuncan (93.94%)matthewlau (9.09%)

Code review

54 tests

User reviews

18 reviews

Install metrics

900+ active /13,560 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼6.70ms] Passed 4 tests

Analyzing server-side resources used by ContentBot AI Writer (ChatGPT, GPT3, GPT4)
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1335.56 ▼4.98
Dashboard /wp-admin3.43 ▲0.0946.56 ▼15.68
Posts /wp-admin/edit.php3.55 ▲0.1947.76 ▼0.15
Add New Post /wp-admin/post-new.php6.02 ▲0.1393.59 ▼5.97
Media Library /wp-admin/upload.php3.36 ▲0.1336.96 ▲3.04
Help /wp-admin/admin.php?page=wp-content-bot-help3.3432.89
ContentBot /wp-admin/admin.php?page=wp-content-bot-menu3.3235.77

Server storage [IO: ▲39.87MB] [DB: ▲0.07MB] 67% from 3 tests

A short overview of filesystem and database impact
Please try to fix the following items
  • The filesystem usage should be lower than 25MB (currently using 39.87MB)
Filesystem: 2,049 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
cbai_website
cbai_version
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

ContentBot AI Writer (ChatGPT, GPT3, GPT4): an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲7014.67 ▲0.271.64 ▼0.1935.49 ▼7.60
Dashboard /wp-admin2,222 ▲475.60 ▼0.1190.69 ▼22.0641.43 ▼6.16
Posts /wp-admin/edit.php2,145 ▲452.04 ▲0.0741.63 ▲2.6735.94 ▲2.78
Add New Post /wp-admin/post-new.php6,403 ▲4,86827.91 ▲4.69856.01 ▲193.6835.70 ▼24.04
Media Library /wp-admin/upload.php1,421 ▲184.16 ▼0.0694.87 ▼3.0744.17 ▲2.10
Help /wp-admin/admin.php?page=wp-content-bot-help1,2601.9824.8646.70
ContentBot /wp-admin/admin.php?page=wp-content-bot-menu1,5402.3129.6042.59

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/content-bot/content-bot.php:102

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: artificial intelligence, contentbot, ai content, chatgpt, gpt3...

content-bot/content-bot.php 85% from 13 tests

The main PHP file in "ContentBot AI Writer (ChatGPT, GPT3, GPT4)" ver. 1.2.3 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

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
Success! There were no dangerous files found in this plugin73,636 lines of code in 2,001 files:
LanguageFilesBlank linesComment linesLines of code
CSS203,44514343,553
JavaScript162,8572,97118,232
SVG1,956006,814
Sass1501,988
JSON1001,955
PHP73892331,094

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.23
Average class complexity28.00
▷ Minimum class complexity28.00
▷ Maximum class complexity28.00
Average method complexity3.67
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions23
▷ Named functions2191.30%
▷ Anonymous functions28.70%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
10 PNG files occupy 0.09MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/menu-icon.png0.60KB0.60KB0.00%
img/instruct-icon.png3.85KB3.08KB▼ 20.02%
img/squarel.png6.01KB3.29KB▼ 45.32%
img/cb-icon.png6.01KB3.29KB▼ 45.32%
img/cb-icon-instruct.png3.85KB3.08KB▼ 20.02%