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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.01 ▲0.55 | 43.85 ▲2.74 |
Dashboard /wp-admin | 3.86 ▲0.56 | 53.35 ▲4.28 |
Posts /wp-admin/edit.php | 3.91 ▲0.55 | 54.16 ▲2.79 |
Add New Post /wp-admin/post-new.php | 6.60 ▲0.71 | 548.27 ▲445.93 |
Media Library /wp-admin/upload.php | 3.72 ▲0.49 | 43.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲87 | 13.39 ▼1.20 | 1.76 ▼0.02 | 41.16 ▼4.64 |
Dashboard /wp-admin | 2,230 ▲42 | 5.02 ▲0.14 | 105.34 ▼8.98 | 41.95 ▲1.68 |
Posts /wp-admin/edit.php | 2,113 ▲21 | 2.01 ▲0.01 | 40.45 ▼0.08 | 33.29 ▼4.55 |
Add New Post /wp-admin/post-new.php | 6,201 ▲4,664 | 18.97 ▼4.12 | 911.40 ▲219.39 | 55.83 ▲0.96 |
Media Library /wp-admin/upload.php | 1,409 ▲24 | 4.17 ▲0.07 | 111.40 ▲0.47 | 46.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 30 | 721 | 1,870 | 2,090 |
PO File | 3 | 383 | 470 | 941 |
SVG | 3 | 0 | 2 | 217 |
Markdown | 1 | 189 | 0 | 214 |
JSON | 1 | 0 | 0 | 43 |
CSS | 5 | 0 | 3 | 22 |
JavaScript | 4 | 0 | 6 | 4 |
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 code | 0.34 |
Average class complexity | 14.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 2 | 11.76% |
▷ Concrete classes | 15 | 88.24% |
▷ Final classes | 0 | 0.00% |
Methods | 140 | |
▷ Static methods | 31 | 22.14% |
▷ Public methods | 124 | 88.57% |
▷ Protected methods | 1 | 0.71% |
▷ Private methods | 15 | 10.71% |
Functions | 11 | |
▷ Named functions | 6 | 54.55% |
▷ Anonymous functions | 5 | 45.45% |
Constants | 21 | |
▷ Global constants | 9 | 42.86% |
▷ Class constants | 12 | 57.14% |
▷ Public constants | 12 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icons/icon-36x34.png | 2.03KB | 1.88KB | ▼ 7.13% |
assets/icons/icon-128x128.png | 6.67KB | 3.58KB | ▼ 46.27% |