Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/teletter-telegram-newsletter/telegram.php+73
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.77MB] [CPU: ▼62.07ms] Passed 4 tests
This is a short check of server-side resources used by Teletter Telegram Newsletter
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.22 ▼1.24 | 8.37 ▼33.84 |
Dashboard /wp-admin | 2.24 ▼1.10 | 8.73 ▼57.58 |
Posts /wp-admin/edit.php | 2.25 ▼1.11 | 8.27 ▼48.87 |
Add New Post /wp-admin/post-new.php | 2.24 ▼3.64 | 8.28 ▼107.97 |
Media Library /wp-admin/upload.php | 2.25 ▼0.98 | 8.16 ▼28.78 |
subscribers /wp-admin/edit.php?post_type=subscriber | 2.25 | 8.55 |
Log /wp-admin/admin.php?page=teletter_log | 2.25 | 7.96 |
Telegram API /wp-admin/admin.php?page=telegram_api | 2.25 | 8.51 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Teletter Telegram Newsletter
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 14.72 ▲0.37 | 1.86 ▼0.01 | 42.85 ▼2.77 |
Dashboard /wp-admin | 2,218 ▲47 | 5.56 ▼0.04 | 85.35 ▼6.27 | 69.32 ▲27.12 |
Posts /wp-admin/edit.php | 2,132 ▲32 | 1.98 ▼0.03 | 37.30 ▼3.83 | 33.06 ▼3.98 |
Add New Post /wp-admin/post-new.php | 1,701 ▲175 | 22.17 ▼0.63 | 731.68 ▲52.41 | 63.77 ▼1.77 |
Media Library /wp-admin/upload.php | 1,429 ▲32 | 4.23 ▲0.01 | 100.97 ▼12.76 | 70.71 ▲22.78 |
subscribers /wp-admin/edit.php?post_type=subscriber | 1,133 | 1.91 | 32.78 | 29.19 |
Log /wp-admin/admin.php?page=teletter_log | 812 | 2.00 | 26.31 | 31.59 |
Telegram API /wp-admin/admin.php?page=telegram_api | 1,087 | 2.12 | 24.03 | 26.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/teletter-telegram-newsletter/telegram.php+73
Trying to access array offset on value of type bool
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 36 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=telegram_api
- > Notice in wp-content/plugins/teletter-telegram-newsletter/includes/api-settings.php+236
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 6× 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/teletter-telegram-newsletter/includes/notification-metabox.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/teletter-telegram-newsletter/includes/pagetemplate.php:137
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/teletter-telegram-newsletter/telegram.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/teletter-telegram-newsletter/includes/api-page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/teletter-telegram-newsletter/includes/api-settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/teletter-telegram-newsletter/includes/users-save.php:42
- > 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 90% 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:
- Screenshots: These screenshots do not have images: #1 (Telegram API Settings Page), #2 (Telegram API Meta Box on posts, pages or custom post types), #3 (List of Subscribers showing details. (User id, first name, last name, Telegram Username, Activation Status, Date of Subscription))
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== teletter-telegram-newsletter ===
)
teletter-telegram-newsletter/telegram.php 92% from 13 tests
The main PHP script in "Teletter Telegram Newsletter" version 1.3 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("teletter-telegram-newsletter.php" instead of "telegram.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
No dangerous file extensions were detected1,338 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 183 | 145 | 1,128 |
PO File | 1 | 89 | 179 | 210 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 4 | |
▷ Static methods | 1 | 25.00% |
▷ Public methods | 3 | 75.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 25.00% |
Functions | 38 | |
▷ Named functions | 38 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
5 compressed PNG files occupy 0.05MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/teletter.png | 13.71KB | 12.40KB | ▼ 9.50% |
includes/dashicon.png | 0.58KB | 0.74KB | 0.00% |
screenshot-3.png | 18.32KB | 17.36KB | ▼ 5.23% |
screenshot-2.png | 3.75KB | 2.72KB | ▼ 27.50% |
screenshot-1.png | 15.28KB | 14.31KB | ▼ 6.35% |