Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.10MB] [CPU: ▼1.20ms] Passed 4 tests
A check of server-side resources used by TOCHAT.BE
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 48.61 ▲2.24 |
Dashboard /wp-admin | 3.40 ▲0.10 | 49.56 ▲1.90 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 41.77 ▼8.40 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 92.86 ▲3.71 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 36.33 ▼0.54 |
GDPR /wp-admin/admin.php?page=to-chat-be-whatsapp_gdpr | 3.33 | 32.83 |
Click Log /wp-admin/admin.php?page=to-chat-be-whatsapp_click-log | 3.32 | 34.78 |
Shortcode /wp-admin/admin.php?page=to-chat-be-whatsapp_shortcode | 3.32 | 32.07 |
Google Analytics /wp-admin/admin.php?page=to-chat-be-google_analytics | 3.32 | 31.53 |
Appearence /wp-admin/admin.php?page=to-chat-be-whatsapp_appearence | 3.35 | 36.39 |
Agents /wp-admin/edit.php?post_type=tochatbe_agent | 3.11 | 31.96 |
Settings /wp-admin/admin.php?page=to-chat-be-whatsapp_settings | 3.42 | 35.14 |
Facebook Analytics /wp-admin/admin.php?page=to-chat-be-facebook_analytics | 3.32 | 31.89 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 51 new files
Database: 1 new table, 15 new options
New tables |
---|
wp_tochatbe_log |
New WordPress options |
---|
tochatbe_plugin_version |
tochatbe_just_whatsapp_icon_settings |
db_upgraded |
tochatbe_basic_settings |
widget_recent-posts |
tochatbe_facebook_analytics_settings |
can_compress_scripts |
tochatbe_appearance_settings |
tochatbe_woo_order_button_settings |
tochatbe_google_analytics_settings |
... |
Browser metrics Passed 4 tests
TOCHAT.BE: 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 / | 3,103 ▲341 | 14.17 ▲0.10 | 6.76 ▲5.04 | 35.32 ▼4.30 |
Dashboard /wp-admin | 2,392 ▲215 | 5.14 ▼0.51 | 98.51 ▲4.81 | 94.52 ▲52.95 |
Posts /wp-admin/edit.php | 2,168 ▲68 | 1.98 ▼0.04 | 40.37 ▲0.53 | 37.14 ▲1.54 |
Add New Post /wp-admin/post-new.php | 6,286 ▲4,760 | 26.07 ▲2.80 | 912.18 ▲246.02 | 62.81 ▲7.29 |
Media Library /wp-admin/upload.php | 1,470 ▲70 | 4.18 ▲0.02 | 98.05 ▲0.53 | 45.76 ▲1.06 |
GDPR /wp-admin/admin.php?page=to-chat-be-whatsapp_gdpr | 1,021 | 3.39 | 40.90 | 32.03 |
Click Log /wp-admin/admin.php?page=to-chat-be-whatsapp_click-log | 1,096 | 3.44 | 44.36 | 27.49 |
Shortcode /wp-admin/admin.php?page=to-chat-be-whatsapp_shortcode | 1,252 | 3.61 | 53.56 | 28.86 |
Google Analytics /wp-admin/admin.php?page=to-chat-be-google_analytics | 986 | 2.85 | 29.89 | 28.27 |
Appearence /wp-admin/admin.php?page=to-chat-be-whatsapp_appearence | 1,964 | 8.31 | 163.15 | 56.99 |
Agents /wp-admin/edit.php?post_type=tochatbe_agent | 1,887 | 4.96 | 78.00 | 35.73 |
Settings /wp-admin/admin.php?page=to-chat-be-whatsapp_settings | 1,512 | 3.43 | 49.00 | 31.73 |
Facebook Analytics /wp-admin/admin.php?page=to-chat-be-facebook_analytics | 969 | 2.87 | 30.04 | 28.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_tochatbe_log
- The uninstall procedure has failed, leaving 15 options in the database
- tochatbe_facebook_analytics_settings
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- tochatbe_google_analytics_settings
- tochatbe_gdpr_settings
- tochatbe_plugin_version
- tochatbe_just_whatsapp_icon_settings
- tochatbe_woo_order_button_settings
- tochatbe_appearance_settings
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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 take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/tochat-be/includes/admin/views/notifications/html-purchase-premium.php
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/tochat-be/includes/admin/class-tochatbe-admin-log-table.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/tochat-be/includes/admin/class-tochatbe-admin-log-table.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function tochatbe_just_whatsapp_icon_option() in wp-content/plugins/tochat-be/views/html-just-whatsapp-icon.php:2
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/tochat-be/includes/admin/class-tochatbe-admin-log-table.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_textarea() in wp-content/plugins/tochat-be/includes/admin/views/meta-boxes/html-widget-mod.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/tochat-be/includes/admin/views/meta-boxes/html-agent-add.php:8
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Contributors: The plugin contributors field is not present
tochat-be/to-chat-be.php 69% from 13 tests
"TOCHAT.BE" version 1.3.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 395 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("tochat-be.php" instead of "to-chat-be.php")
- Domain Path: The domain path folder was not found ("/languages/")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
There were no executable files found in this plugin3,371 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 35 | 438 | 130 | 2,847 |
CSS | 4 | 41 | 8 | 262 |
JavaScript | 4 | 39 | 27 | 213 |
SVG | 4 | 0 | 1 | 49 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 12.06 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 101 | |
▷ Static methods | 16 | 15.84% |
▷ Public methods | 95 | 94.06% |
▷ Protected methods | 6 | 5.94% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 20 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo-full.png | 12.84KB | 4.06KB | ▼ 68.39% |
assets/images/ToChatBe.png | 3.36KB | 2.07KB | ▼ 38.37% |