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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 37.54 ▼3.73 |
Dashboard /wp-admin | 3.38 ▲0.08 | 47.76 ▼4.22 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 47.13 ▲2.18 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 98.74 ▼7.00 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 32.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 13.23 ▼1.46 | 1.81 ▲0.09 | 44.03 ▼4.65 |
Dashboard /wp-admin | 2,216 ▲48 | 5.85 ▲0.90 | 101.56 ▼6.74 | 41.74 ▲1.92 |
Posts /wp-admin/edit.php | 2,102 ▲13 | 1.99 ▼0.04 | 37.17 ▲1.67 | 32.96 ▼3.55 |
Add New Post /wp-admin/post-new.php | 1,550 ▲22 | 23.14 ▲4.69 | 677.68 ▲70.20 | 61.38 ▲4.88 |
Media Library /wp-admin/upload.php | 1,404 ▲22 | 4.22 ▲0.02 | 93.42 ▼8.18 | 41.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
- > PHP Fatal error
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))
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 24 | 33 | 283 |
PO File | 1 | 46 | 72 | 66 |
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 code | 0.30 |
Average class complexity | 33.00 |
▷ Minimum class complexity | 33.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 3.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 4.44KB | 2.18KB | ▼ 50.85% |
screenshot-4.png | 33.02KB | 12.43KB | ▼ 62.36% |
screenshot-2.png | 1.78KB | 0.79KB | ▼ 55.61% |
screenshot-3.png | 32.27KB | 12.22KB | ▼ 62.13% |