77% gpt-ai-content-creator-by-bestwebsoft

Code Review | GPT AI Content Creator

WordPress plugin GPT AI Content Creator scored77%from 54 tests.

About plugin

  • Plugin page: gpt-ai-content-cr...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.2
  • WordPress version: 6.3.1
  • First release: Jun 6, 2023
  • Latest release: Jul 5, 2023
  • Number of updates: 7
  • Update frequency: every 5.4 days
  • Top authors: bestwebsoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /216 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.80MB] [CPU: ▲3.96ms] Passed 4 tests

Server-side resources used by GPT AI Content Creator
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.24 ▲0.7841.42 ▲4.23
Dashboard /wp-admin4.16 ▲0.8556.64 ▲11.02
Posts /wp-admin/edit.php4.22 ▲0.8653.19 ▲8.99
Add New Post /wp-admin/post-new.php6.68 ▲0.7985.40 ▼8.42
Media Library /wp-admin/upload.php4.02 ▲0.7954.73 ▲19.83

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 129 new files
Database: no new tables, 8 new options
New WordPress options
bstwbsftwppdtplgns_options
widget_recent-comments
db_upgraded
gptcntntcrtr_options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

GPT AI Content Creator: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,991 ▲22022.82 ▲8.451.71 ▼0.3636.27 ▼6.82
Dashboard /wp-admin2,201 ▲1013.78 ▲8.90363.28 ▲260.8842.79 ▼4.47
Posts /wp-admin/edit.php2,191 ▲9912.66 ▲10.67180.91 ▲141.1536.48 ▼0.73
Add New Post /wp-admin/post-new.php1,760 ▲22326.59 ▲3.58556.01 ▼31.4736.30 ▼12.29
Media Library /wp-admin/upload.php1,569 ▲17814.90 ▲10.75186.08 ▲90.0444.38 ▲2.12
BWS Panel /wp-admin/gpt-ai-content-creator.php?page=gptcntntcrtr-bws-panel260.440.0712.50
Settings /wp-admin/gpt-ai-content-creator.php260.440.075.88

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% 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)
Even though everything seems fine, this is not 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
Please take a closer look at the following
  • 4× 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/gpt-ai-content-creator-by-bestwebsoft/bws_menu/class-bws-settings.php:1453
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/gpt-ai-content-creator-by-bestwebsoft/bws_menu/product_list.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Bws_Settings_Tabs' not found in wp-content/plugins/gpt-ai-content-creator-by-bestwebsoft/includes/class-gptcntntcrtr-settings.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gpt-ai-content-creator-by-bestwebsoft/gpt-ai-content-creator.php:393

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
    • > GET request to /wp-admin/gpt-ai-content-creator.php?page=gptcntntcrtr-bws-panel
    • > Network (severe)
    wp-admin/gpt-ai-content-creator.php?page=gptcntntcrtr-bws-panel - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/gpt-ai-content-creator.php
    • > Network (severe)
    wp-admin/gpt-ai-content-creator.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Plugin settings in WordPress admin panel.), #2 (AI generated content example.)
The official readme.txt is a good inspiration

gpt-ai-content-creator-by-bestwebsoft/gpt-ai-content-creator.php 85% from 13 tests

"GPT AI Content Creator" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("gpt-ai-content-creator-by-bestwebsoft.php" instead of "gpt-ai-content-creator.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

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin19,556 lines of code in 44 files:
LanguageFilesBlank linesComment linesLines of code
PO File163,5745,2708,708
CSS91552505,335
PHP94525794,761
JavaScript638118585
SVG400167

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.61
Average class complexity81.00
▷ Minimum class complexity12.00
▷ Maximum class complexity210.00
Average method complexity11.43
▷ Minimum method complexity1.00
▷ Maximum method complexity79.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods23
▷ Static methods00.00%
▷ Public methods1773.91%
▷ Protected methods00.00%
▷ Private methods626.09%
Functions64
▷ Named functions64100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
60 PNG files occupy 2.74MB with 0.93MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
bws_menu/css/jquery-ui-styles/1.10.4/images/ui-bg_flat_75_ffffff_40x100.png0.25KB0.11KB▼ 55.38%
bws_menu/css/jquery-ui-styles/1.9.2/images/ui-bg_glass_95_fef1ec_1x400.png0.12KB0.14KB0.00%
bws_menu/css/jquery-ui-styles/1.9.2/images/ui-bg_glass_75_e6e6e6_1x400.png0.15KB0.14KB▼ 6.62%
bws_menu/css/jquery-ui-styles/1.12.1/images/ui-bg_glass_65_ffffff_1x400.png0.26KB0.09KB▼ 66.79%
bws_menu/css/jquery-ui-styles/1.10.4/images/ui-bg_glass_75_e6e6e6_1x400.png0.31KB0.18KB▼ 39.81%