Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼253.16ms] Passed 4 tests
This is a short check of server-side resources used by Zalo Official Live Chat
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.18 | 44.29 ▲19.65 |
Dashboard /wp-admin | 3.11 ▲0.06 | 49.95 ▲4.87 |
Posts /wp-admin/edit.php | 3.22 ▲0.12 | 51.89 ▲6.96 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.05 | 110.61 ▼1,031.98 |
Media Library /wp-admin/upload.php | 3.06 ▲0.05 | 45.11 ▲7.52 |
Zalo OA Chat /wp-admin/options-general.php?page=zalo-oa-chat | 3.03 | 37.51 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Zalo Official Live Chat
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,797 ▲192 | 16.63 ▲0.81 | 37.58 ▲27.45 | 53.17 ▲4.11 |
Dashboard /wp-admin | 2,955 ▲102 | 6.17 ▲0.32 | 185.58 ▲33.04 | 167.24 ▲62.25 |
Posts /wp-admin/edit.php | 2,715 ▲9 | 2.68 ▼0.02 | 74.79 ▲9.81 | 117.75 ▲21.79 |
Add New Post /wp-admin/post-new.php | 1,663 ▼190 | 16.05 ▼3.12 | 465.18 ▲80.40 | 139.59 ▲29.12 |
Media Library /wp-admin/upload.php | 1,781 ▲9 | 5.00 ▲0.01 | 224.44 ▲68.36 | 156.96 ▲39.07 |
Zalo OA Chat /wp-admin/options-general.php?page=zalo-oa-chat | 1,127 | 2.34 | 121.15 | 129.58 |
Uninstaller [IO: ▲0.05MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attentionZombie WordPress options detected upon uninstall: 1 option
- This plugin cannot be uninstalled
- > Error in wp-content/plugins/zalo-official-live-chat/nl-zalo-official-chat.php+55
Uncaught Error: Class 'NL_Zalo_Official_Chat_Deactivator' not found in /var/www/wordpress/wp-content/plugins/zalo-official-live-chat/nl-zalo-official-chat.php:55Stack trace:#0 /var/www/wordpress/wp-includes/class-wp-hook.php(303): deactivate_nl_zalo_official_chat()#1 /var/www/wordpress/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()#2 /var/www/wordpress/wp-includes/plugin.php(470): WP_Hook->do_action()#3 /var/www/wordpress/wp-admin/includes/plugin.php(821): do_action()#4 /var/www/wordpress/wp-admin/wp-api.php(338): deactivate_plugins()#5 /var/www/wordpress/wp-admin/wp-api.php(128): Potrivit_Wp_Api->pluginUninstall()#6 /var/www/wordpress/wp-admin/wp-api.php(478): Potrivit_Wp_Api->_executeMethod()#7 /var/www/wordpress/wp-admin/wp-api.php(511): Potrivit_Wp_Api->run()#8 {main}thrown
- Uninstaller has failed for this plugin, leaving 22 files (0.05MB) in the plugin directory
- (new file) admin/css/nl-zalo-official-chat-admin.css
- (new file) includes/class-nl-zalo-official-chat-deactivator.php
- (new file) includes/class-nl-zalo-official-chat-activator.php
- (new file) admin/class-nl-zalo-official-chat-admin.php
- (new file) README.txt
- (new file) LICENSE.txt
- (new file) admin/partials/nl-zalo-official-chat-admin-display.php
- (new file) admin/js/nl-zalo-official-chat-admin.js
- (new file) admin/index.php
- (new file) includes/class-nl-zalo-official-chat-i18n.php
- ...
- recovery_mode_email_last_sent
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/zalo-official-live-chat/admin/partials/nl-zalo-official-chat-admin-display.php:55
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/zalo-official-live-chat/public/partials/nl-zalo-official-chat-public-display.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is stored in the /assets directory.), #2 (This is the second screen shot)
zalo-official-live-chat/nl-zalo-official-chat.php 85% from 13 tests
The primary PHP file in "Zalo Official Live Chat" version 1.0.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("zalo-official-live-chat.php" instead of "nl-zalo-official-chat.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
No dangerous file extensions were detected346 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 136 | 548 | 310 |
CSS | 2 | 8 | 8 | 26 |
JavaScript | 2 | 5 | 54 | 10 |
PHP code Passed 2 tests
This is a short overview 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.15 |
Average class complexity | 1.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 29 | |
▷ Static methods | 3 | 10.34% |
▷ Public methods | 24 | 82.76% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.24% |
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 1 test
Image compression Passed 1 test
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin