68% bizcalendar-web

Code Review | BizCalendar Web

WordPress plugin BizCalendar Web scored68%from 54 tests.

About plugin

  • Plugin page: bizcalendar-web
  • Plugin version: 1.1.0.15
  • PHP compatiblity: 5.3.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.3
  • WordPress version: 6.3.1
  • First release: Jun 30, 2018
  • Latest release: Oct 23, 2023
  • Number of updates: 143
  • Update frequency: every 13.6 days
  • Top authors: thundorstorm (72.03%)setriosoft (28.67%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,542 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.96MB] [CPU: ▼0.03ms] Passed 4 tests

An overview of server-side resources used by BizCalendar Web
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.48 ▲1.0140.92 ▲4.01
Dashboard /wp-admin4.30 ▲0.9648.41 ▼10.73
Posts /wp-admin/edit.php4.36 ▲1.0057.72 ▲13.16
Add New Post /wp-admin/post-new.php6.84 ▲0.9584.60 ▼0.42
Media Library /wp-admin/upload.php4.17 ▲0.9341.07 ▲7.03

Server storage [IO: ▲11.61MB] [DB: ▲0.01MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 210 new files
Database: 6 new tables, 8 new options
New tables
wp_bizcal_request_log
wp_bizcal_physicians_description
wp_bizcal_medical_specialities
wp_bizcal_prices
wp_bizcal_medical_services
wp_bizcal_physicians
New WordPress options
can_compress_scripts
widget_recent-comments
setrio_bizcal_old_version
db_upgraded
setrio-bizcalendar-db-version
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for BizCalendar Web
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲9814.73 ▲0.381.71 ▲0.0338.56 ▼2.17
Dashboard /wp-admin2,222 ▲456.57 ▲0.97119.96 ▲31.6740.12 ▼0.42
Posts /wp-admin/edit.php2,132 ▲323.36 ▲1.3580.13 ▲41.7637.10 ▲0.88
Add New Post /wp-admin/post-new.php1,551 ▲2524.16 ▲1.01680.48 ▲29.8456.77 ▲0.50
Media Library /wp-admin/upload.php1,430 ▲335.16 ▲0.94129.18 ▲34.6344.05 ▼1.80

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure failed, leaving 6 tables in the database
    • wp_bizcal_physicians
    • wp_bizcal_prices
    • wp_bizcal_physicians_description
    • wp_bizcal_medical_specialities
    • wp_bizcal_request_log
    • wp_bizcal_medical_services
  • Zombie WordPress options were found after uninstall: 8 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • setrio-bizcalendar-db-version
    • db_upgraded
    • setrio_bizcal_old_version

Smoke tests 50% 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)
The smoke test was a success, however most plugin functionality was not tested

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 fix the following
  • 8× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/bizcalendar-web/main.php
    • > /wp-content/plugins/bizcalendar-web/admin/vuethemeroller.php
    • > /wp-content/plugins/bizcalendar-web/templates/vue/part/progress.php
    • > /wp-content/plugins/bizcalendar-web/setup.php
    • > /wp-content/plugins/bizcalendar-web/localdata.php
    • > /wp-content/plugins/bizcalendar-web/bizcalendar.php
    • > /wp-content/plugins/bizcalendar-web/common.php
    • > /wp-content/plugins/bizcalendar-web/admin/jqueryuithemeroller.php
  • 54× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function setrio_bizcal_message() in wp-content/plugins/bizcalendar-web/templates/vue/part/notify-alert.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function setrio_bizcal_get_arr_val() in wp-content/plugins/bizcalendar-web/templates/vue/part/physician.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function setrio_bizcal_get_template_part() in wp-content/plugins/bizcalendar-web/templates/vue/inline-1-column.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function setrio_bizcal_message() in wp-content/plugins/bizcalendar-web/templates/vue/part/submit-dialog-fail.php:7
    • > PHP Notice
      Undefined index: SCRIPT_URI in wp-content/plugins/bizcalendar-web/admin/vuethemeroller.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function setrio_bizcal_message() in wp-content/plugins/bizcalendar-web/templates/vue/part/submit-dialog-errors.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function setrio_bizcal_message() in wp-content/plugins/bizcalendar-web/templates/vue/part/availability-panels.php:50
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/bizcalendar-web/admin/bizcalendar-admin.php on line 5
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/bizcalendar-web/admin/bizcalendar-admin.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function setrio_bizcal_message() in wp-content/plugins/bizcalendar-web/templates/vue/part/submit-dialog-success.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
1 plugin tags: setrio bizmedica bizcalendar online appointments programari

bizcalendar-web/bizcalendar.php 85% from 13 tests

The main PHP script in "BizCalendar Web" version 1.1.0.15 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 149 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("bizcalendar-web.php" instead of "bizcalendar.php")

Code Analysis 97% from 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
Everything looks great! No dangerous files found in this plugin164,204 lines of code in 154 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript8013,2027,83378,716
CSS1810,23137746,557
JSON10030,887
PHP557668078,044

PHP code 50% from 2 tests

An overview of cyclomatic complexity and code structure
These items need your attention
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 120)
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity26.00
▷ Minimum class complexity1.00
▷ Maximum class complexity122.00
Average method complexity3.85
▷ Minimum method complexity1.00
▷ Maximum method complexity120.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods97
▷ Static methods3232.99%
▷ Public methods8890.72%
▷ Protected methods11.03%
▷ Private methods88.25%
Functions52
▷ Named functions4688.46%
▷ Anonymous functions611.54%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
42 PNG files occupy 0.35MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-icons_ef8c08_256x240.png4.44KB4.17KB▼ 6.02%
css/images/ui-bg_glass_65_ffffff_1x400.png0.20KB0.09KB▼ 57.49%
css/images/hand.png147.77KB150.25KB0.00%
css/jquery-ui-custom/images/ui-icons_454545_256x240.png6.92KB4.18KB▼ 39.61%
css/images/ui-icons_3d80b3_256x240.png4.44KB4.17KB▼ 6.02%