84% online-consultant

Code Review | Online-Consultant, Chat For Your Website

WordPress plugin Online-Consultant, Chat For Your Website scored84%from 54 tests.

About plugin

  • Plugin page: online-consultant
  • Plugin version: 0.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.5.1
  • WordPress version: 6.3.1
  • First release: Nov 30, 2020
  • Latest release: Jan 29, 2021
  • Number of updates: 7
  • Update frequency: every 10.1 days
  • Top authors: saint739 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /973 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.00MB] [CPU: ▼2.81ms] Passed 4 tests

A check of server-side resources used by Online-Consultant, Chat For Your Website
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.09 ▼6.47
Dashboard /wp-admin3.31 ▲0.0147.66 ▲0.18
Posts /wp-admin/edit.php3.36 ▲0.0146.78 ▲1.71
Add New Post /wp-admin/post-new.php5.89 ▲0.0190.26 ▼5.85
Media Library /wp-admin/upload.php3.23 ▲0.0037.28 ▲0.92

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Online-Consultant, Chat For Your Website
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,303 ▲55722.11 ▲7.55185.67 ▲183.7853.96 ▲8.93
Dashboard /wp-admin2,215 ▲245.94 ▲1.0697.84 ▼6.8539.03 ▼4.92
Posts /wp-admin/edit.php2,104 ▲151.99 ▲0.0039.38 ▲4.2335.37 ▼2.03
Add New Post /wp-admin/post-new.php1,544 ▲2523.12 ▲0.14658.25 ▲60.8655.04 ▼23.74
Media Library /wp-admin/upload.php1,400 ▲184.24 ▲0.04104.03 ▲7.6744.45 ▲1.10

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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 7 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • onlineconsultantbiz_icode
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/online-consultant/online-consultant.php:10

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)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: chat plugin, chat widget, -, wordpress

online-consultant/online-consultant.php Passed 13 tests

The entry point to "Online-Consultant, Chat For Your Website" version 0.1.4 is a PHP file that has certain tags in its header comment area
65 characters long description:
Онлайн косультант для вашего сайта.

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
Good job! No executable or dangerous file extensions detected62 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP17862

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin