Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.82ms] Passed 4 tests
An overview of server-side resources used by اطلاع رسانی سفارشات ووکامرس توسط ربات تلگرام (بدون نیاز به پراکسی برای هاست های ایران)
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.60 ▼6.66 |
Dashboard /wp-admin | 3.31 ▲0.01 | 43.91 ▼1.54 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 47.17 ▲0.11 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 88.07 ▼11.19 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 35.00 ▲1.82 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by اطلاع رسانی سفارشات ووکامرس توسط ربات تلگرام (بدون نیاز به پراکسی برای هاست های ایران)
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲66 | 13.62 ▼0.80 | 1.81 ▼0.46 | 42.35 ▼0.51 |
Dashboard /wp-admin | 2,218 ▲30 | 5.85 ▲0.99 | 100.42 ▼0.62 | 44.68 ▲5.94 |
Posts /wp-admin/edit.php | 2,100 ▲11 | 2.06 ▲0.03 | 40.40 ▼1.61 | 39.30 ▼0.78 |
Add New Post /wp-admin/post-new.php | 1,526 ▼11 | 17.73 ▼0.36 | 680.49 ▲68.93 | 51.84 ▼2.09 |
Media Library /wp-admin/upload.php | 1,400 ▲15 | 4.26 ▲0.09 | 93.57 ▼3.12 | 45.56 ▲1.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
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 | 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
The following issues need your attention
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'OrderNotificationForTelegramBot\\classes\\Singleton' not found in wp-content/plugins/order-notification-for-telegram-bot/classes/Methods.php:5
- > PHP Fatal error
Uncaught Error: Class 'OrderNotificationForTelegramBot\\classes\\Singleton' not found in wp-content/plugins/order-notification-for-telegram-bot/classes/Requester.php:8
- > PHP Fatal error
Uncaught Error: Class 'WC_Settings_Page' not found in wp-content/plugins/order-notification-for-telegram-bot/classes/OptionPanel.php:7
- > PHP Fatal error
Uncaught Error: Class 'OrderNotificationForTelegramBot\\classes\\Singleton' not found in wp-content/plugins/order-notification-for-telegram-bot/classes/Init.php:5
- > PHP Fatal error
Uncaught Error: Class 'OrderNotificationForTelegramBot\\classes\\bots\\BotApi' not found in wp-content/plugins/order-notification-for-telegram-bot/classes/bots/TelegramBotApi.php:5
- > PHP Fatal error
Uncaught Error: Class 'OrderNotificationForTelegramBot\\classes\\bots\\BotApi' not found in wp-content/plugins/order-notification-for-telegram-bot/classes/bots/BaleBotApi.php:5
- > PHP Fatal error
Uncaught Error: Class 'OrderNotificationForTelegramBot\\classes\\Singleton' not found in wp-content/plugins/order-notification-for-telegram-bot/classes/bots/BotApi.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Tags: Please delete some tags, you are using 19 tag instead of maximum 10
- Screenshots: These screenshots lack descriptions #1, #2 in order-notification-for-telegram-bot/assets to your readme.txt
order-notification-for-telegram-bot/OrderNotificationForTelegramBot.php 77% from 13 tests
Analyzing the main PHP file in "اطلاع رسانی سفارشات ووکامرس توسط ربات تلگرام (بدون نیاز به پراکسی برای هاست های ایران)" version 1.6.9.1
You should first fix the following items:
- Requires PHP: Required version must be the same as the one declared in readme.txt ("7.2" instead of "7.0")
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("order-notification-for-telegram-bot.php" instead of "OrderNotificationForTelegramBot.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin1,880 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 395 | 317 | 1,838 |
JavaScript | 1 | 0 | 0 | 37 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 24.47 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 222.00 |
Average method complexity | 4.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 2 | 13.33% |
▷ Concrete classes | 13 | 86.67% |
▷ Final classes | 0 | 0.00% |
Methods | 110 | |
▷ Static methods | 27 | 24.55% |
▷ Public methods | 96 | 87.27% |
▷ Protected methods | 3 | 2.73% |
▷ Private methods | 11 | 10.00% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 9 | |
▷ Global constants | 7 | 77.78% |
▷ Class constants | 2 | 22.22% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin