Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼140.44ms] Passed 4 tests
A check of server-side resources used by Chatra Live Chat + ChatBot + Cart Saver
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 38.02 ▲16.61 |
Dashboard /wp-admin | 3.07 ▲0.02 | 48.16 ▼0.04 |
Posts /wp-admin/edit.php | 3.12 ▲0.02 | 45.59 ▼1.61 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 89.72 ▼562.64 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 31.30 ▲2.52 |
Chatra widget /wp-admin/options-general.php?page=options-chatra | 2.98 | 27.17 |
Server storage [IO: ▲1.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Chatra Live Chat + ChatBot + Cart Saver
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲112 | 16.25 ▲0.67 | 10.57 ▲2.15 | 44.26 ▼5.16 |
Dashboard /wp-admin | 2,972 ▲38 | 5.94 ▼0.25 | 161.69 ▼4.98 | 107.46 ▼6.02 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.71 ▼0.02 | 71.65 ▼7.09 | 83.79 ▼1.81 |
Add New Post /wp-admin/post-new.php | 1,607 ▼76 | 18.86 ▲0.39 | 408.05 ▲30.08 | 101.23 ▼8.34 |
Media Library /wp-admin/upload.php | 1,815 ▲8 | 5.00 ▼0.05 | 149.76 ▼4.09 | 114.56 ▲1.23 |
Chatra widget /wp-admin/options-general.php?page=options-chatra | 1,021 | 2.22 | 53.64 | 60.41 |
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
The plugin uninstalled successfully, without leaving any zombie files or tables
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 | 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
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chatra-live-chat/chatra.php:16
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Operator dashboard with visitor information. Shows you everything you want to know about your visitors.), #2 (Clean and easy to learn. Beautifully designed on both visitor's and agent's sides.), #3 (Operator dashboard.), #4 (Reports - Satisfaction report.), #5 (Distinctive Features. Fully customizable: pick a look to match your website design.), #6 (By humans for humans :))
- Tags: Too many tags (18 tag instead of maximum 10); only the first 5 tags are used in your directory listing
chatra-live-chat/chatra.php 85% from 13 tests
The principal PHP file in "Chatra Live Chat + ChatBot + Cart Saver" v. 1.0.11 is loaded by WordPress automatically on each request
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 195 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("chatra-live-chat.php" instead of "chatra.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected189 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 4 | 36 | 44 | 153 |
PHP | 1 | 4 | 16 | 36 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.05 |
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 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.18MB with 0.11MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 170.14KB | 61.08KB | ▼ 64.10% |
screenshot-6.png | 17.29KB | 6.79KB | ▼ 60.72% |