72% ai-content-generation

Code Review | WP Wand - AI Writer, AI Content Generator & AI Assistant by ChatGPT, OpenAI | Generate SEO Friendly AI Blog Post & Article with 20X Speed

WordPress plugin WP Wand - AI Writer, AI Content Generator & AI Assistant by ChatGPT, OpenAI | Generate SEO Friendly AI Blog Post & Article with 20X Speed scored72%from 54 tests.

About plugin

  • Plugin page: ai-content-genera...
  • Plugin version: 1.2.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: May 2, 2023
  • Latest release: Oct 5, 2023
  • Number of updates: 35
  • Update frequency: every 4.6 days
  • Top authors: wpgrids (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

300+ active /4,684 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
This plugin's installer ran successfully

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

Analyzing server-side resources used by WP Wand - AI Writer, AI Content Generator & AI Assistant by ChatGPT, OpenAI | Generate SEO Friendly AI Blog Post & Article with 20X Speed
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0847.60 ▲1.46
Dashboard /wp-admin3.43 ▲0.0864.37 ▼2.67
Posts /wp-admin/edit.php3.56 ▲0.2071.66 ▲23.34
Add New Post /wp-admin/post-new.php6.00 ▲0.1194.56 ▼17.94
Media Library /wp-admin/upload.php3.34 ▲0.1151.33 ▲15.68
Bulk Posts /wp-admin/admin.php?page=wpwand-post-generator3.3747.14
Settings /wp-admin/admin.php?page=wpwand3.3466.71
/wp-admin/admin.php?page=3.1231.45

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 63 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

WP Wand - AI Writer, AI Content Generator & AI Assistant by ChatGPT, OpenAI | Generate SEO Friendly AI Blog Post & Article with 20X Speed: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,205 ▲43422.41 ▲7.871.83 ▼0.3948.14 ▲3.12
Dashboard /wp-admin2,606 ▲43211.57 ▲6.00282.31 ▲183.09155.71 ▲111.57
Posts /wp-admin/edit.php2,558 ▲45811.92 ▲9.93120.26 ▲82.53140.68 ▲101.32
Add New Post /wp-admin/post-new.php1,732 ▲20123.50 ▲0.49561.65 ▼107.89176.30 ▲121.88
Media Library /wp-admin/upload.php1,694 ▲29413.11 ▲8.93146.90 ▲38.9960.50 ▲9.17
Bulk Posts /wp-admin/admin.php?page=wpwand-post-generator1,85715.97345.5250.94
Settings /wp-admin/admin.php?page=wpwand1,69411.5496.99115.33
/wp-admin/admin.php?page=280.420.073.77

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 25% 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 0% 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
Please fix the following items
  • 7× PHP files output text when accessed directly:
    • > /wp-content/plugins/ai-content-generation/inc/WooCommerce.php
    • > /wp-content/plugins/ai-content-generation/vendor/wp-background-processing/tests/bootstrap.php
    • > /wp-content/plugins/ai-content-generation/inc/api.php
    • > /wp-content/plugins/ai-content-generation/inc/frontend.php
    • > /wp-content/plugins/ai-content-generation/inc/post-generator.php
    • > /wp-content/plugins/ai-content-generation/inc/data.php
    • > /wp-content/plugins/ai-content-generation/inc/white-label.php
  • 12× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ai-content-generation/inc/modules/elementor/wp-wand-elementor.php:16
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/ai-content-generation/wp-wand.php on line 15
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ai-content-generation/wp-wand.php on line 15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ai-content-generation/vendor/wp-background-processing/wp-background-processing.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ai-content-generation/inc/helper-functions.php:60
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/ai-content-generation/wp-wand.php on line 15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/ai-content-generation/inc/view/post-generator.php:46
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ai-content-generation/inc/gutenberg.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ai-content-generation/inc/admin.php:255
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Async_Request' not found in wp-content/plugins/ai-content-generation/vendor/wp-background-processing/classes/wp-background-process.php:14

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=wpwand-post-generator
    • > Other (warning) in unknown
    /wp-admin/admin.php?page=wpwand-post-generator 287 Unrecognized feature: 'web-share'.
    • > GET request to /wp-admin/admin.php?page=
    • > Network (severe)
    wp-admin/admin.php?page= - Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Tags: Please delete some tags, you are using 16 tag instead of maximum 10
You can take inspiration from this readme.txt

ai-content-generation/wp-wand.php 77% from 13 tests

The main file in "WP Wand - AI Writer, AI Content Generator & AI Assistant by ChatGPT, OpenAI | Generate SEO Friendly AI Blog Post & Article with 20X Speed" v. 1.2.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 166 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("ai-content-generation.php" instead of "wp-wand.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin26,050 lines of code in 52 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript950338216,244
PHP281,1081,4324,755
CSS45491583,797
Markdown33680875
Bourne Shell12311147
YAML113080
XML271657
SVG20046
JSON10035
make14014

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity11.33
▷ Minimum class complexity1.00
▷ Maximum class complexity65.00
Average method complexity1.79
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes15
▷ Abstract classes213.33%
▷ Concrete classes1386.67%
▷ Final classes17.69%
Methods197
▷ Static methods199.64%
▷ Public methods15076.14%
▷ Protected methods3216.24%
▷ Private methods157.61%
Functions78
▷ Named functions6076.92%
▷ Anonymous functions1823.08%
Constants18
▷ Global constants1055.56%
▷ Class constants844.44%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.38MB with 0.18MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/modules/elementor/assets/img/icon.png5.67KB2.57KB▼ 54.62%
assets/img/logo.png5.67KB2.57KB▼ 54.62%
inc/modules/elementor/assets/img/Video.png189.85KB114.00KB▼ 39.96%
assets/img/Video.png189.85KB114.00KB▼ 39.96%