Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼8.97ms] Passed 4 tests
An overview of server-side resources used by WPS Telegram Chat
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 39.19 ▼0.42 |
Dashboard /wp-admin | 3.41 ▲0.07 | 49.65 ▼12.42 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 44.40 ▼4.25 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 80.46 ▼16.58 |
Media Library /wp-admin/upload.php | 3.33 ▲0.11 | 33.71 ▼2.62 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
wps-telegram-chat |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by WPS Telegram Chat
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲61 | 14.67 ▲0.32 | 1.92 ▲0.19 | 42.88 ▼3.04 |
Dashboard /wp-admin | 2,216 ▲39 | 5.59 ▼0.06 | 92.75 ▼1.01 | 46.26 ▲7.24 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 1.97 ▼0.05 | 33.65 ▼7.72 | 39.02 ▲1.50 |
Add New Post /wp-admin/post-new.php | 1,546 ▲19 | 23.17 ▲0.04 | 675.23 ▼20.43 | 65.47 ▲14.20 |
Media Library /wp-admin/upload.php | 1,415 ▲12 | 4.20 ▼0.05 | 101.21 ▼3.16 | 44.68 ▼2.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wps-telegram-chat/public/partials/wps-telegram-chat-public-handler.php:16
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wps-telegram-chat/admin/partials/wps-telegram-chat-notice.php:14
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wps-telegram-chat/public/partials/wps-telegram-chat-shortcodes.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wps-telegram-chat/public/partials/wps-telegram-chat-public-display.php:16
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wps-telegram-chat/admin/partials/wps-telegram-chat-admin-display.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: telegram, contact form, email, live chat, chat bot...
wps-telegram-chat/wps-telegram-chat.php Passed 13 tests
The primary PHP file in "WPS Telegram Chat" version 4.1.1 is used by WordPress to initiate all plugin functionality
121 characters long description:
With a Telegram Chat for website, your site visitors will be able to contact you directly from your website at all times.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected3,101 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 317 | 635 | 1,305 |
PO File | 2 | 192 | 216 | 591 |
CSS | 2 | 37 | 10 | 584 |
JavaScript | 4 | 139 | 82 | 521 |
SVG | 8 | 0 | 3 | 99 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 3.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 2 | 4.88% |
▷ Public methods | 36 | 87.80% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 12.20% |
Functions | 11 | |
▷ Named functions | 10 | 90.91% |
▷ Anonymous functions | 1 | 9.09% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ 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
No PNG images were found in this plugin