Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲5.33MB] [CPU: ▼13.60ms] 75% from 4 tests
Analyzing server-side resources used by WordLive | Livecall Addon for Woocommerce
Please take the time to fix the following items
- Extra RAM: Extra memory usage must be kept under 5MB (currently 5.33MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.32 ▲5.86 | 48.59 ▲6.61 |
Dashboard /wp-admin | 9.34 ▲6.04 | 50.33 ▲0.10 |
Posts /wp-admin/edit.php | 9.34 ▲5.98 | 58.02 ▼3.72 |
Add New Post /wp-admin/post-new.php | 9.34 ▲3.45 | 51.35 ▼57.37 |
Media Library /wp-admin/upload.php | 9.34 ▲6.11 | 50.86 ▲12.36 |
Freemius Debug [v.2.5.2] /wp-admin/admin.php?page=freemius | 9.34 | 48.02 |
Server storage [IO: ▲3.61MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 194 new files
Database: no new tables, 47 new options
New WordPress options |
---|
wordlive_livecall_btn_bg_color_hover |
wordlive_livecall_btn_border_width |
wordlive_livecall_btn_textalign |
wordlive_livecall_btn_width |
widget_recent-comments |
fs_gdpr |
wordlive_livecall_btn_border_width_hover |
wordlive_seller_email_temp |
wordlive_button_loc_shop_page |
wordlive_guestlogin_enable |
... |
Browser metrics Passed 4 tests
A check of browser resources used by WordLive | Livecall Addon for Woocommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,967 ▲221 | 13.58 ▼0.37 | 12.44 ▲10.80 | 32.41 ▼13.01 |
Dashboard /wp-admin | 2,229 ▲52 | 5.64 ▲0.04 | 96.78 ▲8.68 | 79.34 ▲34.63 |
Posts /wp-admin/edit.php | 2,153 ▲50 | 2.06 ▲0.02 | 39.29 ▼3.43 | 37.06 ▼0.02 |
Add New Post /wp-admin/post-new.php | 1,711 ▲174 | 22.03 ▲3.84 | 728.40 ▲80.82 | 61.58 ▼5.30 |
Media Library /wp-admin/upload.php | 1,437 ▲37 | 4.23 ▲0.02 | 104.59 ▼2.62 | 86.84 ▲42.73 |
Freemius Debug [v.2.5.2] /wp-admin/admin.php?page=freemius | 1,104 | 1.77 | 25.55 | 31.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
- This plugin did not uninstall successfully, leaving 10 options in the database
- theysaidso_admin_options
- db_upgraded
- fs_accounts
- widget_recent-comments
- fs_debug_mode
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- fs_active_plugins
- fs_gdpr
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=freemius
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
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
The following issues need your attention
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/wordlive-livecall-addon-for-woocommerce/templates/how-to-join-call.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_head() in wp-content/plugins/wordlive-livecall-addon-for-woocommerce/templates/livecall.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, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: woocommerce addon, woocommerce, woocommerce product live-chat, woocommerce live chat, woocommerce product options
wordlive-livecall-addon-for-woocommerce/wordlive.php 85% from 13 tests
The principal PHP file in "WordLive | Livecall Addon for Woocommerce" v. 1.2.1 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("wordlive-livecall-addon-for-woocommerce.php" instead of "wordlive.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin37,425 lines of code in 147 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 125 | 8,253 | 17,227 | 34,239 |
JavaScript | 6 | 728 | 393 | 2,740 |
CSS | 15 | 1 | 0 | 232 |
Markdown | 1 | 68 | 0 | 214 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
It is recommended to fix the following
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,089)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 92.77 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,089.00 |
Average method complexity | 4.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 89.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 48 | |
▷ Abstract classes | 2 | 4.17% |
▷ Concrete classes | 46 | 95.83% |
▷ Final classes | 0 | 0.00% |
Methods | 1,252 | |
▷ Static methods | 191 | 15.26% |
▷ Public methods | 871 | 69.57% |
▷ Protected methods | 17 | 1.36% |
▷ Private methods | 364 | 29.07% |
Functions | 117 | |
▷ Named functions | 117 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 149 | |
▷ Global constants | 102 | 68.46% |
▷ Class constants | 47 | 31.54% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 compressed PNG files occupy 0.01MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/assets/img/theme-icon.png | 5.89KB | 5.78KB | ▼ 2.02% |
assets/img/icon.png | 0.58KB | 0.71KB | 0.00% |
includes/assets/img/plugin-icon.png | 5.34KB | 5.26KB | ▼ 1.59% |