10% zingaya-click-to-call

Code Review | Zingaya Click-to-Call

WordPress plugin Zingaya Click-to-Call scored10%from 54 tests.

About plugin

  • Plugin page: zingaya-click-to-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.0
  • WordPress version: 6.3.1
  • First release: Aug 19, 2014
  • Latest release: Sep 5, 2014
  • Number of updates: 4
  • Update frequency: every 5.5 days
  • Top authors: zingaya (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,472 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.83 ▲0.3649.23 ▲6.57
Dashboard /wp-admin3.67 ▲0.3650.14 ▼3.70
Posts /wp-admin/edit.php3.78 ▲0.4252.67 ▼2.17
Add New Post /wp-admin/post-new.php6.25 ▲0.3688.51 ▼16.59
Media Library /wp-admin/upload.php3.59 ▲0.3643.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲8114.21 ▲0.001.75 ▼0.1243.18 ▲0.76
Dashboard /wp-admin2,248 ▲715.63 ▲0.0189.11 ▼7.2339.30 ▲0.30
Posts /wp-admin/edit.php2,153 ▲532.00 ▲0.0440.59 ▼0.8534.75 ▲0.06
Add New Post /wp-admin/post-new.php1,539 ▲623.26 ▲0.27668.42 ▼2.7549.79 ▼1.07
Media Library /wp-admin/upload.php1,457 ▲544.13 ▼0.10112.66 ▼8.3144.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP173821363,474
JavaScript113563012,618
CSS9119851,149
PO File1383410872
SVG10017

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 code0.42
Average class complexity19.50
▷ Minimum class complexity6.00
▷ Maximum class complexity37.00
Average method complexity4.08
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods24100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions29
▷ Named functions29100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png5.68KB1.83KB▼ 67.77%
css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png0.41KB0.15KB▼ 62.44%
img/colorpicker/select2_8bit.png0.24KB0.20KB▼ 18.95%
images/help/widget_widget.png53.23KB23.44KB▼ 55.95%
images/help/widget_dtmf.png2.81KB2.54KB▼ 9.40%