89% telefinity-webrtc-sip-gateway

Code Review | TeleFinity WebRTC to SIP Gateway

WordPress plugin TeleFinity WebRTC to SIP Gateway scored89%from 54 tests.

About plugin

  • Plugin page: telefinity-webrtc...
  • Plugin version: 1.1.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.1
  • WordPress version: 6.3.1
  • First release: Apr 23, 2021
  • Latest release: Oct 26, 2022
  • Number of updates: 12
  • Update frequency: every 46.1 days
  • Top authors: telefinity (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,337 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.21ms] Passed 4 tests

Server-side resources used by TeleFinity WebRTC to SIP Gateway
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.14 ▼5.24
Dashboard /wp-admin3.35 ▲0.0448.98 ▼2.86
Posts /wp-admin/edit.php3.46 ▲0.1046.25 ▼3.11
Add New Post /wp-admin/post-new.php5.93 ▲0.0489.58 ▼5.64
Media Library /wp-admin/upload.php3.27 ▲0.0441.11 ▲4.85
TeleFinity WebRTC-SIP Gateway /wp-admin/options-general.php?page=tfw-telefinity-webrtc-sip-gateway3.2434.24

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for TeleFinity WebRTC to SIP Gateway
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.34 ▲0.071.54 ▼0.2641.66 ▼3.56
Dashboard /wp-admin2,199 ▲255.55 ▲0.0284.26 ▼13.5737.85 ▼5.73
Posts /wp-admin/edit.php2,104 ▲71.97 ▲0.0236.25 ▼2.5936.19 ▼0.14
Add New Post /wp-admin/post-new.php1,529 ▲123.27 ▲0.24664.18 ▼48.6354.56 ▲6.04
Media Library /wp-admin/upload.php1,407 ▲74.12 ▼0.06114.99 ▲11.4649.43 ▲3.03
TeleFinity WebRTC-SIP Gateway /wp-admin/options-general.php?page=tfw-telefinity-webrtc-sip-gateway8091.9928.2929.71

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: tfwebrtc, phone, call, voip

telefinity-webrtc-sip-gateway/telefinity-webrtc-sip-gateway.php 85% from 13 tests

This is the main PHP file of "TeleFinity WebRTC to SIP Gateway" version 1.1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 198 characters long)
  • Requires at least: Required version does not match the one declared in readme.txt ("4.9" instead of "5.3")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin185 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP1270353178
JavaScript1337

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods16
▷ Static methods16.25%
▷ Public methods1275.00%
▷ Protected methods00.00%
▷ Private methods425.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG images were found in this plugin