72% telsender

Code Review | TelSender - Сontact form 7, Events, Wpforms and wooccommerce to telegram bot

WordPress plugin TelSender - Сontact form 7, Events, Wpforms and wooccommerce to telegram bot scored72%from 54 tests.

About plugin

  • Plugin page: telsender
  • Plugin version: 1.14.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.3
  • WordPress version: 6.3.1
  • First release: Aug 31, 2019
  • Latest release: Oct 14, 2023
  • Number of updates: 91
  • Update frequency: every 16.6 days
  • Top authors: pechenki (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

3,000+ active /19,482 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.21MB] [CPU: ▲5.66ms] Passed 4 tests

A check of server-side resources used by TelSender - Сontact form 7, Events, Wpforms and wooccommerce to telegram bot
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2244.59 ▲4.99
Dashboard /wp-admin3.51 ▲0.2148.28 ▲4.63
Posts /wp-admin/edit.php3.63 ▲0.2751.95 ▲3.18
Add New Post /wp-admin/post-new.php6.09 ▲0.20100.08 ▲13.95
Media Library /wp-admin/upload.php3.44 ▲0.2044.19 ▲9.84
TelSender 🇺🇦 /wp-admin/admin.php?page=telsender3.6351.47
Help 🆘 /wp-admin/admin.php?page=telsender-help3.4139.84
Events /wp-admin/admin.php?page=telsender-event3.4236.80

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

TelSender - Сontact form 7, Events, Wpforms and wooccommerce to telegram bot: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5814.45 ▼0.051.72 ▼0.2344.31 ▼0.93
Dashboard /wp-admin2,228 ▲485.60 ▼0.0380.45 ▼2.3078.49 ▲37.55
Posts /wp-admin/edit.php2,133 ▲331.96 ▼0.0039.10 ▲4.6339.86 ▲2.67
Add New Post /wp-admin/post-new.php1,584 ▲5618.24 ▼4.96696.30 ▲54.5453.03 ▼1.70
Media Library /wp-admin/upload.php1,433 ▲364.16 ▼0.0892.70 ▼17.7884.44 ▲37.51
TelSender 🇺🇦 /wp-admin/admin.php?page=telsender1,2284.0690.3863.46
Help 🆘 /wp-admin/admin.php?page=telsender-help1,6731.8926.0289.32
Events /wp-admin/admin.php?page=telsender-event1,1212.0530.9135.69

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
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following items
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/telsender/template/list-shortcode-html.php
    • > /wp-content/plugins/telsender/template/help.php
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'log' not found in wp-content/plugins/telsender/template/log.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/telsender/template/woocommerce.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/telsender/assets/template/settings.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/telsender/template/contact-form.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/telsender/template/wp-forms.php:3
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/telsender/template/help-page.php:10

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=telsender-help
    • > Javascript (severe) in unknown
    /wp-content/plugins/telsender/js/ajax.js?ver=6.3.1 87:22 Uncaught TypeError: Cannot read properties of null (reading 'outerHTML')

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4 in telsender/assets to your readme.txt
You can take inspiration from this readme.txt

telsender/index.php 92% from 13 tests

Analyzing the main PHP file in "TelSender - Сontact form 7, Events, Wpforms and wooccommerce to telegram bot" version 1.14.8
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("telsender.php" instead of "index.php")

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
No dangerous file extensions were detected3,225 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
PHP174503361,398
CSS7174461,313
PO File39897265
JavaScript34411146
Markdown1430103

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity23.50
▷ Minimum class complexity3.00
▷ Maximum class complexity69.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods57
▷ Static methods47.02%
▷ Public methods4477.19%
▷ Protected methods58.77%
▷ Private methods814.04%
Functions10
▷ Named functions110.00%
▷ Anonymous functions990.00%
Constants4
▷ Global constants4100.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
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
telsebder.png28.64KB13.32KB▼ 53.48%
assets/icon-plugin.png1.83KB0.91KB▼ 50.08%
template/switch.png0.95KB1.02KB0.00%