72% calenso-booking

Code Review | Calenso Booking Integration

WordPress plugin Calenso Booking Integration scored72%from 54 tests.

About plugin

  • Plugin page: calenso-booking
  • Plugin version: 2.2.8
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 14, 2020
  • Latest release: Oct 2, 2023
  • Number of updates: 32
  • Update frequency: every 39.6 days
  • Top authors: calenso (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,907 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.19MB] [CPU: ▼8.04ms] Passed 4 tests

A check of server-side resources used by Calenso Booking Integration
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2036.09 ▼5.08
Dashboard /wp-admin3.51 ▲0.1748.44 ▼11.28
Posts /wp-admin/edit.php3.61 ▲0.2649.85 ▲2.65
Add New Post /wp-admin/post-new.php6.08 ▲0.1980.18 ▼16.02
Media Library /wp-admin/upload.php3.42 ▲0.1937.43 ▲0.21
Shortcodes /wp-admin/admin.php?page=calenso_widget_shortcode3.3933.84
Calenso Booking /wp-admin/admin.php?page=calenso_wordpress_widget3.4032.66

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 55 new files
Database: 4 new tables, 6 new options
New tables
wp_zpt_calenso_stores
wp_zpt_calenso_user_data
wp_zpt_calenso_languages
wp_zpt_calenso_event
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Calenso Booking Integration
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,626 ▲86514.24 ▼0.111.85 ▲0.3034.91 ▼5.40
Dashboard /wp-admin3,004 ▲8275.67 ▲0.0788.05 ▲0.0990.08 ▲47.94
Posts /wp-admin/edit.php2,126 ▲261.99 ▼0.0338.39 ▲3.9434.71 ▼6.22
Add New Post /wp-admin/post-new.php1,562 ▲3623.10 ▼0.01655.57 ▼8.25160.26 ▲106.13
Media Library /wp-admin/upload.php1,426 ▲324.12 ▼0.0794.84 ▼4.7573.45 ▲29.32
Shortcodes /wp-admin/admin.php?page=calenso_widget_shortcode1,0171.9823.7831.03
Calenso Booking /wp-admin/admin.php?page=calenso_wordpress_widget1,5531.9924.1746.68

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% 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
Please fix the following
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/calenso-booking/includes/hooks.php
    • > /wp-content/plugins/calenso-booking/autoload.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/calenso-booking/includes/functions.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/calenso-booking/igniter.php:16

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=calenso_wordpress_widget
    • > Network (severe)
    wp-content/plugins/calenso-booking/assets/fonts/OpenS/OpenSans-VariableFont_wdth,wght.ttf - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Contributors: Plugin contributors field is missing
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5 in calenso-booking/assets to your readme.txt
The official readme.txt might help

calenso-booking/igniter.php 85% from 13 tests

"Calenso Booking Integration" version 2.2.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("calenso-booking.php" instead of "igniter.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
No dangerous file extensions were detected16,187 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
CSS32,9922311,711
SVG6042,844
PHP5160841,221
JSON61610276
Markdown2510101
JavaScript351228
INI1006

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity2.92
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.25MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/FirmenprofilDE.png66.79KB31.09KB▼ 53.45%
assets/img/icon.png0.42KB0.68KB0.00%
assets/img/EinstellungenDE.png62.48KB25.27KB▼ 59.56%
assets/img/EinEN.png7.50KB4.31KB▼ 42.54%
assets/img/EinstellungenEN.png57.56KB25.65KB▼ 55.43%