Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲4.43MB] [CPU: ▼286.90ms] Passed 4 tests
An overview of server-side resources used by Chat Button- Leads and Order over Chat
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.37 ▲4.85 | 83.65 ▲26.41 |
Dashboard /wp-admin | 8.38 ▲4.98 | 67.41 ▲28.96 |
Posts /wp-admin/edit.php | 8.39 ▲4.75 | 62.77 ▲19.62 |
Add New Post /wp-admin/post-new.php | 10.10 ▲3.14 | 118.08 ▼1,205.83 |
Media Library /wp-admin/upload.php | 8.39 ▲5.09 | 46.38 ▲12.20 |
WhatsApp Button /wp-admin/options-general.php?page=mvvwo_admin_ui | 8.39 | 49.90 |
Freemius Debug [v.2.4.2] /wp-admin/admin.php?page=freemius | 8.39 | 52.00 |
Server storage [IO: ▲4.20MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 183 new files
Database: no new tables, 5 new options
New WordPress options |
---|
fs_debug_mode |
fs_gdpr |
mvvwo_version |
fs_active_plugins |
fs_accounts |
Browser metrics Passed 4 tests
Checking browser requirements for Chat Button- Leads and Order over Chat
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,010 ▲288 | 17.54 ▲2.31 | 7.80 ▲2.03 | 2.66 ▲0.66 |
Dashboard /wp-admin | 3,107 ▲256 | 8.06 ▲1.91 | 140.57 ▼1.27 | 171.24 ▲7.36 |
Posts /wp-admin/edit.php | 2,949 ▲258 | 5.12 ▲1.88 | 77.20 ▲14.11 | 154.85 ▲10.93 |
Add New Post /wp-admin/post-new.php | 1,676 ▼35 | 20.52 ▼0.17 | 387.89 ▼45.99 | 154.86 ▼18.84 |
Media Library /wp-admin/upload.php | 1,734 ▲39 | 5.50 ▼0.03 | 111.84 ▼25.16 | 205.45 ▼21.15 |
WhatsApp Button /wp-admin/options-general.php?page=mvvwo_admin_ui | 1,602 | 5.76 | 102.93 | 364.51 |
Freemius Debug [v.2.4.2] /wp-admin/admin.php?page=freemius | 1,678 | 4.23 | 67.90 | 113.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/order-on-chat-for-woocommerce/freemius/includes/class-freemius.php+8552
Undefined property: stdClass::$plugins
- This plugin did not uninstall successfully, leaving 5 options in the database
- mvvwo_version
- fs_gdpr
- fs_active_plugins
- fs_accounts
- fs_debug_mode
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 5× PHP files output text when accessed directly:
- > /wp-content/plugins/order-on-chat-for-woocommerce/freemius/templates/ajax-loader.php
- > /wp-content/plugins/order-on-chat-for-woocommerce/includes/views/admin-head.php
- > /wp-content/plugins/order-on-chat-for-woocommerce/includes/views/admin-root.php
- > /wp-content/plugins/order-on-chat-for-woocommerce/includes/views/footer-scripts.php
- > /wp-content/plugins/order-on-chat-for-woocommerce/includes/views/header.php
- 85× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/order-on-chat-for-woocommerce/includes/views/admin-head.php on line 10
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/order-on-chat-for-woocommerce/freemius/templates/account/partials/addon.php on line 6
- > PHP Notice
Undefined variable: config in wp-content/plugins/order-on-chat-for-woocommerce/includes/views/header.php on line 187
- > PHP Notice
Undefined variable: config in wp-content/plugins/order-on-chat-for-woocommerce/includes/views/header.php on line 35
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/order-on-chat-for-woocommerce/includes/views/header.php on line 31
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/order-on-chat-for-woocommerce/includes/views/header.php on line 43
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/order-on-chat-for-woocommerce/includes/views/header.php on line 31
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/order-on-chat-for-woocommerce/includes/views/header.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function mvvwo_translate() in wp-content/plugins/order-on-chat-for-woocommerce/includes/views/cart-button.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function freemius() in wp-content/plugins/order-on-chat-for-woocommerce/freemius/templates/partials/network-activation.php:6
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: whatsapp button, woocommerce order on whatsapp, click to chat, woocommerce
order-on-chat-for-woocommerce/start.php 85% from 13 tests
This is the main PHP file of "Chat Button- Leads and Order over Chat" version 1.6.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Requires at least: The required version number must match the one declared in readme.txt ("3.9" instead of "4.0")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("order-on-chat-for-woocommerce.php" instead of "start.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected32,044 lines of code in 139 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 120 | 7,496 | 16,297 | 31,592 |
Markdown | 1 | 68 | 0 | 214 |
JavaScript | 6 | 34 | 59 | 197 |
JSON | 1 | 0 | 0 | 27 |
CSS | 11 | 0 | 0 | 14 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please tend to the following items
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 2,907)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 85.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,907.00 |
Average method complexity | 4.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 49 | |
▷ Abstract classes | 2 | 4.08% |
▷ Concrete classes | 47 | 95.92% |
▷ Final classes | 0 | 0.00% |
Methods | 1,170 | |
▷ Static methods | 178 | 15.21% |
▷ Public methods | 829 | 70.85% |
▷ Protected methods | 15 | 1.28% |
▷ Private methods | 326 | 27.86% |
Functions | 104 | |
▷ Named functions | 101 | 97.12% |
▷ Anonymous functions | 3 | 2.88% |
Constants | 129 | |
▷ Global constants | 104 | 80.62% |
▷ Class constants | 25 | 19.38% |
▷ Public constants | 25 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.27MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
assets/profile.png | 5.83KB | 2.52KB | ▼ 56.72% |
freemius/assets/img/order-on-chat-for-woocommerce.png | 13.93KB | 5.25KB | ▼ 62.30% |
assets/product_pos_chart.png | 232.23KB | 97.70KB | ▼ 57.93% |