84% gpt3-ai-content-writer

Code Review | AI Content Generator: GPT3, ChatGpt

WordPress plugin AI Content Generator: GPT3, ChatGpt scored 84% from 54 tests.

About plugin

  • Plugin page: gpt3-ai-content-w...
  • Plugin version: 1.1.5
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Jan 10, 2023
  • Latest release: Feb 8, 2023
  • Number of updates: 14
  • Update frequency: every 2.1 days
  • Top authors: jcodex (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 962 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼2.64ms] Passed 4 tests

A check of server-side resources used by AI Content Generator: GPT3, ChatGpt
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1038.52 ▼3.58
Dashboard /wp-admin3.41 ▲0.1045.43 ▼7.81
Posts /wp-admin/edit.php3.52 ▲0.1648.16 ▲0.73
Add New Post /wp-admin/post-new.php5.99 ▲0.1093.16 ▲0.12
Media Library /wp-admin/upload.php3.33 ▲0.1036.73 ▲3.27

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for AI Content Generator: GPT3, ChatGpt
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲7914.47 ▼0.271.74 ▼0.0941.08 ▼10.33
Dashboard /wp-admin2,220 ▲324.88 ▼0.97110.78 ▼4.0939.61 ▼9.39
Posts /wp-admin/edit.php2,103 ▲112.02 ▼0.0139.93 ▼12.5135.87 ▼7.51
Add New Post /wp-admin/post-new.php7,120 ▲5,60620.19 ▲2.62905.48 ▲244.4070.73 ▲18.05
Media Library /wp-admin/upload.php1,405 ▲204.19 ▼0.0597.83 ▼5.7542.70 ▼0.55

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/gpt3-ai-content-writer/admin/class-wp-ai-setting-page.php:125
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_deactivation_hook() in wp-content/plugins/gpt3-ai-content-writer/includes/class-wp-ai-content-writer-loader.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gpt3-ai-content-writer/admin/class-wp-ai-gpt3-content-writer_metabox.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/gpt3-ai-content-writer/gpt3-ai-content-writer.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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
Please fix the following attributes: The official readme.txt is a good inspiration

gpt3-ai-content-writer/gpt3-ai-content-writer.php 92% from 13 tests

The primary PHP file in "AI Content Generator: GPT3, ChatGpt" version 1.1.5 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 324 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin598 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP511243560
CSS15038

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity6.50
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity2.10
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants240.00%
▷ Class constants360.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin