Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.08MB] [CPU: ▼12.35ms] Passed 4 tests
Server-side resources used by Notification for Telegram
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 36.38 ▼6.39 |
Dashboard /wp-admin | 3.29 ▼0.02 | 32.42 ▼15.34 |
Posts /wp-admin/edit.php | 3.35 ▼0.00 | 34.54 ▼10.89 |
Add New Post /wp-admin/post-new.php | 5.53 ▼0.36 | 72.90 ▼16.79 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 30.05 ▲0.37 |
Server storage [IO: ▲0.61MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Notification for Telegram: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲53 | 14.34 ▼0.05 | 1.64 ▼0.06 | 41.03 ▼1.74 |
Dashboard /wp-admin | 2,220 ▲40 | 5.69 ▲0.05 | 92.55 ▲3.20 | 81.77 ▲43.95 |
Posts /wp-admin/edit.php | 2,125 ▲25 | 2.10 ▲0.16 | 39.51 ▲1.40 | 34.96 ▼1.11 |
Add New Post /wp-admin/post-new.php | 1,702 ▲171 | 22.13 ▼0.60 | 714.77 ▲20.19 | 52.81 ▼0.48 |
Media Library /wp-admin/upload.php | 1,419 ▲19 | 4.16 ▼0.03 | 102.72 ▲2.93 | 74.90 ▲30.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/notification-for-telegram/include/nftb_optionpage.php:1420
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
notification-for-telegram/index.php 92% from 13 tests
The principal PHP file in "Notification for Telegram" v. 3.3 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("notification-for-telegram.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin2,349 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 1,185 | 306 | 2,001 |
CSS | 1 | 52 | 6 | 167 |
PO File | 1 | 64 | 90 | 154 |
JavaScript | 1 | 27 | 21 | 27 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 178.00 |
▷ Minimum class complexity | 178.00 |
▷ Maximum class complexity | 178.00 |
Average method complexity | 4.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 50 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 50 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 52 | |
▷ Named functions | 48 | 92.31% |
▷ Anonymous functions | 4 | 7.69% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin