Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.10MB] [CPU: ▼12.37ms] Passed 4 tests
A check of server-side resources used by VatanSMS WP SMS
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.94 ▲0.48 | 44.61 ▼1.59 |
Dashboard /wp-admin | 4.20 ▲0.86 | 67.16 ▼8.40 |
Posts /wp-admin/edit.php | 4.31 ▲0.95 | 65.02 ▲18.30 |
Add New Post /wp-admin/post-new.php | 4.07 ▼1.82 | 49.79 ▼51.04 |
Media Library /wp-admin/upload.php | 4.11 ▲0.89 | 46.83 ▲11.57 |
WP-SMS Welcome /wp-admin/admin.php?page=wp-sms-welcome | 4.08 | 43.52 |
Server storage [IO: ▲1.49MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 93 new files
Database: no new tables, 10 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
wpsms_show_welcome_page |
wpsms_settings |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
wpsms_first_show_welcome_page |
widget_wpsms_widget |
Browser metrics Passed 4 tests
Checking browser requirements for VatanSMS WP SMS
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,958 ▲212 | 13.81 ▼0.84 | 5.33 ▲3.61 | 41.62 ▼0.94 |
Dashboard /wp-admin | 2,258 ▲70 | 4.87 ▼1.03 | 104.06 ▼4.77 | 104.71 ▲64.32 |
Posts /wp-admin/edit.php | 2,140 ▲54 | 1.98 ▼0.00 | 37.59 ▲1.71 | 33.85 ▼3.12 |
Add New Post /wp-admin/post-new.php | 1,559 ▲40 | 23.24 ▲0.23 | 698.86 ▲97.86 | 55.46 ▼16.45 |
Media Library /wp-admin/upload.php | 1,427 ▲45 | 4.21 ▼0.00 | 101.74 ▼2.56 | 75.25 ▲29.73 |
WP-SMS Welcome /wp-admin/admin.php?page=wp-sms-welcome | 830 | 1.77 | 24.05 | 29.37 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 10 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- wpsms_settings
- wpsms_show_welcome_page
- widget_recent-posts
- db_upgraded
- wpsms_first_show_welcome_page
- can_compress_scripts
- widget_wpsms_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-sms-vatansms-com/includes/templates/admin-newsletter.php
- 16× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-sms-vatansms-com/includes/admin/welcome/welcome.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-sms-vatansms-com/includes/admin/subscribers/subscribers.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-sms-vatansms-com/includes/admin/send/send-sms.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-sms-vatansms-com/includes/admin/outbox/outbox.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_SMS\\Gateway' not found in wp-content/plugins/wp-sms-vatansms-com/includes/gateways/class-wpsms-gateway-vatansms.php:5
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-sms-vatansms-com/includes/templates/widget.php:2
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wp-sms-vatansms-com/includes/admin/class-wpsms-admin.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-sms-vatansms-com/includes/templates/meta-box.php:24
- > PHP Fatal error
Uncaught Error: Class 'WP_SMS\\Option' not found in wp-content/plugins/wp-sms-vatansms-com/includes/admin/class-wpsms-admin.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-sms-vatansms-com/includes/templates/subscribe-form.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
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 (Screen shot 1), #2 (Screen shot 2), #3 (Screen shot 3)
wp-sms-vatansms-com/vatansms-wp-sms.php 77% from 13 tests
The principal PHP file in "VatanSMS WP SMS" v. 1.01 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("https://vatansms.com/")
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Main file name: Name the main plugin file the same as the plugin slug ("wp-sms-vatansms-com.php" instead of "vatansms-wp-sms.php")
Code Analysis Passed 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
Success! There were no dangerous files found in this plugin15,886 lines of code in 84 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 64 | 2,375 | 4,280 | 13,104 |
CSS | 8 | 103 | 46 | 1,209 |
JSON | 1 | 0 | 0 | 998 |
JavaScript | 11 | 37 | 51 | 575 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 35.45 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 389.00 |
Average method complexity | 4.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 82.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 66 | |
▷ Abstract classes | 1 | 1.52% |
▷ Concrete classes | 65 | 98.48% |
▷ Final classes | 0 | 0.00% |
Methods | 573 | |
▷ Static methods | 49 | 8.55% |
▷ Public methods | 524 | 91.45% |
▷ Protected methods | 40 | 6.98% |
▷ Private methods | 9 | 1.57% |
Functions | 17 | |
▷ Named functions | 12 | 70.59% |
▷ Anonymous functions | 5 | 29.41% |
Constants | 70 | |
▷ Global constants | 67 | 95.71% |
▷ Class constants | 3 | 4.29% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/favicon.png | 2.94KB | 1.98KB | ▼ 32.61% |
assets/css/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
assets/images/vatansms-logo.png | 14.54KB | 4.21KB | ▼ 71.03% |
assets/css/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |