Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.42ms] Passed 4 tests
Analyzing server-side resources used by Zalo Live Chat
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 41.57 ▼2.92 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.68 ▼4.71 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 51.31 ▼3.32 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 98.29 ▼2.74 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 40.54 ▲5.60 |
Zalo Live Chat /wp-admin/options-general.php?page=zalo-livechat | 3.21 | 30.86 |
Server storage [IO: ▲0.52MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Zalo Live Chat
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲11 | 14.45 ▼0.14 | 1.73 ▼0.22 | 42.53 ▼6.33 |
Dashboard /wp-admin | 2,203 ▲29 | 5.65 ▲0.03 | 92.27 ▼12.45 | 42.67 ▼1.89 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 2.02 ▲0.00 | 41.75 ▲5.34 | 37.35 ▲1.55 |
Add New Post /wp-admin/post-new.php | 1,533 ▼5 | 23.62 ▲5.60 | 669.66 ▲65.64 | 61.43 ▼7.61 |
Media Library /wp-admin/upload.php | 1,411 ▲11 | 4.18 ▲0.06 | 97.75 ▼33.00 | 46.30 ▼9.55 |
Zalo Live Chat /wp-admin/options-general.php?page=zalo-livechat | 908 | 2.01 | 26.36 | 39.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
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
Everything seems fine, however this is by no means an exhaustive test
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
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/zalo-live-chat/admin/partials/zalo-livechat-admin-display.php
- > /wp-content/plugins/zalo-live-chat/public/partials/zalo-livechat-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Donate link: Invalid URI found ("thikshare.com")
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== zalo-live-chat ===
) - Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5 in zalo-live-chat/assets to your readme.txt
zalo-live-chat/zalo-livechat.php 85% from 13 tests
The entry point to "Zalo Live Chat" version 1.1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("zalo-live-chat.php" instead of "zalo-livechat.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin322 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 143 | 532 | 278 |
CSS | 2 | 9 | 4 | 36 |
JavaScript | 2 | 2 | 27 | 8 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 2.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 3 | 10.00% |
▷ Public methods | 24 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 20.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin