Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Compile error in wp-content/plugins/chatwing/classes/DataModel.php+3
Cannot use Chatwing\Object as Object because 'Object' is a special class name
Server metrics [RAM: ▼0.01MB] [CPU: ▼10.04ms] Passed 4 tests
A check of server-side resources used by Plugin Name: Chatwing Live Group Chat - HTML5 + Chat Apps
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 42.44 ▼5.71 |
Dashboard /wp-admin | 3.31 ▼0.04 | 51.19 ▼22.83 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.79 ▲1.51 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.48 ▼13.10 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.24 ▲1.47 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Plugin Name: Chatwing Live Group Chat - HTML5 + Chat Apps: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲18 | 14.37 ▼0.23 | 2.78 ▲0.88 | 45.91 ▲3.09 |
Dashboard /wp-admin | 2,198 ▲18 | 5.64 ▲0.07 | 85.87 ▼12.65 | 37.86 ▼7.70 |
Posts /wp-admin/edit.php | 2,103 ▲6 | 2.02 ▲0.03 | 34.94 ▼4.67 | 38.36 ▲6.10 |
Add New Post /wp-admin/post-new.php | 1,526 ▼5 | 23.56 ▲0.81 | 718.91 ▲23.14 | 63.44 ▲8.60 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.12 ▼0.05 | 110.50 ▲9.54 | 50.64 ▲3.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/chatwing/classes/index.php
- 15× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Chatwing\\Object' not found in wp-content/plugins/chatwing/chatwing-sdk/src/Chatwing/EndpointClient.php:13
- > PHP Fatal error
Uncaught Error: Class 'Chatwing\\Container' not found in wp-content/plugins/chatwing/chatwing-sdk/src/Chatwing/Application.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/chatwing/templates/new_token.php:4
- > PHP Fatal error
Uncaught Error: Class 'Chatwing\\Object' not found in wp-content/plugins/chatwing/chatwing-sdk/src/Chatwing/Api.php:13
- > PHP Fatal error
Uncaught Error: Class 'Chatwing\\Object' not found in wp-content/plugins/chatwing/chatwing-sdk/src/Chatwing/CustomSession.php:11
- > PHP Fatal error
Uncaught Error: Class 'Chatwing\\Application' not found in wp-content/plugins/chatwing/chatwing-sdk/src/Chatwing/start.php:18
- > PHP Fatal error
Cannot use 'Object' as class name as it is reserved in wp-content/plugins/chatwing/chatwing-sdk/src/Chatwing/Object.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'Chatwing\\IntegrationPlugins\\WordPress\\DataModel' not found in wp-content/plugins/chatwing/templates/settings.php:7
- > PHP Fatal error
Uncaught Error: Class 'Chatwing\\IntegrationPlugins\\WordPress\\PluginBase' not found in wp-content/plugins/chatwing/classes/Application.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/chatwing/chatwing.php:23
- > 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 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Tags: Too many tags (44 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== Plugin Name: Chatwing Live Group Chat - HTML5 + Chat Apps===
)
chatwing/chatwing.php 92% from 13 tests
The entry point to "Plugin Name: Chatwing Live Group Chat - HTML5 + Chat Apps" version 2.4.5 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 201 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected1,932 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 376 | 598 | 1,908 |
JSON | 1 | 0 | 0 | 22 |
CSS | 2 | 0 | 12 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 10.58 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 149 | |
▷ Static methods | 15 | 10.07% |
▷ Public methods | 129 | 86.58% |
▷ Protected methods | 19 | 12.75% |
▷ Private methods | 1 | 0.67% |
Functions | 15 | |
▷ Named functions | 11 | 73.33% |
▷ Anonymous functions | 4 | 26.67% |
Constants | 18 | |
▷ Global constants | 17 | 94.44% |
▷ Class constants | 1 | 5.56% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/sync-icon.png | 5.66KB | 5.92KB | 0.00% |
assets/images/cw-logo-128x128.png | 3.09KB | 3.18KB | 0.00% |