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.11MB] [CPU: ▲0.04ms] Passed 4 tests
Server-side resources used by Webphone
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 40.35 ▲0.87 |
Dashboard /wp-admin | 3.41 ▲0.11 | 44.08 ▼5.57 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 47.88 ▲3.45 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 96.27 ▲16.76 |
Media Library /wp-admin/upload.php | 3.33 ▲0.11 | 35.03 ▲1.43 |
Webphone Button /wp-admin/admin.php?page=webphone-dynamics-plugin-button | 3.38 | 31.43 |
Webphone Dynamics /wp-admin/admin.php?page=webphone-dynamics-plugin-settings | 3.32 | 30.07 |
Server storage [IO: ▲0.67MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 58 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Webphone
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲83 | 14.67 ▲0.54 | 1.64 ▼0.17 | 39.43 ▼4.26 |
Dashboard /wp-admin | 2,235 ▲55 | 5.62 ▼0.01 | 96.92 ▼2.39 | 70.82 ▲25.44 |
Posts /wp-admin/edit.php | 2,158 ▲58 | 2.02 ▼0.00 | 39.54 ▲2.30 | 36.47 ▼1.68 |
Add New Post /wp-admin/post-new.php | 1,585 ▲59 | 25.36 ▲1.89 | 670.80 ▼155.44 | 54.15 ▼4.20 |
Media Library /wp-admin/upload.php | 1,449 ▲46 | 4.21 ▲0.01 | 101.02 ▼3.50 | 85.02 ▲42.12 |
Webphone Button /wp-admin/admin.php?page=webphone-dynamics-plugin-button | 1,099 | 1.86 | 28.74 | 43.26 |
Webphone Dynamics /wp-admin/admin.php?page=webphone-dynamics-plugin-settings | 1,331 | 1.82 | 28.51 | 61.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=webphone-dynamics-plugin-button
- > Notice in wp-content/plugins/webphone/admin/views/admin_webphone_dynamics_button_page.php+21
Undefined index: hf_objectidwph
- > GET request to /wp-admin/admin.php?page=webphone-dynamics-plugin-button
- > Notice in wp-content/plugins/webphone/admin/views/admin_webphone_dynamics_button_page.php+21
Undefined index: hf_objectposwph
- > GET request to /wp-admin/admin.php?page=webphone-dynamics-plugin-button
- > Notice in wp-content/plugins/webphone/admin/views/admin_webphone_dynamics_button_page.php+21
Undefined index: ghf_gnumber2call
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=webphone-dynamics-plugin-settings
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'wpse_edit_text' not found or invalid function name
SRP 50% 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
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/webphone/admin/partials/webphone-dynamics-admin-display.php
- > /wp-content/plugins/webphone/public/partials/webphone-dynamics-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please add descriptions for these screenshots #5, #6, #7, #8 in webphone/assets to your readme.txt
webphone/webphone.php 92% from 13 tests
This is the main PHP file of "Webphone" version 2.1.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin2,236 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 245 | 695 | 820 |
SVG | 4 | 3 | 3 | 552 |
CSS | 8 | 109 | 21 | 505 |
JavaScript | 7 | 51 | 95 | 227 |
PO File | 1 | 59 | 77 | 131 |
Bourne Shell | 1 | 12 | 12 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 2 | 4.65% |
▷ Public methods | 37 | 86.05% |
▷ Protected methods | 1 | 2.33% |
▷ Private methods | 5 | 11.63% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
15 compressed PNG files occupy 0.09MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/button-page-img/glyphicons-halflings-white.png | 8.57KB | 9.20KB | 0.00% |
admin/img/button-page-img/_footer-wph.png | 5.08KB | 3.73KB | ▼ 26.55% |
admin/img/button-page-img/bg_radios.png | 1.00KB | 0.97KB | ▼ 2.75% |
admin/img/button-page-img/_getid.png | 1.29KB | 1.31KB | 0.00% |
admin/img/button-page-img/glyphicons-halflings.png | 12.50KB | 10.35KB | ▼ 17.19% |