Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.41MB] [CPU: ▼0.18ms] Passed 4 tests
A check of server-side resources used by TeploBot - Telegram Bot for WP
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 42.27 ▼1.80 |
Dashboard /wp-admin | 3.80 ▲0.50 | 46.74 ▼1.15 |
Posts /wp-admin/edit.php | 3.85 ▲0.50 | 49.21 ▲1.83 |
Add New Post /wp-admin/post-new.php | 6.32 ▲0.44 | 96.90 ▲0.39 |
Media Library /wp-admin/upload.php | 3.66 ▲0.44 | 37.13 ▲3.83 |
Log /wp-admin/admin.php?page=gwptb_log | 3.64 | 34.12 |
Settings /wp-admin/admin.php?page=gwptb | 3.64 | 39.08 |
Feedback /wp-admin/admin.php?page=gwptb_feedback | 3.63 | 31.67 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
Please fix the following
- Illegal file modification found: 1 file (0.00KB) outside of "wp-content/plugins/green-wp-telegram-bot-by-teplitsa/" and "wp-content/uploads/"
- (new file) "wp-content/plugins/green-wp-telegram-bot-by-teplitsa/assets/html/\321\201reate-bot.html"
Filesystem: 34 new files
Database: 2 new tables, 9 new options
New tables |
---|
wp_gwptb_log |
wp_gwptb_chat_subscription |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
gwptb_permalinks_flushed |
widget_recent-posts |
gwptb_version |
widget_theysaidso_widget |
widget_recent-comments |
gwptb_stats |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for TeploBot - Telegram Bot for WP
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲85 | 13.19 ▼1.49 | 1.65 ▼0.13 | 43.55 ▼2.21 |
Dashboard /wp-admin | 2,234 ▲60 | 4.88 ▼0.01 | 104.63 ▼9.34 | 39.97 ▼10.66 |
Posts /wp-admin/edit.php | 2,120 ▲28 | 1.97 ▼0.04 | 33.96 ▼4.61 | 32.22 ▲0.43 |
Add New Post /wp-admin/post-new.php | 1,544 ▲25 | 23.19 ▲0.03 | 610.44 ▼79.66 | 52.43 ▼1.90 |
Media Library /wp-admin/upload.php | 1,422 ▲34 | 4.15 ▼0.09 | 95.33 ▼11.69 | 42.86 ▼2.98 |
Log /wp-admin/admin.php?page=gwptb_log | 976 | 2.20 | 26.60 | 28.92 |
Settings /wp-admin/admin.php?page=gwptb | 1,235 | 2.23 | 30.45 | 37.35 |
Feedback /wp-admin/admin.php?page=gwptb_feedback | 898 | 2.04 | 25.05 | 30.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_gwptb_log
- wp_gwptb_chat_subscription
- The uninstall procedure has failed, leaving 9 options in the database
- gwptb_permalinks_flushed
- widget_recent-comments
- gwptb_stats
- widget_recent-posts
- theysaidso_admin_options
- gwptb_version
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
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)
Good news, no errors were detected
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
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/green-wp-telegram-bot-by-teplitsa/inc/class-cssjs.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: robot, telegram, bot, chatbot, messenger
green-wp-telegram-bot-by-teplitsa/gwptb.php 85% from 13 tests
The main PHP file in "TeploBot - Telegram Bot for WP" ver. 1.3 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("green-wp-telegram-bot-by-teplitsa.php" instead of "gwptb.php")
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,611 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 748 | 291 | 2,020 |
CSS | 2 | 131 | 23 | 586 |
PO File | 1 | 155 | 243 | 365 |
Sass | 3 | 76 | 3 | 309 |
JavaScript | 2 | 53 | 74 | 157 |
Markdown | 1 | 54 | 0 | 86 |
JSON | 2 | 0 | 0 | 49 |
HTML | 2 | 19 | 0 | 39 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 29.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 118.00 |
Average method complexity | 3.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 110 | |
▷ Static methods | 27 | 24.55% |
▷ Public methods | 78 | 70.91% |
▷ Protected methods | 24 | 21.82% |
▷ Private methods | 8 | 7.27% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
2 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/logo-itv.png | 15.53KB | 5.10KB | ▼ 67.15% |
assets/img/botfather.png | 39.09KB | 40.30KB | 0.00% |