Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲1.44MB] [CPU: ▲3.57ms] Passed 4 tests
A check of server-side resources used by Free Twilio SMS integration for WooCommerce by ShopMagic
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.92 ▲1.46 | 41.43 ▲2.92 |
Dashboard /wp-admin | 4.76 ▲1.41 | 53.25 ▼6.97 |
Posts /wp-admin/edit.php | 4.81 ▲1.45 | 87.65 ▲40.34 |
Add New Post /wp-admin/post-new.php | 7.34 ▲1.45 | 95.74 ▲9.60 |
Media Library /wp-admin/upload.php | 4.68 ▲1.45 | 41.69 ▲8.72 |
Server storage [IO: ▲13.58MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2,621 new files
Database: no new tables, 8 new options
New WordPress options |
---|
plugin_activation_shopmagic-for-twilio/shopmagic-for-twilio.php |
widget_recent-comments |
widget_recent-posts |
wpdesk_requirements_plugins_data |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Free Twilio SMS integration for WooCommerce by ShopMagic
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲71 | 14.26 ▼0.09 | 2.02 ▲0.17 | 38.93 ▼6.69 |
Dashboard /wp-admin | 2,192 ▲17 | 5.54 ▼0.17 | 94.70 ▼23.38 | 43.80 ▲1.44 |
Posts /wp-admin/edit.php | 2,103 ▲6 | 2.01 ▼0.01 | 39.86 ▲4.27 | 36.76 ▲3.79 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 24.89 ▲1.60 | 642.62 ▼126.81 | 81.46 ▲18.39 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.21 ▲0.03 | 99.90 ▲4.23 | 42.47 ▲2.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- plugin_activation_shopmagic-for-twilio/shopmagic-for-twilio.php
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2460× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'ShopMagicTwilioVendor\\Twilio\\InstanceContext' not found in wp-content/plugins/shopmagic-for-twilio/vendor_prefixed/twilio/sdk/src/Twilio/Rest/Trunking/V1/Trunk/PhoneNumberContext.php:21
- > PHP Fatal error
Uncaught Error: Class 'ShopMagicTwilioVendor\\Twilio\\InstanceContext' not found in wp-content/plugins/shopmagic-for-twilio/vendor_prefixed/twilio/sdk/src/Twilio/Rest/Preview/Marketplace/InstalledAddOnContext.php:30
- > PHP Fatal error
Uncaught Error: Class 'ShopMagicTwilioVendor\\Twilio\\Options' not found in wp-content/plugins/shopmagic-for-twilio/vendor_prefixed/twilio/sdk/src/Twilio/Rest/Studio/V1/Flow/ExecutionOptions.php:40
- > PHP Fatal error
Uncaught Error: Class 'ShopMagicTwilioVendor\\Twilio\\InstanceResource' not found in wp-content/plugins/shopmagic-for-twilio/vendor_prefixed/twilio/sdk/src/Twilio/Rest/Api/V2010/Account/OutgoingCallerIdInstance.php:33
- > PHP Fatal error
Uncaught Error: Class 'ShopMagicTwilioVendor\\Twilio\\Options' not found in wp-content/plugins/shopmagic-for-twilio/vendor_prefixed/twilio/sdk/src/Twilio/Rest/Routes/V2/SipDomainOptions.php:32
- > PHP Fatal error
Uncaught Error: Class 'ShopMagicTwilioVendor\\Twilio\\ListResource' not found in wp-content/plugins/shopmagic-for-twilio/vendor_prefixed/twilio/sdk/src/Twilio/Rest/Numbers/V2/HostedNumberOrderList.php:25
- > PHP Fatal error
Uncaught Error: Class 'ShopMagicTwilioVendor\\Twilio\\Rest\\AccountsBase' not found in wp-content/plugins/shopmagic-for-twilio/vendor_prefixed/twilio/sdk/src/Twilio/Rest/Accounts.php:6
- > PHP Fatal error
Uncaught Error: Class 'ShopMagicTwilioVendor\\Twilio\\InstanceResource' not found in wp-content/plugins/shopmagic-for-twilio/vendor_prefixed/twilio/sdk/src/Twilio/Rest/Api/V2010/Account/ConnectAppInstance.php:36
- > PHP Fatal error
Uncaught Error: Class 'ShopMagicTwilioVendor\\Twilio\\InstanceContext' not found in wp-content/plugins/shopmagic-for-twilio/vendor_prefixed/twilio/sdk/src/Twilio/Rest/Video/V1/Room/ParticipantContext.php:37
- > PHP Fatal error
Uncaught Error: Class 'ShopMagicTwilioVendor\\Twilio\\ListResource' not found in wp-content/plugins/shopmagic-for-twilio/vendor_prefixed/twilio/sdk/src/Twilio/Rest/Messaging/V1/Service/UsAppToPersonList.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: sms reminders, sms marketing, sms notification, woocommerce twilio sms notifications, twilio
shopmagic-for-twilio/shopmagic-for-twilio.php Passed 13 tests
The main PHP script in "Free Twilio SMS integration for WooCommerce by ShopMagic" version 2.1.7 is automatically included on every request by WordPress
46 characters long description:
Allows users to send SMS using Twilio account.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin128,787 lines of code in 2,613 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2,594 | 5,364 | 146,050 | 128,088 |
JSON | 13 | 0 | 0 | 538 |
CSS | 2 | 19 | 2 | 83 |
JavaScript | 2 | 1 | 0 | 53 |
Markdown | 2 | 5 | 0 | 25 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 2.34 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 79.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 248 | |
Interfaces | 31 | |
Traits | 7 | |
Classes | 3,115 | |
▷ Abstract classes | 348 | 11.17% |
▷ Concrete classes | 2,767 | 88.83% |
▷ Final classes | 5 | 0.18% |
Methods | 16,769 | |
▷ Static methods | 651 | 3.88% |
▷ Public methods | 15,086 | 89.96% |
▷ Protected methods | 1,628 | 9.71% |
▷ Private methods | 55 | 0.33% |
Functions | 143 | |
▷ Named functions | 16 | 11.19% |
▷ Anonymous functions | 127 | 88.81% |
Constants | 70 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 70 | 100.00% |
▷ Public constants | 70 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.10MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/assets/images/wpdesk.net.png | 2.36KB | 2.43KB | 0.00% |
vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/assets/images/flexibleshipping.com.png | 5.63KB | 3.68KB | ▼ 34.58% |
vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/assets/images/octolize.com.png | 88.91KB | 39.07KB | ▼ 56.06% |
vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/assets/images/logo@2x.png | 4.17KB | 4.47KB | 0.00% |
vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/assets/images/logo.png | 2.36KB | 2.43KB | 0.00% |