78% ai-auto-content-generator-for-elementor

Code Review | AI Content Generator For Elementor - OpenAI ChatGPT

WordPress plugin AI Content Generator For Elementor - OpenAI ChatGPT scored78%from 54 tests.

About plugin

  • Plugin page: ai-auto-content-g...
  • 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 15, 2023
  • Latest release: Feb 24, 2023
  • Number of updates: 4
  • Update frequency: every 2.3 days
  • Top authors: coolplugins (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

400+ active /1,990 total downloads


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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.85ms] Passed 4 tests

Analyzing server-side resources used by AI Content Generator For Elementor - OpenAI ChatGPT
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.45 ▲1.18
Dashboard /wp-admin3.32 ▲0.0242.74 ▼5.37
Posts /wp-admin/edit.php3.37 ▲0.0248.29 ▲4.09
Add New Post /wp-admin/post-new.php5.90 ▲0.0281.53 ▼3.07
Media Library /wp-admin/upload.php3.24 ▲0.0233.15 ▼0.15
AI Content Genrator /wp-admin/admin.php?page=auto_content_generator3.0122.78

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 138 new files
Database: no new tables, 11 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for AI Content Generator For Elementor - OpenAI ChatGPT
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲7313.23 ▼1.361.80 ▼0.0842.99 ▼2.58
Dashboard /wp-admin2,225 ▲344.80 ▼0.24110.46 ▲7.2840.12 ▼0.45
Posts /wp-admin/edit.php2,108 ▲162.07 ▲0.0640.84 ▲5.1037.41 ▲2.85
Add New Post /wp-admin/post-new.php1,551 ▲923.45 ▲4.99671.32 ▲23.6753.46 ▼10.25
Media Library /wp-admin/upload.php1,401 ▲104.26 ▼0.0199.09 ▼2.0740.51 ▼6.80
AI Content Genrator /wp-admin/admin.php?page=auto_content_generator280.440.083.45

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 10 options in the database
    • widget_recent-posts
    • db_upgraded
    • aacgfe-plugin-type
    • aacgfe-installDate
    • theysaidso_admin_options
    • aacgfe-version
    • aacgfe-ratingDiv
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      Use of undefined constant AACGFE_VERSION - assumed 'AACGFE_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/ai-auto-content-generator-for-elementor/admin/feedback/admin-feedback-form.php on line 167
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ai-auto-content-generator-for-elementor/controls/ai_controller.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/ai-auto-content-generator-for-elementor/admin/feedback/admin-feedback-form.php:16

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=auto_content_generator
    • > Network (severe)
    wp-admin/admin.php?page=auto_content_generator - Failed to load resource: the server responded with a status of 403 (Forbidden)


Plugin configuration 96% 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
5 plugin tags: gpt, openai, elementor, gpt-3, chatgpt

ai-auto-content-generator-for-elementor/ai-auto-content-generator-for-elementor.php 92% from 13 tests

The principal PHP file in "AI Content Generator For Elementor - OpenAI ChatGPT" v. 1.0.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
There were no executable files found in this plugin17,855 lines of code in 112 files:
LanguageFilesBlank linesComment linesLines of code
PO File203,1983,5916,500

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.61
Average class complexity20.66
▷ Minimum class complexity1.00
▷ Maximum class complexity151.00
Average method complexity6.35
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
▷ Abstract classes23.39%
▷ Concrete classes5796.61%
▷ Final classes23.51%
▷ Static methods3917.97%
▷ Public methods21498.62%
▷ Protected methods00.00%
▷ Private methods31.38%
▷ Named functions23100.00%
▷ Anonymous functions00.00%
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/acgfe-logo.png51.46KB8.81KB▼ 82.87%