Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > User deprecated in wp-includes/functions.php+5453
Function get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead.
Server metrics [RAM: ▲0.36MB] [CPU: ▼4.40ms] Passed 4 tests
An overview of server-side resources used by Zingaya Click-to-Call
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.83 ▲0.36 | 49.23 ▲6.57 |
Dashboard /wp-admin | 3.67 ▲0.36 | 50.14 ▼3.70 |
Posts /wp-admin/edit.php | 3.78 ▲0.42 | 52.67 ▼2.17 |
Add New Post /wp-admin/post-new.php | 6.25 ▲0.36 | 88.51 ▼16.59 |
Media Library /wp-admin/upload.php | 3.59 ▲0.36 | 43.74 ▲4.88 |
Server storage [IO: ▲2.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 118 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Zingaya Click-to-Call: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲81 | 14.21 ▲0.00 | 1.75 ▼0.12 | 43.18 ▲0.76 |
Dashboard /wp-admin | 2,248 ▲71 | 5.63 ▲0.01 | 89.11 ▼7.23 | 39.30 ▲0.30 |
Posts /wp-admin/edit.php | 2,153 ▲53 | 2.00 ▲0.04 | 40.59 ▼0.85 | 34.75 ▲0.06 |
Add New Post /wp-admin/post-new.php | 1,539 ▲6 | 23.26 ▲0.27 | 668.42 ▼2.75 | 49.79 ▼1.07 |
Media Library /wp-admin/upload.php | 1,457 ▲54 | 4.13 ▼0.10 | 112.66 ▼8.31 | 44.89 ▼5.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 22× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/zingaya-click-to-call/zingaya-editwidget.php:6
- > PHP Notice
Trying to get property 'widget_id' of non-object in wp-content/plugins/zingaya-click-to-call/zingaya-widgetdesigner.php on line 43
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/zingaya-click-to-call/zingaya-billing.php:2
- > PHP Fatal error
Uncaught Error: Call to a member function prepare_items() on null in wp-content/plugins/zingaya-click-to-call/zingaya-voicemail.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/zingaya-click-to-call/zingaya-help.php:11
- > PHP Notice
Undefined index: widget_data in wp-content/plugins/zingaya-click-to-call/zingaya-widgetdesigner.php on line 40
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/zingaya-click-to-call/zingaya-profile.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/zingaya-click-to-call/zingaya-admin.php:2
- > PHP Fatal error
Uncaught Error: Call to a member function prepare_items() on null in wp-content/plugins/zingaya-click-to-call/zingaya-callhistory.php:26
- > PHP Notice
Undefined variable: callhistoryTable in wp-content/plugins/zingaya-click-to-call/zingaya-callhistory.php on line 26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: webrtc, customer service, click-to-call, support
zingaya-click-to-call/zingaya.php 85% from 13 tests
The main PHP file in "Zingaya Click-to-Call" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("zingaya-click-to-call.php" instead of "zingaya.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin8,130 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 382 | 136 | 3,474 |
JavaScript | 11 | 356 | 301 | 2,618 |
CSS | 9 | 119 | 85 | 1,149 |
PO File | 1 | 383 | 410 | 872 |
SVG | 1 | 0 | 0 | 17 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 19.50 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 4.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 29 | |
▷ Named functions | 29 | 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 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
63 PNG files occupy 0.70MB with 0.30MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png | 5.68KB | 1.83KB | ▼ 67.77% |
css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png | 0.41KB | 0.15KB | ▼ 62.44% |
img/colorpicker/select2_8bit.png | 0.24KB | 0.20KB | ▼ 18.95% |
images/help/widget_widget.png | 53.23KB | 23.44KB | ▼ 55.95% |
images/help/widget_dtmf.png | 2.81KB | 2.54KB | ▼ 9.40% |