Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.43MB] [CPU: ▲3.83ms] Passed 4 tests
Analyzing server-side resources used by Gupshup Messaging Automation for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.93 ▲0.47 | 47.42 ▲4.50 |
Dashboard /wp-admin | 3.77 ▲0.46 | 54.13 ▲2.25 |
Posts /wp-admin/edit.php | 3.82 ▲0.46 | 56.12 ▲3.69 |
Add New Post /wp-admin/post-new.php | 6.30 ▲0.42 | 104.27 ▲14.02 |
Media Library /wp-admin/upload.php | 3.63 ▲0.40 | 41.28 ▲4.88 |
Workflow /wp-admin/admin.php?page=template-gupshup-gs-workflow-admin | 3.61 | 43.68 |
Dashboard /wp-admin/admin.php?page=gupshup_gs_plugin | 3.60 | 36.97 |
Settings /wp-admin/admin.php?page=gupshup_gs_plugin_setting | 3.60 | 35.99 |
Server storage [IO: ▲0.37MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 35 new files
Database: 4 new tables, 8 new options
New tables |
---|
wp_gupshup_gs_workflow_log |
wp_gupshup_gs_abandoned_cart |
wp_gupshup_gs_workflow |
wp_gupshup_gs_action |
New WordPress options |
---|
widget_recent-comments |
gupshup_wp_uuid |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
gupshup_plugin_version |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Gupshup Messaging Automation for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,885 ▲139 | 13.88 ▼0.80 | 2.02 ▼0.06 | 44.21 ▲1.88 |
Dashboard /wp-admin | 2,251 ▲60 | 5.54 ▼0.36 | 102.01 ▼4.01 | 82.22 ▲38.95 |
Posts /wp-admin/edit.php | 2,152 ▲66 | 2.60 ▲0.58 | 37.87 ▲1.41 | 33.92 ▼3.75 |
Add New Post /wp-admin/post-new.php | 1,565 ▲32 | 23.47 ▲0.28 | 712.28 ▲6.94 | 36.21 ▼21.43 |
Media Library /wp-admin/upload.php | 1,439 ▲51 | 4.85 ▲0.64 | 106.65 ▲1.96 | 84.44 ▲37.29 |
Workflow /wp-admin/admin.php?page=template-gupshup-gs-workflow-admin | 839 | 2.22 | 27.33 | 26.50 |
Dashboard /wp-admin/admin.php?page=gupshup_gs_plugin | 837 | 2.21 | 25.61 | 22.89 |
Settings /wp-admin/admin.php?page=gupshup_gs_plugin_setting | 839 | 2.22 | 27.18 | 24.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- gupshup_wp_uuid
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/gupshup-messaging-automation-for-woocommerce/admin/Base/class-gupshup-gs-run-workflow.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (Create a workflow), #2 (Manage workflow screen), #3 (Connect your WhatsApp account), #4 (Connect your WhatsApp account), #5 (Message received)
gupshup-messaging-automation-for-woocommerce/gupshup-gs-plugin.php 77% from 13 tests
The main file in "Gupshup Messaging Automation for WooCommerce" v. 2.2.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Main file name: The principal plugin file should be the same as the plugin slug ("gupshup-messaging-automation-for-woocommerce.php" instead of "gupshup-gs-plugin.php")
- Text Domain: The text domain should only use lowercase characters and dashes
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin4,174 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 423 | 479 | 3,133 |
JavaScript | 6 | 40 | 15 | 766 |
CSS | 1 | 2 | 0 | 199 |
Markdown | 1 | 24 | 0 | 52 |
SVG | 1 | 1 | 0 | 24 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please tend to the following items
- Method cyclomatic complexity should be reduced to less than 100 (currently 110)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 134.00 |
Average method complexity | 3.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 110.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 2 | 10.00% |
Methods | 133 | |
▷ Static methods | 19 | 14.29% |
▷ Public methods | 131 | 98.50% |
▷ Protected methods | 1 | 0.75% |
▷ Private methods | 1 | 0.75% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 25 | |
▷ Global constants | 25 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin