Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/asterisk-web-callback/z_asteriskcallback.php+35
Methods with the same name as their class will not be constructors in a future version of PHP; zacw_Widget has a deprecated constructor
Server metrics [RAM: ▼1.81MB] [CPU: ▼54.47ms] Passed 4 tests
Analyzing server-side resources used by Asterisk Web Callback
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.18 ▼1.29 | 4.94 ▼34.10 |
Dashboard /wp-admin | 2.20 ▼1.11 | 5.46 ▼42.89 |
Posts /wp-admin/edit.php | 2.20 ▼1.16 | 5.43 ▼42.02 |
Add New Post /wp-admin/post-new.php | 2.20 ▼3.69 | 6.13 ▼98.85 |
Media Library /wp-admin/upload.php | 2.20 ▼1.03 | 6.02 ▼27.02 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_z_asteriskcallback-widget |
Browser metrics Passed 4 tests
A check of browser resources used by Asterisk Web Callback
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲85 | 13.24 ▼1.19 | 4.64 ▲2.83 | 42.28 ▼0.43 |
Dashboard /wp-admin | 2,208 ▲53 | 4.87 ▼0.78 | 105.41 ▲6.94 | 41.92 ▼0.24 |
Posts /wp-admin/edit.php | 2,091 ▲5 | 2.04 ▲0.04 | 39.47 ▲3.00 | 34.33 ▼1.90 |
Add New Post /wp-admin/post-new.php | 1,530 ▼3 | 23.03 ▼0.14 | 659.24 ▲9.61 | 54.84 ▲10.53 |
Media Library /wp-admin/upload.php | 1,393 ▲5 | 4.23 ▼0.12 | 104.58 ▲3.39 | 46.79 ▲3.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/asterisk-web-callback/z_asteriskcallback.php+35
Methods with the same name as their class will not be constructors in a future version of PHP; zacw_Widget has a deprecated constructor
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_z_asteriskcallback-widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/asterisk-web-callback/z_asteriskcallback.php
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 Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: sip, asterisk, call, back, callback...
asterisk-web-callback/z_asteriskcallback.php 85% from 13 tests
The primary PHP file in "Asterisk Web Callback" version 0.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("asterisk-web-callback.php" instead of "z_asteriskcallback.php")
- Text Domain: The text domain should only use lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected507 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 44 | 35 | 232 |
CSS | 1 | 25 | 6 | 196 |
PO File | 1 | 31 | 33 | 79 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 29.00 |
▷ Minimum class complexity | 29.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 8.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/mini.png | 0.52KB | 0.53KB | 0.00% |