83% ai-bot

Code Review | wpaibot - WordPress AI Writer - Write engaging content with AI

WordPress plugin wpaibot - WordPress AI Writer - Write engaging content with AI scored83%from 54 tests.

About plugin

  • Plugin page: ai-bot
  • Plugin version: 1.2.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.2
  • WordPress version: 6.3.1
  • First release: Mar 7, 2023
  • Latest release: Apr 21, 2023
  • Number of updates: 13
  • Update frequency: every 3.5 days
  • Top authors: wpaibot (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /599 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.00MB] [CPU: ▼8.42ms] Passed 4 tests

A check of server-side resources used by wpaibot - WordPress AI Writer - Write engaging content with AI
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.67 ▼3.73
Dashboard /wp-admin3.31 ▼0.0347.89 ▼13.81
Posts /wp-admin/edit.php3.37 ▲0.0147.72 ▲5.81
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.40 ▼17.28
Media Library /wp-admin/upload.php3.24 ▲0.0134.12 ▲1.16
AI Bot Settings /wp-admin/options-general.php?page=aibot-settings3.2029.95

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

wpaibot - WordPress AI Writer - Write engaging content with AI: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.16 ▼1.221.74 ▲0.0641.15 ▼3.80
Dashboard /wp-admin2,210 ▲225.89 ▲0.99105.71 ▼12.7640.15 ▼2.91
Posts /wp-admin/edit.php2,096 ▲72.05 ▲0.0437.93 ▼2.4834.74 ▲0.46
Add New Post /wp-admin/post-new.php6,212 ▲4,68219.50 ▲1.21928.29 ▲325.0954.72 ▼1.62
Media Library /wp-admin/upload.php1,389 ▲14.16 ▼0.0495.15 ▲4.1641.63 ▲0.48
AI Bot Settings /wp-admin/options-general.php?page=aibot-settings7802.0324.1929.98

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

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
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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/ai-bot/plugin.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 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
Attributes that require attention:
  • Screenshots: Please describe screenshot #1 in ai-bot/assets to your readme.txt
The official readme.txt is a good inspiration

ai-bot/plugin.php 77% from 13 tests

"wpaibot - WordPress AI Writer - Write engaging content with AI" version 1.2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("ai-bot.php" instead of "plugin.php")
  • Requires at least: The required version number must match the one declared in readme.txt ("5.0" instead of "6.0")
  • Requires PHP: The required version number must match the one declared in readme.txt ("7.2" instead of "7.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected212 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP44559211
JavaScript1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected