Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.26ms] Passed 4 tests
Server-side resources used by WebRTC Softphone
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.37 ▼3.46 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.21 ▼1.26 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 49.42 ▼3.64 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 86.35 ▼4.68 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 34.29 ▲1.45 |
WebRTC Softphone /wp-admin/options-general.php?page=WebRTC-Softphone | 3.18 | 32.44 |
Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
websp |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for WebRTC Softphone
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,944 ▲209 | 14.38 ▲0.01 | 11.47 ▲9.62 | 39.08 ▼8.90 |
Dashboard /wp-admin | 2,226 ▲38 | 5.02 ▼0.88 | 107.08 ▼7.57 | 40.39 ▼1.91 |
Posts /wp-admin/edit.php | 2,117 ▲25 | 2.30 ▲0.33 | 42.14 ▼1.44 | 34.67 ▼1.81 |
Add New Post /wp-admin/post-new.php | 1,531 ▼2 | 23.17 ▼0.13 | 647.66 ▼34.08 | 37.85 ▼23.55 |
Media Library /wp-admin/upload.php | 1,408 ▲20 | 4.41 ▲0.22 | 98.10 ▼6.80 | 43.94 ▼0.29 |
WebRTC Softphone /wp-admin/options-general.php?page=WebRTC-Softphone | 1,161 | 2.35 | 48.57 | 26.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- websp
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=WebRTC-Softphone
- > Notice in wp-content/plugins/webrtc-softphone/WebRTC-Softphone.php+86
Undefined index: sipdomain
- > GET request to /wp-admin/options-general.php?page=WebRTC-Softphone
- > Notice in wp-content/plugins/webrtc-softphone/WebRTC-Softphone.php+89
Undefined index: wss
- > GET request to /wp-admin/options-general.php?page=WebRTC-Softphone
- > Notice in wp-content/plugins/webrtc-softphone/WebRTC-Softphone.php+92
Undefined index: authusername
- > GET request to /wp-admin/options-general.php?page=WebRTC-Softphone
- > Notice in wp-content/plugins/webrtc-softphone/WebRTC-Softphone.php+95
Undefined index: sipusername
- > GET request to /wp-admin/options-general.php?page=WebRTC-Softphone
- > Notice in wp-content/plugins/webrtc-softphone/WebRTC-Softphone.php+98
Undefined index: sippassword
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
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/webrtc-softphone/WebRTC-Softphone.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
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
These attributes need to be fixed:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
webrtc-softphone/WebRTC-Softphone.php 92% from 13 tests
"WebRTC Softphone" version 0.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("webrtc-softphone.php" instead of "WebRTC-Softphone.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin10,415 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 1,859 | 1,650 | 9,396 |
CSS | 1 | 81 | 13 | 757 |
PHP | 1 | 59 | 26 | 262 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin