Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼6.77ms] Passed 4 tests
An overview of server-side resources used by Click-to-Call for Twilio
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 35.48 ▼4.70 |
Dashboard /wp-admin | 3.37 ▲0.07 | 45.66 ▼0.30 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 46.00 ▼4.16 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 81.22 ▼17.90 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 37.38 ▲2.27 |
Server storage [IO: ▲11.24MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2,680 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Click-to-Call for Twilio
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,937 ▲191 | 14.73 ▲0.36 | 10.49 ▲8.62 | 39.85 ▼3.39 |
Dashboard /wp-admin | 2,226 ▲35 | 4.85 ▼0.07 | 110.54 ▲7.43 | 38.87 ▼5.97 |
Posts /wp-admin/edit.php | 2,109 ▲17 | 2.04 ▼0.02 | 39.19 ▼2.25 | 33.79 ▼4.05 |
Add New Post /wp-admin/post-new.php | 1,531 ▲12 | 23.36 ▲0.25 | 675.10 ▲22.57 | 57.92 ▲2.99 |
Media Library /wp-admin/upload.php | 1,408 ▲20 | 4.19 ▼0.05 | 112.41 ▲1.45 | 47.53 ▲0.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/click-to-call-for-twilio/lib/screen_for_machine.php
- > /wp-content/plugins/click-to-call-for-twilio/lib/outbound.php
- 2595× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\InstanceResource' not found in wp-content/plugins/click-to-call-for-twilio/lib/Twilio/Rest/Api/V2010/AccountInstance.php:31
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\ListResource' not found in wp-content/plugins/click-to-call-for-twilio/lib/Twilio/TwilioFull/Rest/Preview/Wireless/CommandList.php:20
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\Options' not found in wp-content/plugins/click-to-call-for-twilio/lib/Twilio/TwilioFull/Rest/Video/V1/RoomOptions.php:50
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\ListResource' not found in wp-content/plugins/click-to-call-for-twilio/lib/Twilio/TwilioFull/Rest/Preview/Sync/ServiceList.php:21
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\Page' not found in wp-content/plugins/click-to-call-for-twilio/lib/Twilio/TwilioFull/Rest/Api/V2010/Account/OutgoingCallerIdPage.php:14
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\InstanceResource' not found in wp-content/plugins/click-to-call-for-twilio/lib/Twilio/Rest/IpMessaging/V1/Service/ChannelInstance.php:35
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\ListResource' not found in wp-content/plugins/click-to-call-for-twilio/lib/Twilio/Rest/Api/V2010/Account/ShortCodeList.php:17
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\Options' not found in wp-content/plugins/click-to-call-for-twilio/lib/Twilio/TwilioFull/Rest/Preview/Marketplace/InstalledAddOnOptions.php:40
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\ListResource' not found in wp-content/plugins/click-to-call-for-twilio/lib/Twilio/TwilioFull/Rest/Wireless/V1/RatePlanList.php:18
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\Options' not found in wp-content/plugins/click-to-call-for-twilio/lib/Twilio/TwilioFull/Rest/Taskrouter/V1/Workspace/WorkspaceRealTimeStatisticsOptions.php:26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% 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 need descriptions #1, #2, #3, #4, #5, #6, #7 in click-to-call-for-twilio/assets to your readme.txt
- Donate link: Invalid url: ""
- Tags: There are too many tags (12 tag instead of maximum 10)
click-to-call-for-twilio/click-to-call-twilio.php 92% from 13 tests
"Click-to-Call for Twilio" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("click-to-call-for-twilio.php" instead of "click-to-call-twilio.php")
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
Everything looks great! No dangerous files found in this plugin71,833 lines of code in 1,388 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,380 | 18,840 | 77,678 | 69,909 |
SVG | 1 | 3 | 1 | 1,373 |
JavaScript | 4 | 22 | 66 | 464 |
CSS | 3 | 3 | 6 | 87 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 2.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 1.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 139 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 3,337 | |
▷ Abstract classes | 388 | 11.63% |
▷ Concrete classes | 2,949 | 88.37% |
▷ Final classes | 0 | 0.00% |
Methods | 18,152 | |
▷ Static methods | 721 | 3.97% |
▷ Public methods | 16,340 | 90.02% |
▷ Protected methods | 1,800 | 9.92% |
▷ Private methods | 12 | 0.07% |
Functions | 175 | |
▷ Named functions | 1 | 0.57% |
▷ Anonymous functions | 174 | 99.43% |
Constants | 19 | |
▷ Global constants | 2 | 10.53% |
▷ Class constants | 17 | 89.47% |
▷ Public constants | 17 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/flags.png | 69.15KB | 23.62KB | ▼ 65.85% |