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.43MB] [CPU: ▼4.82ms] Passed 4 tests
A check of server-side resources used by WP Chat button for Telegram Accounts
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.98 ▲0.52 | 39.17 ▼3.29 |
Dashboard /wp-admin | 3.75 ▲0.44 | 49.33 ▼2.65 |
Posts /wp-admin/edit.php | 3.80 ▲0.44 | 44.96 ▲5.39 |
Add New Post /wp-admin/post-new.php | 6.34 ▲0.44 | 83.81 ▼15.96 |
Media Library /wp-admin/upload.php | 3.61 ▲0.38 | 35.20 ▲2.61 |
Add New account /wp-admin/post-new.php?post_type=telegram-accounts | 3.80 | 49.81 |
All Accounts /wp-admin/edit.php?post_type=telegram-accounts | 3.72 | 39.31 |
Settings /wp-admin/admin.php?page=rj_telegram_setting | 3.66 | 34.38 |
Floating Widget /wp-admin/admin.php?page=rj_telegram_floating_widget | 3.73 | 52.56 |
Server storage [IO: ▲0.52MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 72 new files
Database: no new tables, 10 new options
New WordPress options |
---|
db_upgraded |
rj_te_version |
rj_te_first_time_active |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
nta_wa_restored |
theysaidso_admin_options |
rj_te_review |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by WP Chat button for Telegram Accounts
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,921 ▲135 | 13.48 ▼0.90 | 8.20 ▲6.17 | 40.05 ▼4.31 |
Dashboard /wp-admin | 2,224 ▲44 | 5.52 ▼0.12 | 90.78 ▼11.67 | 79.61 ▲36.74 |
Posts /wp-admin/edit.php | 2,141 ▲41 | 1.97 ▼0.02 | 34.47 ▼7.75 | 33.66 ▼3.53 |
Add New Post /wp-admin/post-new.php | 6,230 ▲4,704 | 18.96 ▼4.26 | 998.21 ▲366.48 | 61.74 ▲5.02 |
Media Library /wp-admin/upload.php | 1,441 ▲41 | 4.16 ▼0.11 | 94.55 ▼15.02 | 63.58 ▲18.74 |
Add New account /wp-admin/post-new.php?post_type=telegram-accounts | 5,167 | 4.98 | 91.40 | 96.28 |
All Accounts /wp-admin/edit.php?post_type=telegram-accounts | 1,123 | 1.96 | 31.39 | 27.52 |
Settings /wp-admin/admin.php?page=rj_telegram_setting | 1,154 | 2.75 | 50.60 | 30.42 |
Floating Widget /wp-admin/admin.php?page=rj_telegram_floating_widget | 2,234 | 9.12 | 173.36 | 65.38 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 10 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- rj_te_review
- theysaidso_admin_options
- rj_te_version
- nta_wa_restored
- rj_te_first_time_active
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 10× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/wp-chat-button-for-telegram-accounts/views/floating-widget-settings.php:11
- > PHP Fatal error
Uncaught Error: Class 'RJ_Telegram\\Helper' not found in wp-content/plugins/wp-chat-button-for-telegram-accounts/views/selected-accounts.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-chat-button-for-telegram-accounts/views/meta-accounts.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-chat-button-for-telegram-accounts/views/meta-button-style.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-chat-button-for-telegram-accounts/views/display-settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/wp-chat-button-for-telegram-accounts/views/settings.php:11
- > PHP Fatal error
Uncaught Error: Class 'RJ_Telegram\\Helper' not found in wp-content/plugins/wp-chat-button-for-telegram-accounts/views/design-preview.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-chat-button-for-telegram-accounts/views/analytics.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-chat-button-for-telegram-accounts/views/design-settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-chat-button-for-telegram-accounts/views/woocommerce-button.php:4
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=rj_telegram_floating_widget
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'addStyle')" "TypeError: Cannot read properties of undefined (reading 'addStyle')\n at n.initialize (/wp-content/plugins/wp-chat-button-for-telegram-accounts/assets/dist/js/app.js?ver=1.0.0:2283:60)\n at h.View (/wp-includes/js/backbone.min.js?ver=1.4.1:2:14648)\n at new n (/wp-includes/js/backbone.min.js?ver=1.4.1:2:23485)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/wp-chat-button-for-telegram-accounts/assets/dist/js/app.js?ver=1.0.0:2259:41)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/admin.php?page=rj_telegram_floating_widget
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: Cannot read properties of undefined (reading 'addStyle')
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: telegram, socialmedia
wp-chat-button-for-telegram-accounts/telegram.php 85% from 13 tests
This is the main PHP file of "WP Chat button for Telegram Accounts" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-chat-button-for-telegram-accounts.php" instead of "telegram.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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 plugin7,790 lines of code in 52 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 347 | 61 | 2,733 |
JavaScript | 8 | 131 | 13 | 2,476 |
CSS | 6 | 239 | 48 | 2,275 |
PO File | 1 | 79 | 91 | 189 |
SVG | 8 | 0 | 6 | 60 |
HTML | 1 | 16 | 0 | 32 |
XML | 1 | 0 | 0 | 21 |
JSON | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 14.07 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 125 | |
▷ Static methods | 35 | 28.00% |
▷ Public methods | 117 | 93.60% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 6.40% |
Functions | 9 | |
▷ Named functions | 4 | 44.44% |
▷ Anonymous functions | 5 | 55.56% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/woo_settings/after_add_to_cart.png | 2.58KB | 1.15KB | ▼ 55.60% |
assets/img/woo_settings/before_add_to_cart.png | 2.70KB | 1.26KB | ▼ 53.35% |
assets/img/filebird-recommended.png | 20.96KB | 10.34KB | ▼ 50.67% |
assets/img/woo_settings/after_short_desc.png | 2.72KB | 1.34KB | ▼ 50.57% |
assets/img/FB_Wireframe.png | 10.56KB | 4.88KB | ▼ 53.83% |