84% botpenguinbot

Code Review |

WordPress plugin scored84%from 54 tests.

About plugin

  • Plugin page: botpenguinbot
  • Plugin version: 1.4
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-6.2
  • WordPress version: 6.3.1
  • First release: Sep 27, 2019
  • Latest release: Apr 24, 2023
  • Number of updates: 8
  • Update frequency: every 0.6 days
  • Top authors: botpenguinbot (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

400+ active /7,439 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.24 ▲3.17
Dashboard /wp-admin3.31 ▲0.0145.04 ▼4.30
Posts /wp-admin/edit.php3.36 ▲0.0139.50 ▼8.52
Add New Post /wp-admin/post-new.php5.89 ▲0.0181.60 ▼19.99
Media Library /wp-admin/upload.php3.23 ▲0.0133.72 ▲4.57

Server storage [IO: ▲0.03MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,875 ▲12914.49 ▲0.1033.86 ▲32.2474.95 ▲33.40
Dashboard /wp-admin2,225 ▲404.85 ▼0.0398.24 ▼3.4139.50 ▼2.16
Posts /wp-admin/edit.php2,105 ▲161.97 ▼0.0236.67 ▲1.6132.97 ▼2.59
Add New Post /wp-admin/post-new.php1,546 ▲3223.20 ▲5.60629.59 ▼5.3262.05 ▲9.83
Media Library /wp-admin/upload.php1,404 ▲164.20 ▲0.0298.43 ▲4.2342.36 ▼4.17

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

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 | 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
Please fix the following
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/botpenguinbot/botpenguin.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/botpenguinbot/options.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/botpenguinbot/sidebar.php:4

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: live chat, chatbot, chatbotmaker, ai, chatgpt...

botpenguinbot/botpenguin.php 85% from 13 tests

"" version 1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 202 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("botpenguinbot.php" instead of "botpenguin.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
No dangerous file extensions were detected132 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP31814132

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.07
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%
Functions5
▷ Named functions5100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/logo.png1.62KB1.70KB0.00%