78% wptelegram-login

Code Review | WP Telegram Login & Register

WordPress plugin WP Telegram Login & Register scored78%from 54 tests.

About plugin

  • Plugin page: wptelegram-login
  • Plugin version: 1.10.7
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Apr 16, 2018
  • Latest release: Oct 9, 2023
  • Number of updates: 121
  • Update frequency: every 16.6 days
  • Top authors: manzoorwani.jk (89.26%)wpsocio (11.57%)

Code review

54 tests

User reviews

30 reviews

Install metrics

1,000+ active /37,288 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.54MB] [CPU: ▲2.97ms] Passed 4 tests

An overview of server-side resources used by WP Telegram Login & Register
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.01 ▲0.5543.85 ▲2.74
Dashboard /wp-admin3.86 ▲0.5653.35 ▲4.28
Posts /wp-admin/edit.php3.91 ▲0.5554.16 ▲2.79
Add New Post /wp-admin/post-new.php6.60 ▲0.71548.27 ▲445.93
Media Library /wp-admin/upload.php3.72 ▲0.4943.73 ▲2.09

Server storage [IO: ▲3.52MB] [DB: ▲0.05MB] Passed 3 tests

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

Browser metrics Passed 4 tests

A check of browser resources used by WP Telegram Login & Register
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲8713.39 ▼1.201.76 ▼0.0241.16 ▼4.64
Dashboard /wp-admin2,230 ▲425.02 ▲0.14105.34 ▼8.9841.95 ▲1.68
Posts /wp-admin/edit.php2,113 ▲212.01 ▲0.0140.45 ▼0.0833.29 ▼4.55
Add New Post /wp-admin/post-new.php6,201 ▲4,66418.97 ▼4.12911.40 ▲219.3955.83 ▲0.96
Media Library /wp-admin/upload.php1,409 ▲244.17 ▲0.07111.40 ▲0.4746.93 ▼0.51

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 8 options in the database
    • db_upgraded
    • widget_wptelegram_login_primary
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • wptelegram_login_ver

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wptelegram-login/shared/widgets/Primary.php
  • 12× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/wptelegram-login/includes/restApi/RESTController.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function status_header() in wp-content/plugins/wptelegram-login/uninstall.php:30
    • > PHP Fatal error
      Uncaught Error: Class 'WPTelegram\\Login\\includes\\restApi\\RESTController' not found in wp-content/plugins/wptelegram-login/includes/restApi/SettingsController.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wptelegram-login/shared/partials/login-view.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wptelegram-login/languages/wptelegram-login-js-translations.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WPTelegram\\Login\\includes\\BaseClass' not found in wp-content/plugins/wptelegram-login/admin/Admin.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'WPTelegram\\Login\\includes\\BaseClass' not found in wp-content/plugins/wptelegram-login/includes/Upgrade.php:23
    • > PHP Notice
      Undefined variable: login_options in wp-content/plugins/wptelegram-login/shared/partials/login-view.php on line 26
    • > PHP Fatal error
      Uncaught Error: Class 'WPTelegram\\Login\\includes\\BaseClass' not found in wp-content/plugins/wptelegram-login/shared/LoginHandler.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'WPTelegram\\Login\\includes\\BaseClass' not found in wp-content/plugins/wptelegram-login/includes/AssetManager.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: signup, telegram, login, social, register

wptelegram-login/wptelegram-login.php 92% from 13 tests

The primary PHP file in "WP Telegram Login & Register" version 1.10.7 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 170 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin3,531 lines of code in 47 files:
LanguageFilesBlank linesComment linesLines of code
PHP307211,8702,090
PO File3383470941
SVG302217
Markdown11890214
JSON10043
CSS50322
JavaScript4064

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity14.88
▷ Minimum class complexity1.00
▷ Maximum class complexity52.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes17
▷ Abstract classes211.76%
▷ Concrete classes1588.24%
▷ Final classes00.00%
Methods140
▷ Static methods3122.14%
▷ Public methods12488.57%
▷ Protected methods10.71%
▷ Private methods1510.71%
Functions11
▷ Named functions654.55%
▷ Anonymous functions545.45%
Constants21
▷ Global constants942.86%
▷ Class constants1257.14%
▷ Public constants12100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icons/icon-36x34.png2.03KB1.88KB▼ 7.13%
assets/icons/icon-128x128.png6.67KB3.58KB▼ 46.27%