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
- > Warning in wp-content/plugins/live-chat-by-crowdstream/LiveChatByCrowdstream_Plugin.php+31
count(): Parameter must be an array or an object that implements Countable
Server metrics [RAM: ▲0.11MB] [CPU: ▼4.51ms] Passed 4 tests
An overview of server-side resources used by Live Chat by Crowdstream
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 38.18 ▼1.77 |
Dashboard /wp-admin | 3.41 ▲0.11 | 47.60 ▲0.63 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 49.52 ▲2.34 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 87.61 ▼14.57 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 35.66 ▼2.32 |
Live Chat by Crowdstream /wp-admin/plugins.php?page=LiveChatByCrowdstream_PluginSettings | 3.30 | 31.98 |
Server storage [IO: ▲0.94MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 11 new options
New WordPress options |
---|
widget_theysaidso_widget |
LiveChatByCrowdstream_Plugin__version |
LiveChatByCrowdstream_Plugin_cs_chat_app_id |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
LiveChatByCrowdstream_Plugin_cs_chat_track_pv |
theysaidso_admin_options |
LiveChatByCrowdstream_Plugin__installed |
... |
Browser metrics Passed 4 tests
Live Chat by Crowdstream: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.61 ▼0.76 | 1.92 ▲0.34 | 37.45 ▼2.38 |
Dashboard /wp-admin | 2,213 ▲25 | 4.84 ▼1.01 | 110.91 ▼5.81 | 39.88 ▼7.02 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.01 ▼0.01 | 35.03 ▼2.50 | 34.88 ▲4.64 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.14 ▲0.01 | 682.86 ▲39.92 | 59.74 ▼0.00 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.21 ▲0.01 | 95.31 ▼18.53 | 41.56 ▼5.22 |
Live Chat by Crowdstream /wp-admin/plugins.php?page=LiveChatByCrowdstream_PluginSettings | 886 | 2.03 | 24.23 | 29.39 |
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 did not uninstall successfully, leaving 11 options in the database
- LiveChatByCrowdstream_Plugin__installed
- LiveChatByCrowdstream_Plugin_cs_chat_track_pv
- LiveChatByCrowdstream_Plugin_cs_chat_app_id
- db_upgraded
- widget_recent-comments
- LiveChatByCrowdstream_Plugin__version
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- ...
Smoke tests 75% 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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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 items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/live-chat-by-crowdstream/live-chat-by-crowdstream.php:77
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Donate link: Invalid URI ("")
- Screenshots: These screenshots have no corresponding images in /assets: #1 ([Live Chat by Crowdstream](https://www.crowdstream.io/software/live-chat-for-websites "Live Chat WordPress plugin") chat window.), #2 (Online Live Chat side bar.)
- Tags: No valid plugin tags found
live-chat-by-crowdstream/live-chat-by-crowdstream.php Passed 13 tests
The main PHP script in "Live Chat by Crowdstream" version 0.1 is automatically included on every request by WordPress
85 characters long description:
Talk to visitors on your site. Create, support and engage customers, make them happy.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected538 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 181 | 544 | 538 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 10.17 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 1.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 2 | 33.33% |
▷ Concrete classes | 4 | 66.67% |
▷ Final classes | 0 | 0.00% |
Methods | 72 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 44 | 61.11% |
▷ Protected methods | 28 | 38.89% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.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
2 PNG files occupy 0.89MB with 0.60MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 727.11KB | 244.96KB | ▼ 66.31% |
assets/screenshot-1.png | 185.50KB | 58.51KB | ▼ 68.46% |