Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼1.82ms] Passed 4 tests
An overview of server-side resources used by CodeTeam LiveChat
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.45 ▼7.13 |
Dashboard /wp-admin | 3.34 ▲0.04 | 48.24 ▼2.57 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 53.58 ▲3.27 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 95.48 ▲11.12 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 35.86 ▼0.83 |
Settings /wp-admin/admin.php?page=ctlc_settings | 3.25 | 34.23 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
CodeTeam LiveChat: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,851 ▲80 | 13.33 ▼1.02 | 4.49 ▲2.03 | 42.80 ▼5.05 |
Dashboard /wp-admin | 2,217 ▲29 | 4.90 ▼1.00 | 112.10 ▼6.01 | 78.25 ▲35.37 |
Posts /wp-admin/edit.php | 2,118 ▲26 | 2.00 ▼0.00 | 38.12 ▲1.32 | 34.58 ▲1.21 |
Add New Post /wp-admin/post-new.php | 1,542 ▲25 | 23.25 ▲5.59 | 768.41 ▲105.56 | 53.49 ▲2.36 |
Media Library /wp-admin/upload.php | 1,408 ▲20 | 4.24 ▼0.02 | 96.89 ▼8.81 | 82.86 ▲36.16 |
Settings /wp-admin/admin.php?page=ctlc_settings | 980 | 2.10 | 27.12 | 35.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=ctlc_settings
- > User deprecated in wp-includes/functions.php+5453
Function get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead.
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/codeteam-livechat/index.php:11
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (Chat window: A chat with a LiveChat operator.), #2 (Online Visitors: see who's browsing your website in real-time.)
codeteam-livechat/index.php 92% from 13 tests
Analyzing the main PHP file in "CodeTeam LiveChat" version 1.1
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("codeteam-livechat.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin710 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 75 | 73 | 384 |
JavaScript | 1 | 29 | 3 | 218 |
CSS | 1 | 19 | 6 | 108 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 5.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 1 | 14.29% |
▷ Concrete classes | 6 | 85.71% |
▷ Final classes | 1 | 16.67% |
Methods | 24 | |
▷ Static methods | 3 | 12.50% |
▷ Public methods | 22 | 91.67% |
▷ Protected methods | 2 | 8.33% |
▷ 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
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.15MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
plugin_files/images/plusminus.png | 0.45KB | 0.43KB | ▼ 2.84% |
plugin_files/images/logo.png | 3.99KB | 2.06KB | ▼ 48.35% |
screenshot-1.png | 81.35KB | 33.57KB | ▼ 58.74% |
screenshot-2.png | 57.45KB | 20.25KB | ▼ 64.75% |
plugin_files/images/button_placement.png | 6.34KB | 6.09KB | ▼ 3.97% |