74% ai-content-creator

Code Review | AI Content Creator - Easy ChatGPT powered article generator

WordPress plugin AI Content Creator - Easy ChatGPT powered article generator scored74%from 54 tests.

About plugin

  • Plugin page: ai-content-creator
  • Plugin version: 1.1.1
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-6.2
  • WordPress version: 6.3.1
  • First release: Mar 23, 2023
  • Latest release: Jun 9, 2023
  • Number of updates: 22
  • Update frequency: every 3.6 days
  • Top authors: ABCdatos (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

500+ active /3,016 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.01MB] [CPU: ▼9.37ms] Passed 4 tests

This is a short check of server-side resources used by AI Content Creator - Easy ChatGPT powered article generator
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.03 ▼1.48
Dashboard /wp-admin3.33 ▼0.0249.23 ▼19.30
Posts /wp-admin/edit.php3.38 ▲0.0251.85 ▼7.73
Add New Post /wp-admin/post-new.php5.91 ▲0.0294.69 ▼8.95
Media Library /wp-admin/upload.php3.25 ▲0.0239.58 ▲3.65
Articles /wp-admin/admin.php?page=aicc_articles3.4037.20
Settings /wp-admin/admin.php?page=aicc_settings3.2233.33
Help /wp-admin/admin.php?page=aicc_help3.2133.51
Create article /wp-admin/admin.php?page=aicc_menu3.4034.24

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 19 new files
Database: 2 new tables, 8 new options
New tables
wp_aicc_pixabay_cache
wp_aicc_generado
New WordPress options
aicc_pxbcversion
widget_recent-posts
aicc_dbversion
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

AI Content Creator - Easy ChatGPT powered article generator: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲9713.20 ▼1.391.79 ▲0.0140.50 ▲0.15
Dashboard /wp-admin2,252 ▲644.89 ▼0.99114.90 ▲7.2538.40 ▼7.55
Posts /wp-admin/edit.php2,132 ▲432.06 ▲0.0439.79 ▼1.8434.66 ▼1.96
Add New Post /wp-admin/post-new.php1,558 ▲4423.03 ▲5.19654.33 ▼20.0854.98 ▼6.00
Media Library /wp-admin/upload.php1,432 ▲414.20 ▲0.06102.74 ▼12.6348.83 ▲0.82
Articles /wp-admin/admin.php?page=aicc_articles8452.1724.5226.25
Settings /wp-admin/admin.php?page=aicc_settings1,2081.7228.1670.38
Help /wp-admin/admin.php?page=aicc_help9352.0523.2029.16
Create article /wp-admin/admin.php?page=aicc_menu9102.1624.6027.60

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The plugin did not uninstall successfully, leaving 2 tables in the database
    • wp_aicc_pixabay_cache
    • wp_aicc_generado
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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
Please fix the following items
  • 14× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/ai-content-creator/uninstall.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/ai-content-creator/admin/ayuda.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/ai-content-creator/admin/idiomas.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/ai-content-creator/ai-content-creator.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/ai-content-creator/admin/funciones.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/ai-content-creator/lista-opciones.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/ai-content-creator/bbdd.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/ai-content-creator/admin/crear.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/ai-content-creator/admin/configuracion.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/ai-content-creator/admin/opciones.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: gpt, openai, inteligencia artificial, ia, chatgpt

ai-content-creator/ai-content-creator.php Passed 13 tests

This is the main PHP file of "AI Content Creator - Easy ChatGPT powered article generator" version 1.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
38 characters long description:
Creates new posts content using AI API

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin3,347 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP145641,4093,312
CSS24130
SVG1005

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
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 complexity108.00
▷ Minimum class complexity108.00
▷ Maximum class complexity108.00
Average method complexity2.70
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods63
▷ Static methods00.00%
▷ Public methods5485.71%
▷ Protected methods00.00%
▷ Private methods914.29%
Functions151
▷ Named functions15099.34%
▷ Anonymous functions10.66%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin