78% chatbot-widget-opulent

Code Review | Chatbot Widget for Opulent

WordPress plugin Chatbot Widget for Opulent scored78%from 54 tests.

About plugin

  • Plugin page: chatbot-widget-op...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.2.2
  • WordPress version: 6.3.1
  • First release: Sep 2, 2019
  • Latest release: Apr 29, 2021
  • Number of updates: 10
  • Update frequency: every 60.8 days
  • Top authors: shaikhabdulqadir (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /576 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.01MB] [CPU: ▼7.81ms] Passed 4 tests

This is a short check of server-side resources used by Chatbot Widget for Opulent
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.45 ▼5.80
Dashboard /wp-admin3.31 ▲0.0145.55 ▼12.04
Posts /wp-admin/edit.php3.36 ▲0.0144.70 ▼2.24
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.87 ▼11.05
Media Library /wp-admin/upload.php3.24 ▲0.0133.06 ▼2.34

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Chatbot Widget for Opulent
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲10713.53 ▼0.741.90 ▲0.1039.04 ▼2.16
Dashboard /wp-admin2,217 ▲345.83 ▲0.9299.56 ▼10.3739.14 ▼5.01
Posts /wp-admin/edit.php2,103 ▲172.06 ▲0.0537.82 ▲3.7632.66 ▼2.69
Add New Post /wp-admin/post-new.php1,552 ▲1718.19 ▼5.14599.29 ▼70.0362.03 ▲12.20
Media Library /wp-admin/upload.php1,405 ▲234.16 ▼0.0294.79 ▼4.1341.12 ▼3.37

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

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
The smoke test was a success, however most plugin functionality was not tested

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/chatbot-widget-opulent/opulent-chatbot.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/chatbot-widget-opulent/api_key.php:39

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes: You can take inspiration from this readme.txt

chatbot-widget-opulent/opulent-chatbot.php 85% from 13 tests

Analyzing the main PHP file in "Chatbot Widget for Opulent" version 1.2
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("chatbot-widget-opulent.php" instead of "opulent-chatbot.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin2,132 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
SVG3022,020
PHP4243992
CSS10120

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
4 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/logo1.png13.17KB4.51KB▼ 65.73%
images/key_transparent.png6.09KB2.85KB▼ 53.13%
images/opulent_logo.png13.43KB5.47KB▼ 59.29%
images/logo.png3.02KB0.43KB▼ 85.63%