78% callbackkiller-service-widget

Code Review | CallbackKiller service widget

WordPress plugin CallbackKiller service widget scored78%from 54 tests.

About plugin

  • Plugin page: callbackkiller-se...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.4
  • WordPress version: 6.3.1
  • First release: May 17, 2016
  • Latest release: Apr 26, 2016
  • Number of updates: 2
  • Update frequency: every 9.5 days
  • Top authors: krellbat (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /2,173 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.56ms] Passed 4 tests

An overview of server-side resources used by CallbackKiller service widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0540.22 ▲4.19
Dashboard /wp-admin3.36 ▲0.0146.06 ▼10.52
Posts /wp-admin/edit.php3.41 ▲0.0543.96 ▼0.16
Add New Post /wp-admin/post-new.php5.94 ▲0.0582.86 ▼13.45
Media Library /wp-admin/upload.php3.28 ▲0.0536.55 ▲1.89

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 10 new options
New WordPress options
cbk_site_id
widget_recent-comments
cbk_api_loginhash
cbk_is_login
theysaidso_admin_options
db_upgraded
cbk_domain
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for CallbackKiller service widget
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.36 ▲0.011.75 ▲0.1544.02 ▲6.03
Dashboard /wp-admin2,210 ▲325.51 ▼0.1493.66 ▼4.4783.06 ▲39.63
Posts /wp-admin/edit.php2,115 ▲151.99 ▼0.0136.09 ▼2.0933.14 ▼0.28
Add New Post /wp-admin/post-new.php1,725 ▲19725.33 ▲2.58612.25 ▼44.1056.49 ▼0.74
Media Library /wp-admin/upload.php1,412 ▲94.14 ▲0.0294.21 ▼9.8375.19 ▲26.45

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 10 options in the database
    • can_compress_scripts
    • cbk_is_login
    • widget_recent-posts
    • cbk_site_id
    • cbk_domain
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • cbk_api_loginhash
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/callbackkiller-service-widget/callbackkiller-settings-page.php
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Undefined variable: is_login in wp-content/plugins/callbackkiller-service-widget/callbackkiller-settings-page.php on line 45
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/callbackkiller-service-widget/callbackkiller-widget.php:17
    • > PHP Notice
      Undefined variable: is_login in wp-content/plugins/callbackkiller-service-widget/callbackkiller-settings-page.php on line 3
    • > PHP Notice
      Undefined variable: country_list in wp-content/plugins/callbackkiller-service-widget/callbackkiller-settings-page.php on line 26

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 96% 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
5 plugin tags: widget, livechat, conversion, callback, chat

callbackkiller-service-widget/callbackkiller-widget.php 92% from 13 tests

The main PHP file in "CallbackKiller service widget" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("callbackkiller-service-widget.php" instead of "callbackkiller-widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin370 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2238180
JavaScript150108
CSS11082

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/menulogo.png0.72KB0.72KB0.00%