84% ringotel-webchat

Code Review | Ringotel Webchat Plugin

WordPress plugin Ringotel Webchat Plugin scored84%from 54 tests.

About plugin

  • Plugin page: ringotel-webchat
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.9
  • WordPress version: 6.3.1
  • First release: Jan 10, 2019
  • Latest release: Jan 10, 2019
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: arroinua (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /476 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.36MB] [CPU: ▼16.44ms] Passed 4 tests

Analyzing server-side resources used by Ringotel Webchat Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.445.14 ▼39.81
Dashboard /wp-admin3.32 ▼0.0347.64 ▼14.98
Posts /wp-admin/edit.php3.37 ▲0.0146.55 ▼6.10
Add New Post /wp-admin/post-new.php5.90 ▲0.0194.39 ▼4.85
Media Library /wp-admin/upload.php3.24 ▲0.0139.09 ▼2.07

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Ringotel Webchat Plugin: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,893 ▲14713.94 ▼0.508.49 ▲6.6847.20 ▲3.53
Dashboard /wp-admin2,207 ▲195.83 ▲0.95137.92 ▲31.1648.08 ▲7.47
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0338.28 ▼1.4334.81 ▼0.55
Add New Post /wp-admin/post-new.php1,543 ▲2423.27 ▲0.08668.18 ▲34.9365.63 ▲15.23
Media Library /wp-admin/upload.php1,392 ▲14.30 ▲0.0992.94 ▼5.2344.73 ▲0.29
Ringotel Webchat /wp-admin/options-general.php?page= ringotel-webchat7962.0530.2133.58

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/ringotel-webchat/ringotel-webchat.php

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 Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: livechat, customer chat, messenger, livechat wordpress plugin, webchat

ringotel-webchat/ringotel-webchat.php Passed 13 tests

Analyzing the main PHP file in "Ringotel Webchat Plugin" version 1.0.0
93 characters long description:
Add a Ringotel webchat widget to your website and talk to your website visitors in real-time.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin121 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2351695
JavaScript17026

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods10100.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There are no PNG files in this plugin