83% ai-auto-tool

Code Review | Ai Auto Tool Content Writing Assistant (Bard Writer, ChatGPT ) All in One

WordPress plugin Ai Auto Tool Content Writing Assistant (Bard Writer, ChatGPT ) All in One scored83%from 54 tests.

About plugin

  • Plugin page: ai-auto-tool
  • Plugin version: 1.6.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4.2
  • WordPress version: 6.3.1
  • First release: May 20, 2023
  • Latest release: Dec 2, 2023
  • Number of updates: 105
  • Update frequency: every 1.9 days
  • Top authors: aitool (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

90+ active /1,280 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.73MB] [CPU: ▼6.27ms] Passed 4 tests

Server-side resources used by Ai Auto Tool Content Writing Assistant (Bard Writer, ChatGPT ) All in One
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.91 ▲1.4549.09 ▲4.81
Dashboard /wp-admin4.77 ▲1.4270.15 ▲0.03
Posts /wp-admin/edit.php4.80 ▲1.4461.60 ▲15.36
Add New Post /wp-admin/post-new.php4.57 ▼1.3150.64 ▼45.26
Media Library /wp-admin/upload.php4.61 ▲1.3857.75 ▲21.34
AI Auto Tool /wp-admin/admin.php?page=ai_auto_tool4.5847.60
AI Single Post /wp-admin/admin.php?page=ai_single_post4.6452.26
Schedule AI Post /wp-admin/admin.php?page=add-post-draft4.5848.04
Integrations /wp-admin/admin.php?page=aiautotool_integrations4.5744.39
Canonical List /wp-admin/admin.php?page=aiautotool_canonical4.5743.95
301 Redirect /wp-admin/admin.php?page=aiautotool_301_edirect4.5746.10
AI Post /wp-admin/edit.php?page=ai_post4.6451.91

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 67 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ai Auto Tool Content Writing Assistant (Bard Writer, ChatGPT ) All in One
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,917 ▲17013.67 ▼1.002.02 ▲0.3537.18 ▼11.13
Dashboard /wp-admin2,319 ▲1415.99 ▲0.41101.87 ▼10.8849.62 ▲5.54
Posts /wp-admin/edit.php2,256 ▲1592.51 ▲0.4948.89 ▲13.8238.12 ▲5.99
Add New Post /wp-admin/post-new.php2,289 ▲76324.33 ▲0.96700.05 ▲7.7644.23 ▼7.80
Media Library /wp-admin/upload.php1,528 ▲1284.63 ▲0.48107.88 ▼7.1144.03 ▼3.72
AI Auto Tool /wp-admin/admin.php?page=ai_auto_tool2,5032.3842.4661.39
AI Single Post /wp-admin/admin.php?page=ai_single_post2,9457.22170.55147.91
Schedule AI Post /wp-admin/admin.php?page=add-post-draft2,0842.4147.8047.92
Integrations /wp-admin/admin.php?page=aiautotool_integrations1,2522.1041.9433.57
Canonical List /wp-admin/admin.php?page=aiautotool_canonical1,3472.2239.5542.69
301 Redirect /wp-admin/admin.php?page=aiautotool_301_edirect9772.0942.8932.49
AI Post /wp-admin/edit.php?page=ai_post2,9447.34158.83123.35

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'rendersetting' not found in wp-content/plugins/ai-auto-tool/inc/auto-ex-link.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'rendersetting' not found in wp-content/plugins/ai-auto-tool/inc/singleai.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'rendersetting' not found in wp-content/plugins/ai-auto-tool/inc/canonical.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'rendersetting' not found in wp-content/plugins/ai-auto-tool/inc/scan.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'rendersetting' not found in wp-content/plugins/ai-auto-tool/inc/post-exporter.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'rendersetting' not found in wp-content/plugins/ai-auto-tool/inc/install-plugin.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'rendersetting' not found in wp-content/plugins/ai-auto-tool/inc/ssl.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'rendersetting' not found in wp-content/plugins/ai-auto-tool/inc/aiautotool_tool_extra_config.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ai-auto-tool/lib/config_extra.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
  • Screenshots: These screenshots need descriptions #10, #11, #2, #3, #4, #5, #6, #7, #8, #9 in ai-auto-tool/assets to your readme.txt
You can look at the official readme.txt

ai-auto-tool/Ai-Auto-Tool.php 85% from 13 tests

The main PHP file in "Ai Auto Tool Content Writing Assistant (Bard Writer, ChatGPT ) All in One" ver. 1.6.6 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ai-auto-tool.php" instead of "Ai-Auto-Tool.php")
  • Plugin Name: Please shorten the plugin name (currently 73 characters long instead of max. 70)

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
No dangerous file extensions were detected12,539 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
PHP181,9032,2665,912
PO File91,1651,3004,077
CSS3166371,339
JavaScript63601501,203
SVG1008

PHP code Passed 2 tests

An short overview of 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.32
Average class complexity39.00
▷ Minimum class complexity1.00
▷ Maximum class complexity230.00
Average method complexity3.46
▷ Minimum method complexity1.00
▷ Maximum method complexity79.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes20
▷ Abstract classes00.00%
▷ Concrete classes20100.00%
▷ Final classes00.00%
Methods309
▷ Static methods165.18%
▷ Public methods21067.96%
▷ Protected methods7724.92%
▷ Private methods227.12%
Functions31
▷ Named functions2890.32%
▷ Anonymous functions39.68%
Constants7
▷ Global constants685.71%
▷ Class constants114.29%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.17MB with 0.13MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/find1.png15.63KB4.37KB▼ 72.02%
images/schedule-post.png162.83KB35.12KB▼ 78.43%