94% insitebot

Code Review | InsiteBot

WordPress plugin InsiteBot scored 94% from 54 tests.

About plugin

  • Plugin page: insitebot
  • Plugin version: 1.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3.2
  • WordPress version: 5.8.1
  • First release: Jan 4, 2020
  • Latest release: Jan 7, 2020
  • Number of updates: 4
  • Update frequency: every 4.5 days
  • Top authors: insitebot (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 285 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼142.91ms] Passed 4 tests

Server-side resources used by InsiteBot
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1239.26 ▲17.44
Dashboard /wp-admin3.07 ▲0.0247.26 ▲0.32
Posts /wp-admin/edit.php3.12 ▲0.0147.09 ▼1.29
Add New Post /wp-admin/post-new.php5.43 ▼0.0098.45 ▼571.74
Media Library /wp-admin/upload.php3.02 ▲0.0236.60 ▲1.08

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for InsiteBot
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,292 ▲69619.19 ▲3.6283.91 ▲71.9875.59 ▲29.69
Dashboard /wp-admin3,005 ▲715.91 ▼0.21146.47 ▼2.56178.69 ▲57.79
Posts /wp-admin/edit.php2,777 ▲382.72 ▼0.0069.01 ▼2.26158.12 ▲58.07
Add New Post /wp-admin/post-new.php1,531 ▼15218.73 ▼0.02388.84 ▼6.70117.90 ▼8.77
Media Library /wp-admin/upload.php1,845 ▲385.05 ▲0.02162.93 ▼14.18167.37 ▲37.85

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/insitebot/insitebot.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Contributors: The plugin contributors field is missing
Please take inspiration from this readme.txt

insitebot/insitebot.php Passed 13 tests

The principal PHP file in "InsiteBot" v. 1.0 is loaded by WordPress automatically on each request
62 characters long description:
AI chatbot for your website, as easy as editing a spreadsheet.

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
Everything looks great! No dangerous files found in this plugin11,384 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
CSS131,12011411,340
PHP151244

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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
Namespaces0
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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