78% wpcontentbot

Code Review | WP Content Bot

WordPress plugin WP Content Bot scored78%from 54 tests.

About plugin

  • Plugin page: wpcontentbot
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 16, 2023
  • Latest release: Feb 17, 2023
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: toastwebsites (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /221 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.61ms] Passed 4 tests

This is a short check of server-side resources used by WP Content Bot
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0043.72 ▼1.64
Dashboard /wp-admin3.31 ▲0.0156.79 ▼3.91
Posts /wp-admin/edit.php3.36 ▲0.0155.15 ▼4.09
Add New Post /wp-admin/post-new.php5.89 ▲0.0198.86 ▼4.81
Media Library /wp-admin/upload.php3.23 ▲0.0041.51 ▲0.24

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

WP Content Bot: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲5413.66 ▼0.724.74 ▲1.4043.24 ▼3.99
Dashboard /wp-admin2,216 ▲285.85 ▼0.18112.23 ▲6.7580.80 ▲37.92
Posts /wp-admin/edit.php2,117 ▲252.00 ▼0.0338.86 ▼0.7633.26 ▼5.38
Add New Post /wp-admin/post-new.php1,691 ▲15822.27 ▼1.02743.72 ▲38.0373.40 ▲22.66
Media Library /wp-admin/upload.php1,407 ▲194.25 ▲0.0499.62 ▼11.0567.79 ▲23.19

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/wpcontentbot/templates/previous.php
    • > /wp-content/plugins/wpcontentbot/templates/generate.php
  • 18× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpcontentbot/includes/setup.php:11
    • > PHP Warning
      Use of undefined constant WPCB_DIR_URL - assumed 'WPCB_DIR_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpcontentbot/templates/generate.php on line 40
    • > PHP Warning
      Use of undefined constant WPCB_DIR_URL - assumed 'WPCB_DIR_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpcontentbot/templates/generate.php on line 32
    • > PHP Warning
      Use of undefined constant WPCB_DIR_URL - assumed 'WPCB_DIR_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpcontentbot/templates/generate.php on line 51
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpcontentbot/includes/functions.php:33
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wpcontentbot/templates/account.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpcontentbot/includes/enqueue.php:29
    • > PHP Warning
      Use of undefined constant WPCB_DIR_URL - assumed 'WPCB_DIR_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpcontentbot/templates/generate.php on line 49
    • > PHP Warning
      Use of undefined constant WPCB_DIR_URL - assumed 'WPCB_DIR_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpcontentbot/templates/account/signup.php on line 11
    • > PHP Warning
      Use of undefined constant WPCB_DIR_URL - assumed 'WPCB_DIR_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpcontentbot/templates/generate.php on line 10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: ai, content generation

wpcontentbot/wpcontentbot.php 77% from 13 tests

"WP Content Bot" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Requires PHP: Required version must match the one declared in readme.txt ("7.0" instead of "7.2")
  • Description: Please keep the plugin description shorter than 140 characters (currently 151 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
Success! There were no dangerous files found in this plugin633 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP116452258
JavaScript54914215
CSS1271299
SVG70161

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
There were not PNG files found in your plugin