Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▼1.63MB] [CPU: ▼196.19ms] Passed 4 tests
Server-side resources used by Widget4Call
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.00 ▼0.72 | 6.58 ▼15.96 |
Dashboard /wp-admin | 2.02 ▼1.04 | 7.25 ▼38.28 |
Posts /wp-admin/edit.php | 2.02 ▼1.09 | 7.45 ▼55.90 |
Add New Post /wp-admin/post-new.php | 2.02 ▼3.42 | 6.57 ▼665.18 |
Media Library /wp-admin/upload.php | 2.02 ▼0.99 | 7.15 ▼25.39 |
Delete Widget /wp-admin/admin.php?page=w4c_widget_delete | 2.02 | 6.63 |
Widget4Call /wp-admin/admin.php?page=widget4call | 2.02 | 6.58 |
Mes Widgets /wp-admin/admin.php?page=w4c_widgets | 2.02 | 6.65 |
Ajouter widget /wp-admin/admin.php?page=w4c_widget_form | 2.02 | 7.67 |
Dev Mode /wp-admin/admin.php?page=w4c_devmode | 2.02 | 8.24 |
Journal d'appels /wp-admin/admin.php?page=w4c_cdr_log | 2.02 | 9.66 |
Add externale Widget /wp-admin/admin.php?page=w4c_add_external_widget | 2.02 | 8.75 |
Votre profil /wp-admin/admin.php?page=w4c_user_profil | 2.02 | 6.83 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 28 new files
Database: 1 new table, 2 new options
New tables |
---|
wp_w4c_widget |
New WordPress options |
---|
widget_w4c_widget |
w4c_private_key |
Browser metrics Passed 4 tests
A check of browser resources used by Widget4Call
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,801 ▲205 | 15.97 ▲0.52 | 9.53 ▲1.33 | 45.72 ▼2.82 |
Dashboard /wp-admin | 3,041 ▲107 | 6.34 ▲0.38 | 138.75 ▼0.66 | 108.71 ▲2.45 |
Posts /wp-admin/edit.php | 2,812 ▲73 | 2.77 ▲0.08 | 69.08 ▲0.65 | 102.01 ▼1.43 |
Add New Post /wp-admin/post-new.php | 2,116 ▲433 | 15.72 ▼0.54 | 368.69 ▼101.18 | 132.77 ▲1.04 |
Media Library /wp-admin/upload.php | 1,880 ▲73 | 5.20 ▲0.18 | 134.43 ▼12.38 | 114.29 ▼1.78 |
Delete Widget /wp-admin/admin.php?page=w4c_widget_delete | 1,083 | 2.57 | 59.11 | 58.17 |
Widget4Call /wp-admin/admin.php?page=widget4call | 1,156 | 2.59 | 62.56 | 82.45 |
Mes Widgets /wp-admin/admin.php?page=w4c_widgets | 1,116 | 2.59 | 81.85 | 68.64 |
Ajouter widget /wp-admin/admin.php?page=w4c_widget_form | 1,115 | 2.71 | 60.29 | 73.30 |
Dev Mode /wp-admin/admin.php?page=w4c_devmode | 1,396 | 2.59 | 72.79 | 79.80 |
Journal d'appels /wp-admin/admin.php?page=w4c_cdr_log | 1,116 | 2.59 | 61.78 | 79.25 |
Add externale Widget /wp-admin/admin.php?page=w4c_add_external_widget | 1,086 | 2.57 | 57.01 | 61.94 |
Votre profil /wp-admin/admin.php?page=w4c_user_profil | 1,116 | 2.60 | 60.73 | 76.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin cannot be uninstalled
- > User notice in wp-includes/functions.php+5663
wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the w4c_admin_style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- This plugin does not fully uninstall, leaving 2 options in the database
- widget_w4c_widget
- w4c_private_key
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
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=w4c_user_profil
- > User notice in wp-includes/functions.php+5663
wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the w4c_admin_style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=w4c_user_profil
- > User notice in wp-includes/functions.php+5663
wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the w4c_widget_style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=w4c_user_profil
- > User notice in wp-includes/functions.php+5663
wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wp-color-picker handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=w4c_user_profil
- > User notice in wp-includes/functions.php+5663
wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the my-script handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=w4c_user_profil
- > User notice in wp-includes/functions.php+5663
wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the devmode-script handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=w4c_user_profil
- > User notice in wp-includes/functions.php+5663
wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the font-awesome handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/admin.php?page=w4c_devmode
- > Notice in wp-content/plugins/widget4call/widget4callDevModePage.php+86
Undefined index: _id
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/widget4call/widget4callWidget.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/widget4call/widget4call.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Donate link: Invalid URI ("")
widget4call/widget4call.php Passed 13 tests
"Widget4Call" version 1.0.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
51 characters long description:
Click to Call and Web Call Back solution By APIdaze
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected3,042 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 45 | 70 | 1,561 |
PHP | 14 | 48 | 16 | 1,095 |
JavaScript | 2 | 29 | 10 | 386 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 8.21 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 3.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 18 | 47.37% |
▷ Public methods | 38 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/agent3.png | 5.24KB | 2.68KB | ▼ 48.75% |
assets/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
assets/img/agent4.png | 5.12KB | 2.64KB | ▼ 48.53% |
assets/img/agent2.png | 13.43KB | 5.96KB | ▼ 55.61% |
assets/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |