Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.61ms] Passed 4 tests
This is a short check of server-side resources used by LiveChat LazucruB
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 42.43 ▼4.27 |
Dashboard /wp-admin | 3.30 ▲0.00 | 53.13 ▲4.47 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 49.44 ▲0.16 |
Add New Post /wp-admin/post-new.php | 5.88 ▼0.01 | 86.97 ▼26.24 |
Media Library /wp-admin/upload.php | 3.22 ▼0.01 | 36.06 ▲3.90 |
LiveChat LazucruB /wp-admin/options-general.php?page=realtimewp_settings_page | 3.19 | 33.39 |
Server storage [IO: ▲3.31MB] [DB: ▼0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for LiveChat LazucruB
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.48 ▲0.10 | 1.64 ▼0.59 | 42.53 ▼4.24 |
Dashboard /wp-admin | 2,213 ▲28 | 4.85 ▼1.00 | 98.96 ▼8.31 | 40.67 ▼1.03 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▲0.04 | 35.16 ▼5.79 | 33.44 ▼4.45 |
Add New Post /wp-admin/post-new.php | 1,517 ▼16 | 17.55 ▼5.78 | 666.03 ▲63.75 | 61.57 ▲13.02 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.18 ▼0.07 | 96.38 ▼0.31 | 40.76 ▼1.10 |
LiveChat LazucruB /wp-admin/options-general.php?page=realtimewp_settings_page | 809 | 2.15 | 22.84 | 24.52 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/livechat-lazucrub/template.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/livechat-lazucrub/admin.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_cookie_constants() in wp-content/plugins/livechat-lazucrub/livechat-lazucrub.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
4 plugin tags: online, chat, websocket, real time
livechat-lazucrub/livechat-lazucrub.php Passed 13 tests
"LiveChat LazucruB" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
25 characters long description:
chat client for wordpress
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
There were no executable files found in this plugin5,161 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 189 | 136 | 4,664 |
CSS | 2 | 42 | 1 | 209 |
PHP | 3 | 18 | 8 | 201 |
CoffeeScript | 1 | 9 | 6 | 87 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
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 | 6 | |
▷ Named functions | 6 | 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 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
9 PNG files occupy 3.12MB with 1.73MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/img/IconsetW.png | 25.86KB | 10.97KB | ▼ 57.59% |
lib/img/IconsetSmiles.png | 6.81KB | 5.57KB | ▼ 18.18% |
lib/img/emoji_spritesheet_3.png | 402.21KB | 109.53KB | ▼ 72.77% |
lib/img/emoji_spritesheet_1.png | 530.83KB | 127.64KB | ▼ 75.95% |
lib/img/IconsetW_1x.png | 12.66KB | 5.92KB | ▼ 53.21% |