79% all-in-one-ai

Code Review | All-in-One AI

WordPress plugin All-in-One AI scored79%from 54 tests.

About plugin

  • Plugin page: all-in-one-ai
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Jun 1, 2023
  • Latest release: Jun 1, 2023
  • Number of updates: 5
  • Update frequency: every 2.2 days
  • Top authors: andbalashov (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /243 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼3.03ms] Passed 4 tests

Server-side resources used by All-in-One AI
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0941.04 ▲1.80
Dashboard /wp-admin3.39 ▲0.0949.11 ▼1.48
Posts /wp-admin/edit.php3.50 ▲0.1547.36 ▼0.79
Add New Post /wp-admin/post-new.php5.98 ▲0.0986.89 ▼9.62
Media Library /wp-admin/upload.php3.31 ▲0.0935.38 ▼0.24
All-in-One AI /wp-admin/options-general.php?page=all-in-one-ai3.2830.20

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by All-in-One AI
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6014.48 ▼0.271.73 ▲0.0144.16 ▲1.40
Dashboard /wp-admin2,212 ▲274.90 ▼0.96111.99 ▲0.6942.85 ▲0.59
Posts /wp-admin/edit.php2,095 ▲62.06 ▲0.0736.22 ▼0.1236.23 ▲2.67
Add New Post /wp-admin/post-new.php6,242 ▲4,70926.07 ▲2.92934.89 ▲246.2453.37 ▼2.14
Media Library /wp-admin/upload.php1,394 ▲124.21 ▲0.02100.57 ▲0.3746.24 ▼0.10
All-in-One AI /wp-admin/options-general.php?page=all-in-one-ai7952.0327.5730.15

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/all-in-one-ai/all-in-one-ai.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/all-in-one-ai/includes/functions.php:43
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/all-in-one-ai/admin/admin-page.php:5

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 Passed 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
5 plugin tags: chatbot, gpt, chatgpt, openai, ai

all-in-one-ai/all-in-one-ai.php Passed 13 tests

"All-in-One AI" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
126 characters long description:
All-in-One AI is a powerful WordPress plugin that integrates artificial intelligence capabilities into your WordPress website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin2,096 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP162856581,205
Markdown33210758
JSON300120
CSS12012
SVG1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity19.17
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity2.14
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods97
▷ Static methods3637.11%
▷ Public methods9294.85%
▷ Protected methods00.00%
▷ Private methods55.15%
Functions15
▷ Named functions1386.67%
▷ Anonymous functions213.33%
Constants4
▷ Global constants125.00%
▷ Class constants375.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin