Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.96ms] Passed 4 tests
An overview of server-side resources used by Freshchat
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 42.57 ▲0.75 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.32 ▼5.64 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 47.37 ▲0.11 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 96.97 ▲0.33 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.51 ▼2.63 |
Server storage [IO: ▲6.76MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Freshchat
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲86 | 13.23 ▼1.13 | 4.86 ▲3.16 | 42.55 ▲2.57 |
Dashboard /wp-admin | 2,224 ▲36 | 4.86 ▼0.03 | 105.93 ▼4.02 | 42.19 ▼1.28 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.04 ▼0.00 | 39.37 ▲2.48 | 33.77 ▲2.18 |
Add New Post /wp-admin/post-new.php | 1,529 ▲15 | 17.67 ▲0.04 | 608.72 ▼74.58 | 47.92 ▼3.58 |
Media Library /wp-admin/upload.php | 1,406 ▲18 | 4.21 ▲0.02 | 94.66 ▼12.92 | 40.88 ▼4.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/freshchat/freshchat.php
- 3× 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/freshchat/widget-settings/add_to_page.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/freshchat/widget-settings/menu.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/freshchat/widget-settings/main.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Donate link: Invalid URI ("")
freshchat/freshchat.php Passed 13 tests
Analyzing the main PHP file in "Freshchat" version 2.3.4
82 characters long description:
Modern messaging software that your sales and customer engagement teams will love.
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
There were no executable files found in this plugin225 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 34 | 30 | 210 |
CSS | 1 | 2 | 0 | 15 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
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 | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
9 PNG files occupy 6.54MB with 3.49MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 3,024.04KB | 1,073.53KB | ▼ 64.50% |
screenshot-2.png | 2,974.90KB | 1,128.54KB | ▼ 62.06% |
screenshot-3.png | 688.68KB | 233.51KB | ▼ 66.09% |
assets/freshchat_wp_2x.png | 1.07KB | 0.65KB | ▼ 38.94% |
assets/freshchat_wp_blue_2x.png | 1.01KB | 0.65KB | ▼ 35.40% |