Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.41ms] Passed 4 tests
This is a short check of server-side resources used by HappyFox Chat - Live Chat Plugin for WooCommerce Online Stores
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 36.25 ▼2.41 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.33 ▼6.55 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 48.21 ▲2.29 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 82.41 ▼14.18 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.81 ▲1.52 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for HappyFox Chat - Live Chat Plugin for WooCommerce Online Stores
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲46 | 14.22 ▼0.15 | 1.61 ▲0.01 | 39.93 ▼0.93 |
Dashboard /wp-admin | 2,213 ▲39 | 5.58 ▼0.03 | 83.99 ▼3.88 | 37.92 ▼1.22 |
Posts /wp-admin/edit.php | 2,115 ▲18 | 1.97 ▼0.03 | 35.07 ▼0.77 | 31.94 ▼2.97 |
Add New Post /wp-admin/post-new.php | 1,541 ▲5 | 22.83 ▲4.77 | 656.67 ▲56.35 | 54.88 ▼4.50 |
Media Library /wp-admin/upload.php | 1,421 ▲18 | 4.27 ▼0.10 | 104.03 ▲10.42 | 45.16 ▲2.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/happyfox-chat-for-woocommerce/happyfox-chat-for-woocommerce-settings.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/happyfox-chat-for-woocommerce/happyfox-chat-for-woocommerce-settings.php:19
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/happyfox-chat-for-woocommerce/happyfox-chat-for-woocommerce-settings.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/happyfox-chat-for-woocommerce/happyfox-chat-for-woocommerce-cart-info.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/happyfox-chat-for-woocommerce/happyfox-chat-for-woocommerce.php:12
- > PHP Warning
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 97% 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 your attention:
- Tags: You are using too many tags: 38 tag instead of maximum 10
happyfox-chat-for-woocommerce/happyfox-chat-for-woocommerce.php Passed 13 tests
"HappyFox Chat - Live Chat Plugin for WooCommerce Online Stores" version 1.2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
66 characters long description:
This plugin adds the HappyFox Chat widget to your WooCommerce site
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
Good job! No executable or dangerous file extensions detected593 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 69 | 23 | 474 |
CSS | 1 | 22 | 1 | 119 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
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 | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/woocommerce.png | 4.50KB | 2.54KB | ▼ 43.58% |
images/happyfox.png | 13.64KB | 3.92KB | ▼ 71.22% |