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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▲2.26ms] Passed 4 tests
Analyzing server-side resources used by Tawk.To Manager
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.38 ▼2.55 |
Dashboard /wp-admin | 3.33 ▲0.02 | 51.30 ▲2.91 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 50.74 ▲3.18 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 95.86 ▲7.14 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 41.35 ▲5.51 |
TawkTo settings /wp-admin/options-general.php?page=ttm-tawkto-manager | 3.30 | 35.09 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
ttm_version |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Tawk.To Manager
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,798 ▲63 | 13.39 ▼0.97 | 1.62 ▼0.68 | 38.68 ▼8.96 |
Dashboard /wp-admin | 2,204 ▲16 | 5.90 ▲1.00 | 111.44 ▼6.21 | 38.88 ▼6.47 |
Posts /wp-admin/edit.php | 2,087 ▼2 | 2.05 ▲0.04 | 33.21 ▼3.69 | 33.52 ▼2.08 |
Add New Post /wp-admin/post-new.php | 1,510 ▼4 | 17.71 ▼0.11 | 597.90 ▼85.83 | 53.02 ▲4.72 |
Media Library /wp-admin/upload.php | 1,386 ▼5 | 4.27 ▲0.05 | 95.73 ▼8.46 | 39.94 ▼5.96 |
TawkTo settings /wp-admin/options-general.php?page=ttm-tawkto-manager | 950 | 2.16 | 24.83 | 25.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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 does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- ttm_version
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 13× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/tawkto-manager/views/tabs/settings.ctp.php
- > /wp-content/plugins/tawkto-manager/controllers/ttmoptions.ctrl.php
- > /wp-content/plugins/tawkto-manager/views/tabs/script.ctp.php
- > /wp-content/plugins/tawkto-manager/controllers/ttmfrontend.ctrl.php
- > /wp-content/plugins/tawkto-manager/views/tabs/frontend.ctp.php
- > /wp-content/plugins/tawkto-manager/controllers/ttm.ctrl.php
- > /wp-content/plugins/tawkto-manager/includes/options.php
- > /wp-content/plugins/tawkto-manager/views/tabs/help.ctp.php
- > /wp-content/plugins/tawkto-manager/controllers/ttmbackend.ctrl.php
- > /wp-content/plugins/tawkto-manager/views/tabs/backend.ctp.php
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)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (Show the tawk.to chat on your website
), #2 (Advanced mode to enable options for advanced users
), #3 (WordPress dashboard settings for user roles
), #4 (WooCommerce Page options are enabled in it's installed and active
), #5 (Shortcode for posts & pages
)
tawkto-manager/tawktomanager.php 92% from 13 tests
The principal PHP file in "Tawk.To Manager" v. 2.2.2 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("tawkto-manager.php" instead of "tawktomanager.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin1,542 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 119 | 196 | 1,256 |
PO File | 1 | 96 | 109 | 286 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 37.00 |
▷ Minimum class complexity | 24.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 5.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 28 | 90.32% |
▷ Public methods | 25 | 80.65% |
▷ Protected methods | 6 | 19.35% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 0.24MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ico16x16d.png | 0.63KB | 0.62KB | ▼ 1.56% |
images/ico16x16b.png | 0.35KB | 0.30KB | ▼ 13.13% |
screenshot-2.png | 20.48KB | 11.88KB | ▼ 42.02% |
images/ico16x16.png | 0.69KB | 0.66KB | ▼ 4.94% |
screenshot-4.png | 26.22KB | 15.09KB | ▼ 42.45% |