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.55MB] [CPU: ▼17.38ms] Passed 4 tests
An overview of server-side resources used by TG Send SMS Notifications for Wordpress and WooCommerce Twilio
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 38.64 ▼3.48 |
Dashboard /wp-admin | 3.44 ▲0.13 | 52.44 ▲2.25 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 50.14 ▼2.79 |
Add New Post /wp-admin/post-new.php | 3.29 ▼2.60 | 39.54 ▼65.51 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 36.25 ▲3.28 |
TGSMS Notify Settings /wp-admin/options-general.php?page=tgsmsnotify-main-settings | 3.33 | 35.99 |
Server storage [IO: ▲7.33MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 1,819 new files
Database: no new tables, 7 new options
New WordPress options |
---|
Activated_Plugin |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for TG Send SMS Notifications for Wordpress and WooCommerce Twilio
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.24 ▼0.18 | 1.85 ▼0.24 | 44.66 ▲5.01 |
Dashboard /wp-admin | 2,199 ▲22 | 5.70 ▲0.02 | 89.28 ▼3.35 | 38.42 ▼2.02 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▲0.05 | 41.35 ▲5.95 | 35.14 ▼1.07 |
Add New Post /wp-admin/post-new.php | 1,538 ▲10 | 18.34 ▼5.04 | 608.86 ▼22.41 | 76.62 ▲22.79 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.31 ▲0.11 | 98.79 ▼6.20 | 40.78 ▼6.25 |
TGSMS Notify Settings /wp-admin/options-general.php?page=tgsmsnotify-main-settings | 835 | 2.03 | 25.84 | 26.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/tg-sms-notify/uninstall.php+8
Trying to access array offset on value of type bool
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- Activated_Plugin
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/tg-sms-notify/tg-wp-sms-notify.php
- 1781× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\InstanceResource' not found in wp-content/plugins/tg-sms-notify/includes/twilio-php-main/src/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapPermissionInstance.php:29
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\InstanceContext' not found in wp-content/plugins/tg-sms-notify/includes/twilio-php-main/src/Twilio/Rest/Serverless/V1/Service/BuildContext.php:20
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\InstanceResource' not found in wp-content/plugins/tg-sms-notify/includes/twilio-php-main/src/Twilio/Rest/Bulkexports/V1/ExportConfigurationInstance.php:27
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\Options' not found in wp-content/plugins/tg-sms-notify/includes/twilio-php-main/src/Twilio/Rest/Api/V2010/Account/Usage/TriggerOptions.php:49
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\InstanceContext' not found in wp-content/plugins/tg-sms-notify/includes/twilio-php-main/src/Twilio/Rest/Proxy/V1/Service/Session/Participant/MessageInteractionContext.php:20
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\Page' not found in wp-content/plugins/tg-sms-notify/includes/twilio-php-main/src/Twilio/Rest/Preview/TrustedComms/CurrentCallPage.php:19
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\Domain' not found in wp-content/plugins/tg-sms-notify/includes/twilio-php-main/src/Twilio/Rest/Video.php:31
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\ListResource' not found in wp-content/plugins/tg-sms-notify/includes/twilio-php-main/src/Twilio/Rest/Wireless/V1/CommandList.php:20
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\InstanceContext' not found in wp-content/plugins/tg-sms-notify/includes/twilio-php-main/src/Twilio/Rest/Preview/Understand/Assistant/StyleSheetContext.php:22
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\InstanceContext' not found in wp-content/plugins/tg-sms-notify/includes/twilio-php-main/src/Twilio/Rest/Serverless/V1/Service/Environment/DeploymentContext.php:20
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Donate link: Invalid URI ("")
tg-sms-notify/tg-wp-sms-notify.php 92% from 13 tests
The main file in "TG Send SMS Notifications for Wordpress and WooCommerce Twilio" v. 2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("tg-sms-notify.php" instead of "tg-wp-sms-notify.php")
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
Everything looks great! No dangerous files found in this plugin86,284 lines of code in 1,817 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,812 | 25,236 | 102,746 | 86,151 |
Markdown | 2 | 25 | 0 | 79 |
JSON | 1 | 0 | 0 | 35 |
XML | 1 | 0 | 0 | 11 |
Dockerfile | 1 | 3 | 0 | 8 |
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.11 |
Average class complexity | 2.28 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 1.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 185 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 2,265 | |
▷ Abstract classes | 261 | 11.52% |
▷ Concrete classes | 2,004 | 88.48% |
▷ Final classes | 2 | 0.10% |
Methods | 12,229 | |
▷ Static methods | 488 | 3.99% |
▷ Public methods | 10,997 | 89.93% |
▷ Protected methods | 1,225 | 10.02% |
▷ Private methods | 7 | 0.06% |
Functions | 136 | |
▷ Named functions | 39 | 28.68% |
▷ Anonymous functions | 97 | 71.32% |
Constants | 16 | |
▷ Global constants | 4 | 25.00% |
▷ Class constants | 12 | 75.00% |
▷ Public constants | 12 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected