Benchmarks
Plugin footprint 75% 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
- The plugin did not install without errors
- > Compile error in wp-content/plugins/chatwing-float-chatbox/classes/DataModel.php+4
Cannot use ChatwingFloatUI\Object as Object because 'Object' is a special class name
Server metrics [RAM: ▼0.00MB] [CPU: ▼413.38ms] Passed 4 tests
Server-side resources used by Plugin Name: Chatwing Float Chatbox
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.83 ▲0.11 | 32.45 ▲10.25 |
Dashboard /wp-admin | 3.06 ▲0.00 | 42.40 ▼2.28 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 40.23 ▼1.50 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 88.51 ▼1,643.77 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 28.01 ▼5.98 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 36 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Plugin Name: Chatwing Float Chatbox: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,673 ▲51 | 15.84 ▲0.43 | 9.03 ▼0.13 | 43.54 ▼5.04 |
Dashboard /wp-admin | 2,954 ▲85 | 5.93 ▲0.10 | 136.46 ▼23.06 | 105.87 ▲2.15 |
Posts /wp-admin/edit.php | 2,703 ▼0 | 2.69 ▲0.00 | 79.58 ▲15.00 | 88.46 ▼5.92 |
Add New Post /wp-admin/post-new.php | 1,653 ▲65 | 18.75 ▼2.63 | 354.57 ▲93.08 | 106.83 ▲0.65 |
Media Library /wp-admin/upload.php | 1,775 ▼0 | 5.11 ▲0.10 | 158.71 ▲9.03 | 112.11 ▲3.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/chatwing-float-chatbox/classes/index.php
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Cannot use 'Object' as class name as it is reserved in wp-content/plugins/chatwing-float-chatbox/chatwing-sdk/src/ChatwingFloatUI/Object.php on line 12
- > PHP Fatal error
Cannot use ChatwingFloatUI\\Object as Object because 'Object' is a special class name in wp-content/plugins/chatwing-float-chatbox/chatwing-sdk/src/ChatwingFloatUI/Api/Action.php on line 9
- > PHP Fatal error
Cannot use ChatwingFloatUI\\Object as Object because 'Object' is a special class name in wp-content/plugins/chatwing-float-chatbox/classes/DataModel.php on line 4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
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
Please fix the following attributes:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== Plugin Name: Chatwing Float Chatbox===
)
chatwing-float-chatbox/chatwing-float-chatbox.php 85% from 13 tests
Analyzing the main PHP file in "Plugin Name: Chatwing Float Chatbox" version 0.0.1
Please make the necessary changes and fix the following:
- Text Domain: Please use dashes and lowercase characters for text domains
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 201 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,663 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 314 | 587 | 1,639 |
JSON | 1 | 0 | 0 | 22 |
CSS | 2 | 0 | 12 | 2 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 9.47 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.09 |
▷ 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 | 8 | |
▷ Named functions | 4 | 50.00% |
▷ Anonymous functions | 4 | 50.00% |
Constants | 18 | |
▷ Global constants | 17 | 94.44% |
▷ Class constants | 1 | 5.56% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin