Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.09MB] [CPU: ▲1.15ms] Passed 4 tests
A check of server-side resources used by WorkChat – Live Chat and Social chat button
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 42.93 ▲3.53 |
Dashboard /wp-admin | 3.39 ▲0.09 | 52.79 ▲2.42 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 46.34 ▲3.48 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 86.07 ▼4.83 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 39.06 ▲4.70 |
Server storage [IO: ▲0.57MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by WorkChat – Live Chat and Social chat button
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲84 | 14.28 ▼0.00 | 1.94 ▲0.39 | 43.29 ▲0.29 |
Dashboard /wp-admin | 2,219 ▲42 | 5.57 ▼0.05 | 82.77 ▼5.35 | 74.18 ▲29.80 |
Posts /wp-admin/edit.php | 2,127 ▲24 | 1.97 ▼0.02 | 36.21 ▼1.70 | 33.97 ▼3.19 |
Add New Post /wp-admin/post-new.php | 1,563 ▲30 | 22.78 ▼0.49 | 699.52 ▲50.85 | 89.31 ▲30.33 |
Media Library /wp-admin/upload.php | 1,424 ▲24 | 4.11 ▼0.10 | 94.91 ▲1.54 | 73.67 ▲28.51 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/workchat/cloodo-workchat.php
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/workchat/includes/cloodo_core.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/workchat/includes/clme_support.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/workchat/includes/clme_dashboard.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/workchat/app/view/clme_icon_box.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/workchat/includes/clme_setting.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
workchat/cloodo-workchat.php 77% from 13 tests
The main PHP file in "WorkChat – Live Chat and Social chat button" ver. 2.2.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Main file name: Name the main plugin file the same as the plugin slug ("workchat.php" instead of "cloodo-workchat.php")
- Requires at least: Required version must match the one declared in readme.txt ("4.7" instead of "5.2")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected3,029 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 7 | 124 | 12 | 1,377 |
PHP | 7 | 95 | 32 | 1,049 |
JavaScript | 5 | 68 | 94 | 582 |
SVG | 9 | 0 | 0 | 21 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
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 | 19 | |
▷ Named functions | 12 | 63.16% |
▷ Anonymous functions | 7 | 36.84% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/icons8-messaging-50.png | 1.14KB | 1.20KB | 0.00% |
admin/images/icons8-messaging-20.png | 0.41KB | 0.66KB | 0.00% |
admin/images/chat (1).png | 13.96KB | 7.00KB | ▼ 49.88% |
admin/images/cancel.png | 19.91KB | 8.96KB | ▼ 55.01% |
admin/images/zalo.png | 1.24KB | 0.86KB | ▼ 31.00% |