Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.52MB] [CPU: ▼3.49ms] Passed 4 tests
An overview of server-side resources used by ClickSend SMS Woo Integration
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.99 ▲0.53 | 42.44 ▲1.95 |
Dashboard /wp-admin | 3.86 ▲0.55 | 46.54 ▼0.30 |
Posts /wp-admin/edit.php | 3.91 ▲0.55 | 51.92 ▲6.43 |
Add New Post /wp-admin/post-new.php | 6.40 ▲0.51 | 84.30 ▼18.32 |
Media Library /wp-admin/upload.php | 3.72 ▲0.49 | 36.37 ▲2.73 |
Activate ClickSend /wp-admin/admin.php?page=clicksend-sms | 3.70 | 34.70 |
SMS Templates /wp-admin/admin.php?page=clicksend-sms&tab=sms-templates | 3.69 | 32.42 |
SMS Automation /wp-admin/admin.php?page=clicksend-sms&tab=woo-status | 3.68 | 32.28 |
Send Bulk SMS /wp-admin/admin.php?page=cs-send-bulk-sms | 3.69 | 32.04 |
Server storage [IO: ▲0.52MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 51 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_cwi_sms_logs |
wp_cwi_sms_template |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
recovery_mode_email_last_sent |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by ClickSend SMS Woo Integration
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,876 ▲119 | 13.23 ▼1.14 | 4.53 ▲2.59 | 43.18 ▲6.09 |
Dashboard /wp-admin | 2,282 ▲103 | 5.89 ▲1.01 | 102.20 ▼8.16 | 41.54 ▼2.20 |
Posts /wp-admin/edit.php | 2,168 ▲79 | 2.08 ▲0.05 | 38.18 ▼2.44 | 30.57 ▼4.37 |
Add New Post /wp-admin/post-new.php | 1,579 ▲37 | 23.41 ▲5.03 | 682.54 ▲68.57 | 37.62 ▼18.15 |
Media Library /wp-admin/upload.php | 1,467 ▲79 | 4.43 ▲0.23 | 99.90 ▲0.54 | 44.56 ▲0.97 |
Activate ClickSend /wp-admin/admin.php?page=clicksend-sms | 1,043 | 1.89 | 27.79 | 32.50 |
SMS Templates /wp-admin/admin.php?page=clicksend-sms&tab=sms-templates | 970 | 1.81 | 32.49 | 32.86 |
SMS Automation /wp-admin/admin.php?page=clicksend-sms&tab=woo-status | 770 | 1.59 | 8.58 | 18.12 |
Send Bulk SMS /wp-admin/admin.php?page=cs-send-bulk-sms | 834 | 1.76 | 25.46 | 22.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure failed, leaving 2 tables in the database
- wp_cwi_sms_template
- wp_cwi_sms_logs
- This plugin did not uninstall successfully, leaving 7 options in the database
- recovery_mode_email_last_sent
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=clicksend-sms&tab=sms-templates
- > POST request to /wp-admin/admin-ajax.php
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- > GET request to /wp-admin/admin.php?page=clicksend-sms&tab=woo-status
- > Error in wp-content/plugins/clicksendsms/admin/modules/woo-integration/class-clicksend-woo-integration-admin-module.php+657
Uncaught Error: Call to undefined function wc_get_order_statuses() in wp-content/plugins/clicksendsms/admin/modules/woo-integration/class-clicksend-woo-integration-admin-module.php:657
Stack trace:
#0 wp-includes/class-wp-hook.php(310): Clicksend_Woo_Integration_Admin_Module->tab_content_activate_api_key()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-content/plugins/clicksendsms/admin/modules/settings/partials/clicksend-woo-integration-admin-display.php(34): do_action()
#4 wp-content/plugins/clicksendsms/admin/class-clicksend-woo-integration-admin.php(136): require_once('/var/www/wordpr...')
#5 wp-includes/class-wp-hook.php(310): Clicksend_Woo_Integration_Admin->admin_page_html()
#6 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#7 wp-includes/plugin.
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 fix the following items
- 9× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/clicksendsms/admin/modules/sms-templates/partials/clicksend-partials-sms-templates.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/clicksendsms/admin/modules/settings/partials/clicksend-woo-integration-admin-display.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/clicksendsms/admin/modules/settings/partials/clicksend-partials-settings.php:43
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/clicksendsms/admin/modules/settings/partials/clicksend-partials-plugin-messege.php:21
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/clicksendsms/admin/modules/settings/partials/clicksend-woo-integration-admin-display.php on line 24
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/clicksendsms/admin/modules/woo-integration/partials/clicksend-partials-woo-status.php:30
- > PHP Notice
Undefined variable: tabs in wp-content/plugins/clicksendsms/admin/modules/settings/partials/clicksend-woo-integration-admin-display.php on line 24
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/clicksendsms/admin/modules/woo-integration/partials/clicksend-partials-woo-send-bulk-sms.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/clicksendsms/admin/modules/woo-integration/partials/clicksend-woo-sms-logs-display.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Plugin Activation Screen.), #2 (Single order template screen.), #3 (Manage Templates)
clicksendsms/clicksend-woo-integration.php 77% from 13 tests
This is the main PHP file of "ClickSend SMS Woo Integration" version 1.2.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("clicksendsms.php" instead of "clicksend-woo-integration.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 292 characters long)
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin4,223 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 291 | 1,448 | 2,888 |
JavaScript | 6 | 105 | 190 | 724 |
CSS | 7 | 57 | 42 | 611 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 14.54 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 72.00 |
Average method complexity | 3.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 86 | |
▷ Static methods | 18 | 20.93% |
▷ Public methods | 78 | 90.70% |
▷ Protected methods | 1 | 1.16% |
▷ Private methods | 7 | 8.14% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 6 | 54.55% |
▷ Class constants | 5 | 45.45% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.32MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 43.20KB | 17.65KB | ▼ 59.15% |
assets/ss-dashboard.png | 51.30KB | 20.89KB | ▼ 59.28% |
assets/banner-772x250.png | 149.06KB | 50.18KB | ▼ 66.34% |
assets/ss-templates.png | 57.70KB | 24.05KB | ▼ 58.31% |
assets/ss-single-order.png | 22.79KB | 10.41KB | ▼ 54.33% |