Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼1.93MB] [CPU: ▼58.72ms] Passed 4 tests
This is a short check of server-side resources used by OnCustomer Livechat
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 4.73 ▼36.42 |
Dashboard /wp-admin | 2.08 ▼1.22 | 5.84 ▼46.48 |
Posts /wp-admin/edit.php | 2.08 ▼1.27 | 5.65 ▼47.30 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.81 | 6.53 ▼104.69 |
Media Library /wp-admin/upload.php | 2.08 ▼1.15 | 5.87 ▼34.75 |
Server storage [IO: ▲0.70MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
These are issues you should consider
- Illegal file modification detected: 1 file (4.00KB) outside of "wp-content/plugins/oncustomer-livechat/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by OnCustomer Livechat
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,846 ▲85 | 14.74 ▲0.36 | 1.88 ▲0.20 | 43.14 ▲2.37 |
Dashboard /wp-admin | 2,251 ▲48 | 4.88 ▼1.00 | 107.06 ▲3.13 | 42.17 ▼1.96 |
Posts /wp-admin/edit.php | 2,127 ▲24 | 1.99 ▼0.07 | 34.45 ▼5.24 | 36.74 ▼1.18 |
Add New Post /wp-admin/post-new.php | 1,555 ▲29 | 23.11 ▲5.71 | 718.16 ▲56.96 | 56.49 ▼8.19 |
Media Library /wp-admin/upload.php | 1,424 ▲27 | 4.21 ▼0.06 | 99.75 ▼13.08 | 43.57 ▼3.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the livechat.css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests 75% 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 50% 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 trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/oncustomer-livechat/livechat.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
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 require attention:
- Screenshots: These screenshots require images: #1 (Màn hình yêu cầu tích hợp OnCustomer Livechat.), #2 (Tích hợp OnCustomer Livechat thành công.), #3 (Biểu tượng OnCustomer Livechat trên website.), #4 (Sử dụng OnCustomer Livechat trên website.)
oncustomer-livechat/livechat.php 92% from 13 tests
Analyzing the main PHP file in "OnCustomer Livechat" version 1.0
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("oncustomer-livechat.php" instead of "livechat.php")
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
Everything looks great! No dangerous files found in this plugin337 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 4 | 0 | 0 | 135 |
PHP | 1 | 21 | 9 | 103 |
CSS | 1 | 18 | 0 | 99 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/check.png | 1.16KB | 0.56KB | ▼ 51.82% |
images/logo.png | 7.97KB | 4.05KB | ▼ 49.26% |