Benchmarks
Plugin footprint 83% 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 gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼20.85ms] Passed 4 tests
A check of server-side resources used by OneClick Chat to Order
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.44 ▼0.06 | 42.52 ▼45.71 |
Dashboard /wp-admin | 3.53 ▲0.18 | 51.31 ▼9.65 |
Posts /wp-admin/edit.php | 3.58 ▼0.27 | 48.23 ▼6.27 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.24 | 83.54 ▼21.77 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 35.30 ▲2.89 |
Global Settings /wp-admin/admin.php?page=wa-order&tab=welcome | 3.42 | 30.90 |
Add New Number /wp-admin/post-new.php?post_type=wa-order-numbers | 3.59 | 60.66 |
WhatsApp Numbers /wp-admin/edit.php?post_type=wa-order-numbers | 3.49 | 36.97 |
Server storage [IO: ▲0.71MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 49 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by OneClick Chat to Order
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,542 ▼245 | 14.23 ▲0.10 | 0.80 ▼1.40 | 17.09 ▼26.10 |
Dashboard /wp-admin | 2,267 ▲93 | 5.55 ▼0.04 | 98.49 ▼1.46 | 82.29 ▲39.83 |
Posts /wp-admin/edit.php | 2,172 ▲75 | 2.08 ▲0.12 | 38.08 ▲1.13 | 33.45 ▼2.32 |
Add New Post /wp-admin/post-new.php | 1,746 ▲217 | 21.92 ▼1.35 | 820.41 ▲174.61 | 84.32 ▲30.49 |
Media Library /wp-admin/upload.php | 1,466 ▲66 | 4.11 ▲0.01 | 98.34 ▼7.21 | 77.03 ▲33.20 |
Global Settings /wp-admin/admin.php?page=wa-order&tab=welcome | 1,665 | 9.05 | 304.16 | 115.32 |
Add New Number /wp-admin/post-new.php?post_type=wa-order-numbers | 1,532 | 2.45 | 47.89 | 55.03 |
WhatsApp Numbers /wp-admin/edit.php?post_type=wa-order-numbers | 1,139 | 1.96 | 33.15 | 33.93 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/oneclick-whatsapp-order/includes/buttons/wa-order-cart-page.php:234
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/oneclick-whatsapp-order/includes/buttons/wa-order-thank-you.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/oneclick-whatsapp-order/includes/buttons/wa-order-single-product.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/oneclick-whatsapp-order/includes/wa-metabox.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/oneclick-whatsapp-order/includes/buttons/wa-order-display-options.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/oneclick-whatsapp-order/includes/buttons/wa-order-floating-button.php:44
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/oneclick-whatsapp-order/includes/multiple-numbers.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/oneclick-whatsapp-order/includes/buttons/wa-order-shop-archive.php:110
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/oneclick-whatsapp-order/includes/number-redirect.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: order, product, whatsapp, woocommerce, whatsapp order...
oneclick-whatsapp-order/whatsapp-order.php 77% from 13 tests
The entry point to "OneClick Chat to Order" version 1.0.5 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("oneclick-whatsapp-order.php" instead of "whatsapp-order.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 267 characters long)
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
Everything looks great! No dangerous files found in this plugin7,299 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 304 | 453 | 4,444 |
PO File | 3 | 724 | 853 | 2,360 |
CSS | 5 | 17 | 4 | 461 |
JavaScript | 4 | 3 | 13 | 33 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 75.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 25.00% |
Functions | 81 | |
▷ Named functions | 78 | 96.30% |
▷ Anonymous functions | 3 | 3.70% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
11 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/gdpr-ready.png | 5.23KB | 2.35KB | ▼ 55.13% |
assets/images/whatsapp-menu.png | 0.59KB | 0.68KB | 0.00% |
assets/images/documentation.png | 5.05KB | 2.33KB | ▼ 53.95% |
assets/images/display-this-or-hide-that.png | 4.80KB | 2.05KB | ▼ 57.38% |
assets/images/fancy-floating-button.png | 4.90KB | 2.11KB | ▼ 56.88% |