Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/sms4wp/includes/controls/sms4wp.lib.php+424
The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence
Server metrics [RAM: ▼1.17MB] [CPU: ▼47.09ms] Passed 4 tests
A check of server-side resources used by SMS for WordPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.79 ▼0.67 | 14.46 ▼32.44 |
Dashboard /wp-admin | 2.85 ▼0.45 | 17.82 ▼34.94 |
Posts /wp-admin/edit.php | 2.85 ▼0.50 | 16.28 ▼35.58 |
Add New Post /wp-admin/post-new.php | 2.85 ▼3.04 | 17.06 ▼85.41 |
Media Library /wp-admin/upload.php | 2.85 ▼0.38 | 14.79 ▼26.83 |
설정 /wp-admin/admin.php?page=sms4wp-configure | 2.85 | 18.29 |
메시지 보내기 /wp-admin/admin.php?page=sms4wp-send | 2.85 | 25.39 |
템플릿 관리 /wp-admin/admin.php?page=sms4wp-template | 2.85 | 17.39 |
전송 내역 /wp-admin/admin.php?page=sms4wp-send-list | 2.85 | 17.73 |
수신자 관리 /wp-admin/admin.php?page=sms4wp-receivers | 2.85 | 16.54 |
가져오기 /wp-admin/admin.php?page=sms4wp-book-file | 2.85 | 16.78 |
수신자 그룹관리 /wp-admin/admin.php?page=sms4wp-group | 2.85 | 15.73 |
Server storage [IO: ▲1.02MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 69 new files
Database: 5 new tables, 6 new options
New tables |
---|
wp_sms4wp_options |
wp_sms4wp_sends |
wp_sms4wp_templates |
wp_sms4wp_groups |
wp_sms4wp_receivers |
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for SMS for WordPress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲75 | 14.36 ▼0.37 | 2.29 ▲0.39 | 43.40 ▼2.48 |
Dashboard /wp-admin | 2,245 ▲65 | 5.59 ▼0.03 | 84.06 ▼9.83 | 44.58 ▲3.00 |
Posts /wp-admin/edit.php | 2,144 ▲44 | 2.01 ▲0.04 | 35.19 ▼5.24 | 47.50 ▲9.71 |
Add New Post /wp-admin/post-new.php | 1,564 ▲38 | 22.97 ▼0.61 | 664.82 ▼18.52 | 50.83 ▼0.82 |
Media Library /wp-admin/upload.php | 1,441 ▲44 | 4.11 ▼0.10 | 98.73 ▼14.36 | 50.87 ▲1.75 |
설정 /wp-admin/admin.php?page=sms4wp-configure | 1,067 | 1.69 | 24.92 | 59.45 |
메시지 보내기 /wp-admin/admin.php?page=sms4wp-send | 1,548 | 3.50 | 50.66 | 67.21 |
템플릿 관리 /wp-admin/admin.php?page=sms4wp-template | 995 | 2.02 | 25.48 | 45.23 |
전송 내역 /wp-admin/admin.php?page=sms4wp-send-list | 1,035 | 1.69 | 25.60 | 50.19 |
수신자 관리 /wp-admin/admin.php?page=sms4wp-receivers | 1,040 | 1.65 | 25.70 | 47.28 |
가져오기 /wp-admin/admin.php?page=sms4wp-book-file | 909 | 2.04 | 25.18 | 57.59 |
수신자 그룹관리 /wp-admin/admin.php?page=sms4wp-group | 1,104 | 2.05 | 23.46 | 46.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/sms4wp/includes/core/sms4wp.init.php+29
Undefined index: sms4wp_charge_notice_checker
- Zombie tables were found after uninstall: 5 tables
- wp_sms4wp_templates
- wp_sms4wp_options
- wp_sms4wp_sends
- wp_sms4wp_groups
- wp_sms4wp_receivers
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 10 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sms4wp-group
- > Notice in wp-content/plugins/sms4wp/includes/core/sms4wp.init.php+29
Undefined index: sms4wp_charge_notice_checker
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sms4wp-configure
- > Warning in wp-content/plugins/sms4wp/includes/models/sms4wp.lib.php+35
Division by zero
- > GET request to /wp-admin/admin.php?page=sms4wp-configure
- > Notice in wp-content/plugins/sms4wp/includes/views/templates/sms4wp_configure.php+33
Undefined index: sms4wp_plugin
- > GET request to /wp-admin/admin.php?page=sms4wp-configure
- > Warning in wp-content/plugins/sms4wp/includes/views/templates/sms4wp_configure.php+33
Invalid argument supplied for foreach()
- > GET request to /wp-admin/admin.php?page=sms4wp-configure
- > Notice in wp-content/plugins/sms4wp/includes/views/templates/sms4wp_configure.php+65
Undefined index: sms4wp_auth_signature
- > GET request to /wp-admin/admin.php?page=sms4wp-configure
- > Notice in wp-content/plugins/sms4wp/includes/views/templates/sms4wp_configure.php+85
Undefined index: sms4wp_charge_notice_count
- > GET request to /wp-admin/admin.php?page=sms4wp-configure
- > Notice in wp-content/plugins/sms4wp/includes/views/templates/sms4wp_configure.php+86
Undefined index: sms4wp_charge_notice_to
- > GET request to /wp-admin/admin.php?page=sms4wp-configure
- > Notice in wp-content/plugins/sms4wp/includes/views/templates/sms4wp_configure.php+87
Undefined index: sms4wp_charge_notice_from
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sms4wp-send
- > Notice in wp-content/plugins/sms4wp/includes/views/templates/sms4wp_sms_form.php+33
Undefined index: sms4wp_reply_number
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sms4wp-group
- > Warning in wp-content/plugins/sms4wp/includes/views/templates/sms4wp_group.php+93
count(): Parameter must be an array or an object that implements Countable
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sms4wp-receivers
- > Notice in wp-content/plugins/sms4wp/includes/views/templates/sms4wp_receivers.php+21
Undefined index: paged
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sms4wp-group
- > Notice in wp-content/plugins/sms4wp/includes/views/templates/sms4wp_group.php+15
Undefined index: sf
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sms4wp-receivers
- > Notice in wp-content/plugins/sms4wp/includes/views/templates/sms4wp_receivers.php+23
Undefined index: ss
- > GET request to /wp-admin/admin.php?page=sms4wp-template
- > Notice in wp-content/plugins/sms4wp/includes/views/templates/sms4wp_template.php+59
Undefined index: template
- > GET request to /wp-admin/admin.php?page=sms4wp-send-list
- > Notice in wp-content/plugins/sms4wp/includes/views/templates/sms4wp_send_list.php+74
Undefined index: send
- > GET request to /wp-admin/admin.php?page=sms4wp-receivers
- > Notice in wp-content/plugins/sms4wp/includes/views/templates/sms4wp_receivers.php+20
Undefined index: s
- > GET request to /wp-admin/admin.php?page=sms4wp-receivers
- > Notice in wp-content/plugins/sms4wp/includes/views/templates/sms4wp_receivers.php+77
Undefined index: receivers
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sms4wp-group
- > Notice in wp-content/plugins/sms4wp/includes/views/templates/sms4wp_group.php+170
Undefined variable: paged
- > GET request to /wp-admin/admin.php?page=sms4wp-group
- > Notice in wp-content/plugins/sms4wp/includes/views/templates/sms4wp_group.php+90
Undefined index: group
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
The following issues need your attention
- 24× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant SMS4WP_INC_VIEW_CSS_URL - assumed 'SMS4WP_INC_VIEW_CSS_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/sms4wp/includes/views/templates/sms4wp_sms_form.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'class.ole_pps_root.php' (include_path='.:/usr/share/php') in wp-content/plugins/sms4wp/includes/models/Excel/php_writeexcel/class.writeexcel_workbookbig.inc.php on line 28
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/sms4wp/includes/views/templates/sms4wp_template_form.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/sms4wp/includes/views/templates/sms4wp_book_file.php:5
- > PHP Warning
Use of undefined constant SMS4WP_INC_VIEW_CSS_URL - assumed 'SMS4WP_INC_VIEW_CSS_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/sms4wp/includes/views/templates/sms4wp_template.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/sms4wp/includes/views/templates/sms4wp_receivers.php:5
- > PHP Notice
Undefined index: sf in wp-content/plugins/sms4wp/includes/views/templates/sms4wp_group.php on line 15
- > PHP Warning
Use of undefined constant SMS4WP_INC_VIEW_CSS_URL - assumed 'SMS4WP_INC_VIEW_CSS_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/sms4wp/includes/views/templates/sms4wp_group_form.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/sms4wp/includes/views/templates/sms4wp_receiver_form.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/sms4wp/includes/views/templates/sms4wp_group.php:34
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: sms panel, register, sms, sms subscribe, notification...
sms4wp/sms4wp.php Passed 13 tests
Analyzing the main PHP file in "SMS for WordPress" version 1.1.8
33 characters long description:
Send SMS messages from WordPress!
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected11,823 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 40 | 2,493 | 3,302 | 10,152 |
JavaScript | 4 | 324 | 170 | 1,327 |
CSS | 2 | 38 | 14 | 231 |
Markdown | 1 | 40 | 0 | 113 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 42.23 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 213.00 |
Average method complexity | 3.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 67.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 22 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 324 | |
▷ Static methods | 5 | 1.54% |
▷ Public methods | 323 | 99.69% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 0.31% |
Functions | 88 | |
▷ Named functions | 87 | 98.86% |
▷ Anonymous functions | 1 | 1.14% |
Constants | 107 | |
▷ Global constants | 107 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
10 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/views/img/btn_down.png | 1.05KB | 0.22KB | ▼ 78.94% |
includes/views/img/error.png | 0.34KB | 0.28KB | ▼ 19.55% |
includes/views/img/file-upload-tick.png | 0.47KB | 0.41KB | ▼ 12.76% |
includes/views/img/btn_up.png | 1.03KB | 0.21KB | ▼ 79.71% |
includes/views/img/help-icon.png | 0.65KB | 0.56KB | ▼ 15.07% |