Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼299.34ms] Passed 4 tests
Analyzing server-side resources used by Tikab SMS
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.19 | 66.29 ▲9.91 |
Dashboard /wp-admin | 3.54 ▲0.14 | 41.61 ▼38.14 |
Posts /wp-admin/edit.php | 3.77 ▲0.13 | 45.53 ▲1.91 |
Add New Post /wp-admin/post-new.php | 7.01 ▲0.04 | 101.55 ▼1,167.69 |
Media Library /wp-admin/upload.php | 3.42 ▲0.13 | 33.11 ▲6.57 |
About /wp-admin/admin.php?page=tikab-sms/about | 3.39 | 28.23 |
Send SMS /wp-admin/admin.php?page=tikab-sms/tikab-sms.php | 3.44 | 30.87 |
Newsletter subscribers /wp-admin/admin.php?page=tikab-sms/subscribe | 3.50 | 29.91 |
Posted /wp-admin/admin.php?page=tikab-sms/posted | 3.50 | 27.22 |
Setting /wp-admin/admin.php?page=tikab-sms/setting | 3.36 | 30.11 |
Server storage [IO: ▲1.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 56 new files
Database: 3 new tables, 3 new options
New tables |
---|
wp_ts_subscribes_group |
wp_ts_send |
wp_ts_subscribes |
New WordPress options |
---|
wp_sms_db_version |
recovery_mode_email_last_sent |
wp_sms_mcc |
Browser metrics Passed 4 tests
Checking browser requirements for Tikab SMS
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,873 ▲119 | 15.78 ▼0.19 | 5.72 ▼1.56 | 2.64 ▲0.09 |
Dashboard /wp-admin | 2,963 ▲105 | 6.20 ▲0.03 | 149.68 ▲15.71 | 155.49 ▼11.58 |
Posts /wp-admin/edit.php | 2,762 ▲71 | 3.27 ▲0.04 | 65.16 ▼4.29 | 137.06 ▼43.34 |
Add New Post /wp-admin/post-new.php | 1,829 ▲77 | 23.03 ▲1.32 | 437.70 ▼25.74 | 186.42 ▲27.82 |
Media Library /wp-admin/upload.php | 1,782 ▲84 | 5.58 ▲0.06 | 150.87 ▲2.06 | 212.56 ▲25.00 |
About /wp-admin/admin.php?page=tikab-sms/about | 1,054 | 2.63 | 53.56 | 98.96 |
Send SMS /wp-admin/admin.php?page=tikab-sms/tikab-sms.php | 909 | 2.18 | 40.91 | 84.90 |
Newsletter subscribers /wp-admin/admin.php?page=tikab-sms/subscribe | 1,328 | 2.98 | 65.41 | 136.52 |
Posted /wp-admin/admin.php?page=tikab-sms/posted | 1,193 | 2.76 | 54.21 | 106.20 |
Setting /wp-admin/admin.php?page=tikab-sms/setting | 1,164 | 2.75 | 83.46 | 111.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 3 tables in the database
- wp_ts_subscribes
- wp_ts_send
- wp_ts_subscribes_group
- The uninstall procedure has failed, leaving 3 options in the database
- wp_sms_mcc
- wp_sms_db_version
- recovery_mode_email_last_sent
Smoke tests 0% 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=tikab-sms/tikab-sms.php
- > Error in wp-content/plugins/tikab-sms/includes/classes/tikab-sms.class.php+42
Uncaught Error: Class 'SoapClient' not found in wp-content/plugins/tikab-sms/includes/classes/tikab-sms.class.php:42
Stack trace:
#0 wp-content/plugins/tikab-sms/includes/templates/settings/send-sms.php(48): Tikab_Webservice->get_credit()
#1 wp-content/plugins/tikab-sms/tikab-sms.php(186): include_once('/var/www/wordpr...')
#2 wp-includes/class-wp-hook.php(307): wp_send_sms_page()
#3 wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#4 wp-includes/plugin.php(474): WP_Hook->do_action()
#5 wp-admin/admin.php(259): do_action()
#6 {main}
thrown- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=tikab-sms/posted
- > Notice in wp-content/plugins/tikab-sms/tikab-sms.php+199
Undefined index: doaction
- > GET request to /wp-admin/admin.php?page=tikab-sms/subscribe
- > Notice in wp-content/plugins/tikab-sms/tikab-sms.php+267
Undefined index: wp_subscribe_name
- > GET request to /wp-admin/admin.php?page=tikab-sms/subscribe
- > Notice in wp-content/plugins/tikab-sms/tikab-sms.php+268
Undefined index: wp_subscribe_mobile
- > GET request to /wp-admin/admin.php?page=tikab-sms/subscribe
- > Notice in wp-content/plugins/tikab-sms/tikab-sms.php+269
Undefined index: wpsms_group_name
- > GET request to /wp-admin/admin.php?page=tikab-sms/subscribe
- > Notice in wp-content/plugins/tikab-sms/includes/templates/settings/subscribes.php+39
Undefined index: action
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=tikab-sms/setting
- > Notice in wp-content/plugins/tikab-sms/includes/templates/settings/setting.php+7
Undefined index: tab
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/tikab-sms/includes/templates/tikab-sms-tell-friend-head.php
- > /wp-content/plugins/tikab-sms/includes/newsletter/activation.php
- > /wp-content/plugins/tikab-sms/includes/newsletter/newsletter.php
- 21× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/tikab-sms/includes/templates/settings/setting.php:3
- > PHP Notice
Undefined index: tab in wp-content/plugins/tikab-sms/includes/templates/settings/newsletter.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/tikab-sms/includes/templates/tikab-sms-wpcf7-form.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/tikab-sms/tikab-sms.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/tikab-sms/includes/templates/settings/meta-box.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function is_rtl() in wp-content/plugins/tikab-sms/includes/templates/settings/web-service.php:12
- > PHP Notice
Undefined index: tab in wp-content/plugins/tikab-sms/includes/templates/settings/notification.php on line 31
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/tikab-sms/includes/templates/tikab-sms-widget.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function bloginfo() in wp-content/plugins/tikab-sms/includes/newsletter/form.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/tikab-sms/includes/templates/settings/about.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=tikab-sms/tikab-sms.php
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2 1:31592 "jQuery.Deferred exception: Cannot read properties of null (reading 'value')" "TypeError: Cannot read properties of null (reading 'value')\n at checkSMSLength (/wp-content/plugins/tikab-sms/js/functions.js:99:49)\n at charLeft2 (/wp-admin/admin.php?page=tikab-sms%2Ftikab-sms.php:151:3)\n at HTMLDocument.\u003Canonymous> (/wp-admin/admin.php?page=tikab-sms%2Ftikab-sms.php:173:3)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2:2:30340)" undefined
- > GET request to /wp-admin/admin.php?page=tikab-sms/tikab-sms.php
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2 1:31702 Uncaught TypeError: Cannot read properties of null (reading 'value')
Optimizations
Plugin configuration 97% 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 to be fixed:
- Screenshots: These screenshots require images: #1 (Screen shot (screenshot-1.png) in SMS Setting Page.), #2 (Screen shot (screenshot-2.png) in Webservice page.), #3 (Screen shot (screenshot-3.png) in Newslleter page.), #4 (Screen shot (screenshot-4.png) in Features page.), #5 (Screen shot (screenshot-5.png) in Notifications page.), #6 (Screen shot (screenshot-6.png) in Send SMS Page.), #7 (Screen shot (screenshot-7.png) in SMS Posted Page.), #8 (Screen shot (screenshot-8.png) in Subscribe list Page.), #9 (Screen shot (screenshot-9.png) in Dashboard right now.), #10 (Screen shot (screenshot-10.png) in SMS Subscribe widget.), #11 (Screen shot (screenshot-11.png) in Subscribe new-post.php.), #12 (Screen shot (screenshot-12.png) in Suggestion post in single.), #13 (Screen shot (screenshot-13.png) in Contact Form 7 page.)
tikab-sms/tikab-sms.php Passed 13 tests
The main PHP file in "Tikab SMS" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
100 characters long description:
Send a SMS via WordPress, Subscribe for SMS newsletter and send an SMS to the subscriber newsletter.
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
No dangerous file extensions were detected8,877 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 893 | 2,475 | 7,382 |
PO File | 3 | 495 | 1,135 | 939 |
JavaScript | 2 | 95 | 71 | 422 |
CSS | 4 | 5 | 0 | 134 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 86.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 388.00 |
Average method complexity | 8.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 82.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 177 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 171 | 96.61% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 3.39% |
Functions | 36 | |
▷ Named functions | 36 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 1 | 33.33% |
▷ Class constants | 2 | 66.67% |
▷ Public constants | 2 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
17 PNG files occupy 0.50MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-5.png | 191.38KB | 83.75KB | ▼ 56.24% |
images/close.png | 3.56KB | 2.26KB | ▼ 36.63% |
screenshot-9.png | 9.40KB | 6.53KB | ▼ 30.56% |
screenshot-4.png | 26.66KB | 12.57KB | ▼ 52.84% |
images/sms.png | 3.25KB | 0.57KB | ▼ 82.41% |