73% justasq

Code Review | JustAsq - Chatbot Powered Live Chat

WordPress plugin JustAsq - Chatbot Powered Live Chat scored73%from 54 tests.

About plugin

  • Plugin page: justasq
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.7.3
  • WordPress version: 6.3.1
  • First release: Apr 6, 2017
  • Latest release: Apr 10, 2017
  • Number of updates: 7
  • Update frequency: every 0.6 days
  • Top authors: riyadhalnur (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /630 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼1.90ms] Passed 4 tests

An overview of server-side resources used by JustAsq - Chatbot Powered Live Chat
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0738.43 ▼5.12
Dashboard /wp-admin3.36 ▲0.0643.87 ▼2.50
Posts /wp-admin/edit.php3.48 ▲0.1245.07 ▼4.00
Add New Post /wp-admin/post-new.php5.96 ▲0.0891.22 ▲5.78
Media Library /wp-admin/upload.php3.29 ▲0.0637.30 ▲4.04
JustAsq /wp-admin/options-general.php?page=justasq3.2635.17

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for JustAsq - Chatbot Powered Live Chat
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲15613.58 ▼0.788.16 ▲5.6742.89 ▲1.91
Dashboard /wp-admin2,214 ▲235.84 ▼0.0699.43 ▼13.5338.44 ▼4.61
Posts /wp-admin/edit.php2,097 ▲82.03 ▲0.0140.05 ▲5.0236.41 ▲2.30
Add New Post /wp-admin/post-new.php1,522 ▲323.40 ▲0.36604.62 ▼65.8161.40 ▲11.45
Media Library /wp-admin/upload.php1,390 ▲24.20 ▼0.0094.26 ▼3.9940.16 ▼4.24
JustAsq /wp-admin/options-general.php?page=justasq8492.0327.5126.77

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=justasq
    • > Notice in wp-content/plugins/justasq/admin/partials/justasq-admin-display.php+24
    Trying to access array offset on value of type bool

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/justasq/public/partials/justasq-public-display.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/justasq/admin/partials/justasq-admin-display.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: There are too many tags (11 tag instead of maximum 10)
The official readme.txt is a good inspiration

justasq/justasq.php Passed 13 tests

The entry point to "JustAsq - Chatbot Powered Live Chat" version 1.0.1 is a PHP file that has certain tags in its header comment area
91 characters long description:
This plugin for WordPress helps users intergrate JustAsq into their WordPress powered site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin259 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP12120518237
JavaScript265420
Markdown1102
CSS2080

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.24
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods29
▷ Static methods26.90%
▷ Public methods2482.76%
▷ Protected methods00.00%
▷ Private methods517.24%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin