Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/zchat-enterprise/plugin_files/ZChat.class.php+22
Function create_function() is deprecated
Server metrics [RAM: ▼1.91MB] [CPU: ▼50.53ms] Passed 4 tests
This is a short check of server-side resources used by ZChat - Live Chat Plugin for WordPress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.39 | 5.09 ▼35.54 |
Dashboard /wp-admin | 2.09 ▼1.21 | 5.48 ▼42.19 |
Posts /wp-admin/edit.php | 2.09 ▼1.26 | 7.58 ▼39.37 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.79 | 6.15 ▼85.03 |
Media Library /wp-admin/upload.php | 2.09 ▼1.13 | 5.40 ▼29.87 |
Server storage [IO: ▲1.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_zchat_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
ZChat - Live Chat Plugin for WordPress: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲45 | 13.17 ▼1.34 | 1.59 ▼0.33 | 43.65 ▼3.30 |
Dashboard /wp-admin | 2,222 ▲34 | 4.84 ▼0.09 | 101.71 ▼15.60 | 42.17 ▼3.69 |
Posts /wp-admin/edit.php | 2,102 ▲13 | 2.02 ▲0.03 | 34.26 ▼5.89 | 34.50 ▲2.89 |
Add New Post /wp-admin/post-new.php | 1,527 ▼6 | 17.76 ▼5.46 | 623.15 ▼49.30 | 67.82 ▲12.59 |
Media Library /wp-admin/upload.php | 1,407 ▲25 | 4.27 ▲0.07 | 99.94 ▼3.02 | 41.76 ▲0.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/zchat-enterprise/plugin_files/ZChat.class.php+22
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 7 options in the database
- widget_zchat_widget
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- 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 fix the following
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/zchat-enterprise/plugin_files/ZChat.widget.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/zchat-enterprise/plugin_files/ZChat.widget.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/zchat-enterprise/plugin_files/ZChat.widget.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/zchat-enterprise/plugin_files/ZChat.widget.php:2
- > 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 issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% 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
These attributes need your attention:
- Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Chat window: A chat with a ZChat operator.), #2 (Chat window: Embedded Chat.), #3 (Mobile Console.), #4 (Proactive Chat Invitation.), #5 (Real-Time Visitor Monitoring.), #6 (Login Window), #7 (In-Page Chat.), #8 (Chat Box.)
zchat-enterprise/zchat.php 85% from 13 tests
The principal PHP file in "ZChat - Live Chat Plugin for WordPress" v. 1.0.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("zchat-enterprise.php" instead of "zchat.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 234 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin188 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 5 | 19 | 188 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 9.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 1 | 33.33% |
Methods | 15 | |
▷ Static methods | 3 | 20.00% |
▷ Public methods | 12 | 80.00% |
▷ Protected methods | 3 | 20.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
4 PNG files occupy 0.15MB with 0.09MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 64.71KB | 22.80KB | ▼ 64.76% |
screenshot-1.png | 24.71KB | 8.67KB | ▼ 64.91% |
screenshot-2.png | 31.72KB | 11.24KB | ▼ 64.55% |
screenshot-6.png | 30.35KB | 11.48KB | ▼ 62.18% |