74% onlim

Code Review | Onlim Livechat and Chatbot Integration

WordPress plugin Onlim Livechat and Chatbot Integration scored74%from 54 tests.

About plugin

  • Plugin page: onlim
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.5
  • WordPress version: 6.3.1
  • First release: Dec 4, 2020
  • Latest release: Dec 4, 2020
  • Number of updates: 9
  • Update frequency: every 25.1 days
  • Top authors: phlegx (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /443 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.18MB] [CPU: ▼10.76ms] Passed 4 tests

Server-side resources used by Onlim Livechat and Chatbot Integration
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0844.39 ▼24.15
Dashboard /wp-admin3.50 ▲0.1954.13 ▲1.80
Posts /wp-admin/edit.php3.59 ▲0.2454.39 ▲3.14
Add New Post /wp-admin/post-new.php6.21 ▲0.3284.20 ▼17.79
Media Library /wp-admin/upload.php3.44 ▲0.2139.03 ▼2.89
Onlim /wp-admin/admin.php?page=onlim3.3633.82
Settings /wp-admin/admin.php?page=onlim_settings3.3644.79

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Onlim Livechat and Chatbot Integration
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲4714.73 ▲0.361.79 ▼0.8644.06 ▼19.20
Dashboard /wp-admin2,242 ▲625.58 ▼0.0888.84 ▼10.2140.02 ▼2.88
Posts /wp-admin/edit.php2,144 ▲442.02 ▲0.0440.48 ▼1.1935.89 ▼1.29
Add New Post /wp-admin/post-new.php1,558 ▲3223.25 ▲1.90637.42 ▼110.2550.41 ▼4.17
Media Library /wp-admin/upload.php1,447 ▲474.21 ▲0.07100.00 ▼9.5844.55 ▼8.36
Onlim /wp-admin/admin.php?page=onlim9081.9924.4328.46
Settings /wp-admin/admin.php?page=onlim_settings9062.1622.4230.80

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 without warnings or errors
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, cannot access private method Onlim::deactivate()
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • onlim_version

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/onlim/includes/shortcodes/onlim-widget.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: There are too many tags (12 tag instead of maximum 10)
You can take inspiration from this readme.txt

onlim/onlim.php Passed 13 tests

The primary PHP file in "Onlim Livechat and Chatbot Integration" version 1.0.0 is used by WordPress to initiate all plugin functionality
87 characters long description:
Onlim Livechat and Chatbot plugin. Awesome and free Livechat in Wordpress for everyone.

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 plugin856 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP11198402662
PO File1252895
CSS40065
SVG10134

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity14.60
▷ Minimum class complexity7.00
▷ Maximum class complexity22.00
Average method complexity2.21
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
Methods56
▷ Static methods1933.93%
▷ Public methods3969.64%
▷ Protected methods35.36%
▷ Private methods1425.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
There were not PNG files found in your plugin