84% ai-wp-writer

Code Review | AI WP Writer - автонаполнение сайта ChatGPT и Midjourney

WordPress plugin AI WP Writer - автонаполнение сайта ChatGPT и Midjourney scored84%from 54 tests.

About plugin

  • Plugin page: ai-wp-writer
  • Plugin version: 3.4.2
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Sep 14, 2023
  • Latest release: Oct 5, 2023
  • Number of updates: 8
  • Update frequency: every 2.8 days
  • Top authors: aipost (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /918 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼0.04MB] [CPU: ▼4.74ms] Passed 4 tests

Analyzing server-side resources used by AI WP Writer - автонаполнение сайта ChatGPT и Midjourney
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0449.28 ▲9.85
Dashboard /wp-admin3.34 ▲0.0461.92 ▲5.72
Posts /wp-admin/edit.php3.40 ▲0.0454.13 ▼19.15
Add New Post /wp-admin/post-new.php5.61 ▼0.2882.23 ▼9.05
Media Library /wp-admin/upload.php3.27 ▲0.0439.35 ▲3.54

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for AI WP Writer - автонаполнение сайта ChatGPT и Midjourney
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,868 ▲10714.48 ▲0.181.64 ▲0.0344.98 ▲2.68
Dashboard /wp-admin2,262 ▲565.96 ▲1.06124.62 ▲13.7248.17 ▲4.04
Posts /wp-admin/edit.php2,159 ▲562.68 ▲0.6242.56 ▲3.4933.41 ▲0.27
Add New Post /wp-admin/post-new.php1,830 ▲29821.01 ▼2.24720.02 ▲19.1576.47 ▲16.69
Media Library /wp-admin/upload.php1,459 ▲625.19 ▲0.99109.95 ▲9.5347.09 ▲2.00

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-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/ai-wp-writer/tpl/workspace.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ai-wp-writer/class.assistant.php:10
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/ai-wp-writer/tpl/options.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: articles, ai, gpt 35, posts, writer...

ai-wp-writer/index.php 85% from 13 tests

The principal PHP file in "AI WP Writer - автонаполнение сайта ChatGPT и Midjourney" v. 3.4.2 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("ai-wp-writer.php" instead of "index.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 160 characters long)

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 plugin1,674 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity40.00
▷ Minimum class complexity40.00
▷ Maximum class complexity40.00
Average method complexity2.39
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods2482.76%
▷ Protected methods00.00%
▷ Private methods517.24%
▷ Named functions00.00%
▷ Anonymous functions1100.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/doc.png1.52KB0.66KB▼ 56.24%