83% rnd-chat-ai-content-generator

Code Review | RND Chat AI - Content Generator

WordPress plugin RND Chat AI - Content Generator scored83%from 54 tests.

About plugin

  • Plugin page: rnd-chat-ai-conte...
  • Plugin version: 0.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 28, 2023
  • Latest release: Feb 28, 2023
  • Number of updates: 7
  • Update frequency: every 0.9 days
  • Top authors: webrndexperts (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /286 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
Install script ran successfully

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

A check of server-side resources used by RND Chat AI - Content Generator
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0635.14 ▼3.42
Dashboard /wp-admin3.36 ▲0.0145.08 ▼14.18
Posts /wp-admin/edit.php3.47 ▲0.1146.94 ▲0.63
Add New Post /wp-admin/post-new.php5.94 ▲0.0586.87 ▼8.08
Media Library /wp-admin/upload.php3.28 ▲0.0535.09 ▲1.63

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by RND Chat AI - Content Generator
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲9114.74 ▲0.371.92 ▲0.1942.24 ▲1.75
Dashboard /wp-admin2,215 ▲275.83 ▼0.0694.13 ▼12.3038.87 ▼5.68
Posts /wp-admin/edit.php2,101 ▲152.18 ▲0.2039.97 ▲2.6834.85 ▲0.63
Add New Post /wp-admin/post-new.php1,529 ▲723.27 ▲0.01630.70 ▼43.3659.54 ▲4.67
Media Library /wp-admin/upload.php1,397 ▲94.20 ▲0.03104.14 ▲4.6245.15 ▼1.71

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/rnd-chat-ai-content-generator/includes/chat_bot_ai.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/rnd-chat-ai-content-generator/viral-content-with-ai.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Add images for these screenshots: #1 (This screenshot showing the API settings), #2 (This screenshot showing different writing tone that plugin support), #3 (This screenshot showing different language that plugin support)
You can look at the official readme.txt

rnd-chat-ai-content-generator/viral-content-with-ai.php 77% from 13 tests

The primary PHP file in "RND Chat AI - Content Generator" version 0.1.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 141 characters long)
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("rnd-chat-ai-content-generator.php" instead of "viral-content-with-ai.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin539 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP55323364
CSS1180111
JavaScript28562
SVG2002

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.16
Average class complexity5.50
▷ Minimum class complexity2.00
▷ Maximum class complexity9.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected