10% behzadrohizadeh-telegram-login

Code Review | Telegram Login And Register

WordPress plugin Telegram Login And Register scored 10% from 54 tests.

About plugin

  • Plugin page: behzadrohizadeh-t...
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.4
  • WordPress version: 6.3.1
  • First release: Feb 10, 2018
  • Latest release: Mar 11, 2018
  • Number of updates: 11
  • Update frequency: every 2.6 days
  • Top authors: behzadrohizadeh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,640 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • Install procedure had errors
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method wp\telegram\login\Tg_Login_Register\Tg_Login_Register::tglr_BehzadRohizadeh_activate_pliugin() should not be called statically

Server metrics [RAM: ▲0.08MB] [CPU: ▼3.63ms] Passed 4 tests

Server-side resources used by Telegram Login And Register
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0837.54 ▼3.73
Dashboard /wp-admin3.38 ▲0.0847.76 ▼4.22
Posts /wp-admin/edit.php3.43 ▲0.0747.13 ▲2.18
Add New Post /wp-admin/post-new.php5.96 ▲0.0798.74 ▼7.00
Media Library /wp-admin/upload.php3.30 ▲0.0732.59 ▲0.45

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Telegram Login And Register
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7013.23 ▼1.461.81 ▲0.0944.03 ▼4.65
Dashboard /wp-admin2,216 ▲485.85 ▲0.90101.56 ▼6.7441.74 ▲1.92
Posts /wp-admin/edit.php2,102 ▲131.99 ▼0.0437.17 ▲1.6732.96 ▼3.55
Add New Post /wp-admin/post-new.php1,550 ▲2223.14 ▲4.69677.68 ▲70.2061.38 ▲4.88
Media Library /wp-admin/upload.php1,404 ▲224.22 ▲0.0293.42 ▼8.1841.04 ▼4.05

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

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)
Even though no errors were found, this is by no means an exhaustive test

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 trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp\\telegram\\login\\Tg_Login_Register\\plugins_url() in wp-content/plugins/behzadrohizadeh-telegram-login/wp-telegram-login.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (Login Button), #2 (Plugin Menue), #3 (Plugin Setting (Farsi Language)), #4 (Plugin Setting (English language))
Please take inspiration from this readme.txt

behzadrohizadeh-telegram-login/wp-telegram-login.php 92% from 13 tests

"Telegram Login And Register" version 1.3.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("behzadrohizadeh-telegram-login.php" instead of "wp-telegram-login.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin349 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP32433283
PO File1467266

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity33.00
▷ Minimum class complexity33.00
▷ Maximum class complexity33.00
Average method complexity3.91
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
4 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png4.44KB2.18KB▼ 50.85%
screenshot-4.png33.02KB12.43KB▼ 62.36%
screenshot-2.png1.78KB0.79KB▼ 55.61%
screenshot-3.png32.27KB12.22KB▼ 62.13%