89% tg-connector

Code Review | Easy Telegram Connector

WordPress plugin Easy Telegram Connector scored89%from 54 tests.

About plugin

  • Plugin page: tg-connector
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-4.9
  • WordPress version: 6.3.1
  • First release: Aug 31, 2018
  • Latest release: Aug 31, 2018
  • Number of updates: 3
  • Update frequency: every 3.0 days
  • Top authors: tessellastudio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /626 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▲1.44ms] Passed 4 tests

Server-side resources used by Easy Telegram Connector
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0642.86 ▲3.00
Dashboard /wp-admin3.37 ▲0.0746.18 ▲2.48
Posts /wp-admin/edit.php3.48 ▲0.1345.28 ▲0.73
Add New Post /wp-admin/post-new.php5.95 ▲0.0690.82 ▼0.46
Media Library /wp-admin/upload.php3.29 ▲0.0640.01 ▲5.27
Telegram Connector /wp-admin/options-general.php?page=tg-settings-admin3.2630.90

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

Input-output and database impact of this plugin
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
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Easy Telegram Connector
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4713.29 ▼1.104.35 ▲2.3243.72 ▲0.61
Dashboard /wp-admin2,213 ▲245.90 ▲0.95107.15 ▼15.7642.70 ▲2.95
Posts /wp-admin/edit.php2,093 ▲42.06 ▼0.0039.06 ▲3.8339.38 ▲4.97
Add New Post /wp-admin/post-new.php1,547 ▲1418.22 ▼5.04606.43 ▼83.6457.12 ▲3.88
Media Library /wp-admin/upload.php1,386 ▼24.22 ▲0.04104.46 ▼8.1346.72 ▼0.13
Telegram Connector /wp-admin/options-general.php?page=tg-settings-admin8342.0223.7625.35

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, 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 no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: proxy, telegram, cf7

tg-connector/easy-telegram-connector.php 85% from 13 tests

The principal PHP file in "Easy Telegram Connector" v. 1.0.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("tg-connector.php" instead of "easy-telegram-connector.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
There were no executable files found in this plugin267 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP47339267

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity5.00
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
PNG images were not found in this plugin