Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.69MB] [CPU: ▼36.87ms] Passed 4 tests
A check of server-side resources used by Wootalk Woocommerce Chat
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 42.04 ▲0.57 |
Dashboard /wp-admin | 3.26 ▼0.08 | 24.76 ▼47.20 |
Posts /wp-admin/edit.php | 3.26 ▼0.09 | 23.26 ▼18.68 |
Add New Post /wp-admin/post-new.php | 3.26 ▼2.62 | 24.71 ▼72.42 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 23.53 ▼9.19 |
Server storage [IO: ▲0.66MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 36 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_wootalk_conversation |
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Wootalk Woocommerce Chat: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,941 ▲180 | 13.54 ▼0.99 | 9.66 ▲7.82 | 42.98 ▼2.17 |
Dashboard /wp-admin | 2,245 ▲74 | 5.63 ▲0.04 | 89.60 ▼15.10 | 44.21 ▲2.63 |
Posts /wp-admin/edit.php | 2,150 ▲50 | 2.03 ▲0.01 | 35.98 ▲0.87 | 30.39 ▼3.12 |
Add New Post /wp-admin/post-new.php | 1,570 ▲44 | 18.60 ▼4.93 | 645.90 ▲0.09 | 63.50 ▲5.36 |
Media Library /wp-admin/upload.php | 1,447 ▲47 | 4.25 ▲0.08 | 102.11 ▲5.86 | 41.92 ▲2.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin cannot be uninstalled
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_wootalk_conversation
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wootalk/inc/views/wootalk_form.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/wootalk/inc/views/send-button.php:8
- > PHP Fatal error
Uncaught Error: Call to a member function get_order_conversations() on null in wp-content/plugins/wootalk/inc/views/admin-chat-box.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wootalk/inc/views/email-template.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: chat, wordpress chat, woocommerce chat, user chat
wootalk/wootalk.php 92% from 13 tests
"Wootalk Woocommerce Chat" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Requires at least: Required version must match the one declared in readme.txt ("4.9" instead of "3.0.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin4,745 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 480 | 24 | 3,237 |
PHP | 9 | 291 | 206 | 1,330 |
JavaScript | 2 | 18 | 0 | 178 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 46.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 100.00 |
Average method complexity | 3.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 64 | |
▷ Static methods | 1 | 1.56% |
▷ Public methods | 63 | 98.44% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.56% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
17 PNG files occupy 0.47MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 55.91KB | 21.13KB | ▼ 62.21% |
inc/assets/icon/home.png | 0.79KB | 0.83KB | 0.00% |
inc/assets/images/calendar.png | 0.61KB | 0.72KB | 0.00% |
inc/assets/images/sidebar-icon.png | 0.86KB | 0.46KB | ▼ 47.06% |
screenshot-4.png | 69.68KB | 25.66KB | ▼ 63.18% |