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
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼1.69ms] Passed 4 tests
An overview of server-side resources used by Tawk.To Live Chat
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 34.08 ▼7.53 |
Dashboard /wp-admin | 3.33 ▲0.03 | 46.33 ▼6.12 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 49.63 ▲2.80 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 94.12 ▲10.14 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 33.55 ▲4.10 |
Tawk.to /wp-admin/options-general.php?page=tawkto_plugin | 3.33 | 33.30 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-posts |
tawkto-embed-widget-widget-id |
tawkto-visibility-options |
widget_recent-comments |
tawkto-embed-widget-page-id |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
tawkto-version |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Tawk.To Live Chat
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲57 | 14.24 ▼0.46 | 2.01 ▲0.14 | 38.88 ▼4.93 |
Dashboard /wp-admin | 2,202 ▲22 | 5.65 ▲0.01 | 91.76 ▼10.15 | 40.54 ▼2.72 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.97 ▲0.03 | 41.32 ▲3.06 | 36.37 ▲1.43 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.24 ▲0.13 | 597.92 ▼90.39 | 58.38 ▼1.93 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.18 ▲0.01 | 101.53 ▲1.92 | 45.39 ▲1.97 |
Tawk.to /wp-admin/options-general.php?page=tawkto_plugin | 1,356 | 2.57 | 40.93 | 45.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
The following issues need your attention
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/tawkto-live-chat/templates/widget.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function get_file_data() in wp-content/plugins/tawkto-live-chat/tawkto.php:352
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% 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 need to be fixed:
- Tags: You are using too many tags: 20 tag instead of maximum 10
tawkto-live-chat/tawkto.php 85% from 13 tests
The primary PHP file in "Tawk.To Live Chat" version 0.8.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("tawkto-live-chat.php" instead of "tawkto.php")
- 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 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected2,326 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 376 | 804 | 1,778 |
CSS | 1 | 42 | 56 | 229 |
JavaScript | 2 | 27 | 0 | 159 |
JSON | 2 | 0 | 0 | 85 |
Markdown | 2 | 29 | 0 | 75 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 14.81 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 3.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 1 | 6.25% |
▷ Concrete classes | 15 | 93.75% |
▷ Final classes | 0 | 0.00% |
Methods | 92 | |
▷ Static methods | 43 | 46.74% |
▷ Public methods | 80 | 86.96% |
▷ Protected methods | 4 | 4.35% |
▷ Private methods | 8 | 8.70% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.00% |
Constants | 14 | |
▷ Global constants | 2 | 14.29% |
▷ Class constants | 12 | 85.71% |
▷ Public constants | 12 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.29MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 49.67KB | 24.11KB | ▼ 51.46% |
screenshot-6.png | 59.29KB | 24.61KB | ▼ 58.48% |
screenshot-2.png | 43.65KB | 17.42KB | ▼ 60.08% |
assets/tawky_big.png | 3.71KB | 2.44KB | ▼ 34.11% |
screenshot-4.png | 83.92KB | 38.83KB | ▼ 53.73% |