Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/tw-simple-click-call/twilio.php+24
Constant WP_DEBUG already defined
Server metrics [RAM: ▼1.96MB] [CPU: ▼54.34ms] Passed 4 tests
An overview of server-side resources used by Twilio Simple Click Call
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.83 ▼39.01 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.69 ▼47.39 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.90 ▼40.28 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.47 ▼90.69 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 6.13 ▼30.25 |
Twilio Call /wp-admin/admin.php?page=twscc_edit_twilio_details | 2.05 | 5.90 |
Make Call /wp-admin/admin.php?page=twscc_make_call | 2.05 | 7.09 |
Logs /wp-admin/admin.php?page=twscc_logs | 2.05 | 6.49 |
Server storage [IO: ▲1.68MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 284 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_twilio_detail |
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Twilio Simple Click Call
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,914 ▲128 | 13.83 ▼0.73 | 8.12 ▲5.72 | 42.27 ▼2.95 |
Dashboard /wp-admin | 2,234 ▲57 | 5.62 ▲0.08 | 82.88 ▼18.62 | 42.13 ▼1.14 |
Posts /wp-admin/edit.php | 2,139 ▲39 | 2.03 ▲0.04 | 43.58 ▲5.83 | 35.44 ▼0.14 |
Add New Post /wp-admin/post-new.php | 1,566 ▲30 | 23.01 ▼0.14 | 667.54 ▼17.65 | 57.04 ▼12.59 |
Media Library /wp-admin/upload.php | 1,433 ▲33 | 4.15 ▼0.12 | 103.66 ▼12.30 | 46.00 ▼1.84 |
Twilio Call /wp-admin/admin.php?page=twscc_edit_twilio_details | 1,112 | 2.03 | 28.73 | 37.80 |
Make Call /wp-admin/admin.php?page=twscc_make_call | 2,668 | 3.71 | 53.28 | 104.10 |
Logs /wp-admin/admin.php?page=twscc_logs | 873 | 2.07 | 24.92 | 29.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/tw-simple-click-call/twilio.php+24
Constant WP_DEBUG already defined
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_twilio_detail
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
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
These server-side errors were triggered
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=twscc_logs
- > Notice in wp-content/plugins/tw-simple-click-call/twilio.php+24
Constant WP_DEBUG already defined
- 27 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=twscc_logs
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/admin.php?page=twscc_make_call
- > Notice in wp-content/plugins/tw-simple-click-call/includes/twilio_main.php+36
Undefined variable: token
- > GET request to /wp-admin/admin.php?page=twscc_make_call
- > Notice in wp-content/plugins/tw-simple-click-call/includes/twilio_main.php+37
Undefined variable: twilio_number
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 fix the following items
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/tw-simple-click-call/twilio-php/tests/Bootstrap.php
- > /wp-content/plugins/tw-simple-click-call/twilio.php
- > /wp-content/plugins/tw-simple-click-call/class/base.php
- 172× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Services_Twilio_ListResource' not found in wp-content/plugins/tw-simple-click-call/twilio-php/Services/Twilio/Rest/Applications.php:3
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/tw-simple-click-call/twilio-php/tests/resources/ConnectAppsTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'Services_Twilio_PricingInstanceResource' not found in wp-content/plugins/tw-simple-click-call/twilio-php/Services/Twilio/Rest/Pricing/VoiceNumber.php:3
- > PHP Fatal error
Uncaught Error: Class 'Services_Twilio_NextGenInstanceResource' not found in wp-content/plugins/tw-simple-click-call/twilio-php/Services/Twilio/MonitorInstanceResource.php:3
- > PHP Fatal error
Uncaught Error: Class 'Services_Twilio_ListResource' not found in wp-content/plugins/tw-simple-click-call/twilio-php/Services/Twilio/UsageResource.php:9
- > PHP Fatal error
Uncaught Error: Class 'Services_Twilio_TaskRouterInstanceResource' not found in wp-content/plugins/tw-simple-click-call/twilio-php/Services/Twilio/Rest/TaskRouter/Task.php:3
- > PHP Fatal error
Uncaught Error: Class 'Services_Twilio_TaskRouterInstanceResource' not found in wp-content/plugins/tw-simple-click-call/twilio-php/Services/Twilio/Rest/TaskRouter/WorkersStatistics.php:3
- > PHP Fatal error
Uncaught Error: Class 'Services_Twilio_ListResource' not found in wp-content/plugins/tw-simple-click-call/twilio-php/Services/Twilio/Rest/Recordings.php:3
- > PHP Fatal error
Uncaught Error: Class 'Services_Twilio_NextGenListResource' not found in wp-content/plugins/tw-simple-click-call/twilio-php/Services/Twilio/TaskRouterListResource.php:3
- > PHP Warning
require_once(Twilio.php): failed to open stream: No such file or directory in wp-content/plugins/tw-simple-click-call/twilio-php/tests/BuildQueryTest.php on line 3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=twscc_edit_twilio_details
- > Network (severe)
wp-content/plugins/tw-simple-click-call/css/SinkinSans-600SemiBold.otf - Failed to load resource: the server responded with a status of 404 (Not Found)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=twscc_make_call
- > Network (severe)
wp-content/plugins/tw-simple-click-call/css/SinkinSans-500Medium.otf - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=twscc_make_call
- > Network (severe)
wp-content/plugins/tw-simple-click-call/js/twilio-custom.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Donate link: Please fix this invalid URI: ""
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
tw-simple-click-call/twilio.php 85% from 13 tests
The main PHP script in "Twilio Simple Click Call" version 1.0.3 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("tw-simple-click-call.php" instead of "twilio.php")
- Description: The description should be shorter than 140 characters (currently 297 characters long)
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
Success! There were no dangerous files found in this plugin11,865 lines of code in 237 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 185 | 1,036 | 1,790 | 5,930 |
HTML | 7 | 486 | 0 | 2,075 |
CSS | 3 | 347 | 49 | 1,982 |
reStructuredText | 28 | 1,008 | 1,344 | 709 |
JavaScript | 4 | 59 | 74 | 529 |
Markdown | 3 | 166 | 0 | 350 |
make | 2 | 36 | 9 | 157 |
Python | 2 | 72 | 143 | 97 |
JSON | 1 | 0 | 0 | 28 |
XML | 1 | 0 | 0 | 7 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 2.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 1.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 202 | |
▷ Abstract classes | 14 | 6.93% |
▷ Concrete classes | 188 | 93.07% |
▷ Final classes | 0 | 0.00% |
Methods | 469 | |
▷ Static methods | 15 | 3.20% |
▷ Public methods | 433 | 92.32% |
▷ Protected methods | 31 | 6.61% |
▷ Private methods | 5 | 1.07% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 3 | 75.00% |
▷ Class constants | 1 | 25.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
13 PNG files occupy 0.12MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/lorem.png | 1.44KB | 0.58KB | ▼ 59.44% |
images/check_radio_sheet_new.png | 2.19KB | 1.10KB | ▼ 49.55% |
images/check_radio_sheet.png | 4.53KB | 1.46KB | ▼ 67.78% |
images/arrow.png | 2.95KB | 0.25KB | ▼ 91.65% |
images/record.png | 1.25KB | 0.47KB | ▼ 62.49% |