78% vagaro-booking-widget

Code Review | Vagaro Booking Widget

WordPress plugin Vagaro Booking Widget scored78%from 54 tests.

About plugin

  • Plugin page: vagaro-booking-wi...
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.3.2
  • WordPress version: 6.3.1
  • First release: Feb 3, 2014
  • Latest release: Apr 1, 2020
  • Number of updates: 20
  • Update frequency: every 112.5 days
  • Top authors: vagaro (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

800+ active /6,957 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Server-side resources used by Vagaro Booking Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /9.68 ▲6.226,690.81 ▲6,651.48
Dashboard /wp-admin3.34 ▼0.0042.24 ▼21.59
Posts /wp-admin/edit.php3.39 ▲0.0438.45 ▼9.01
Add New Post /wp-admin/post-new.php5.92 ▲0.0488.05 ▲5.15
Media Library /wp-admin/upload.php3.27 ▲0.0438.29 ▲7.57
Vagaro Setup /wp-admin/options-general.php?page=vagaro_admin_page3.2325.94

Server storage [IO: ▲0.04MB] [DB: ▲0.78MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: 1 new table, 7 new options
New tables
wp_vagaro
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
vagaro_version
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Vagaro Booking Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6913.35 ▼1.336.62 ▲4.8242.45 ▼1.82
Dashboard /wp-admin2,217 ▲295.13 ▼0.73111.87 ▲5.8441.89 ▲4.32
Posts /wp-admin/edit.php2,100 ▲82.04 ▲0.0141.12 ▲5.6635.94 ▲3.98
Add New Post /wp-admin/post-new.php1,521 ▼2117.68 ▼5.54625.45 ▼42.1554.41 ▼2.70
Media Library /wp-admin/upload.php1,399 ▲114.18 ▼0.0396.69 ▲3.5142.96 ▲2.43
Vagaro Setup /wp-admin/options-general.php?page=vagaro_admin_page2,6328.77118.96210.52

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • vagaro_version
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/vagaro-booking-widget/vagaro-booking-widget.php:56
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/vagaro-booking-widget/vagaro-page-template.php:12

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=vagaro_admin_page
    • > Javascript (severe) in unknown
    /wp-content/plugins/vagaro-booking-widget/interframe.js?ver=6.3.1 12:14 Uncaught Error: Interframe requires jQuery version 1.9.1 or higher, but lower than version 3.
    • > GET request to /wp-admin/options-general.php?page=vagaro_admin_page
    • > Javascript (severe) in unknown
    https://www.vagaro.com/wordpress?enc=jtNanql9ANA7oNkiTHmhZssDfhakhkpgGNf3C623eOw= 1346:20 Uncaught ReferenceError: $ is not defined
    • > GET request to /wp-admin/options-general.php?page=vagaro_admin_page
    • > Javascript (severe) in unknown
    https://www.vagaro.com/JS/UserControl_JS/Signup.js?v=172 3300:2 Uncaught ReferenceError: jQuery is not defined
    • > GET request to /wp-admin/options-general.php?page=vagaro_admin_page
    • > Javascript (severe) in unknown
    https://www.vagaro.com/wordpress?enc=jtNanql9ANA7oNkiTHmhZssDfhakhkpgGNf3C623eOw= 1941:4 Uncaught ReferenceError: $ is not defined
    • > GET request to /wp-admin/options-general.php?page=vagaro_admin_page
    • > Javascript (severe) in unknown
    https://www.vagaro.com/wordpress?enc=jtNanql9ANA7oNkiTHmhZssDfhakhkpgGNf3C623eOw= 2589:4 Uncaught ReferenceError: $ is not defined
    • > GET request to /wp-admin/options-general.php?page=vagaro_admin_page
    • > Javascript (severe) in unknown
    https://www.vagaro.com/wordpress?enc=jtNanql9ANA7oNkiTHmhZssDfhakhkpgGNf3C623eOw= 2601:16 Uncaught ReferenceError: $ is not defined
    • > GET request to /wp-admin/options-general.php?page=vagaro_admin_page
    • > Javascript (severe) in unknown
    https://1a96a36bae7c8550901a-274b8a70320bb26e7a1e0ea7836ee429.ssl.cf2.rackcdn.com/wordpressjslive202310021254.js 19:74 Uncaught ReferenceError: jQuery is not defined
    • > GET request to /wp-admin/options-general.php?page=vagaro_admin_page
    • > Rendering (warning) in unknown
    https://www.vagaro.com/wordpress?enc=jtNanql9ANA7oNkiTHmhZssDfhakhkpgGNf3C623eOw= - [.WebGL-0x27a402020d00]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed: You can take inspiration from this readme.txt

vagaro-booking-widget/vagaro-booking-widget.php 92% from 13 tests

The main PHP script in "Vagaro Booking Widget" version 0.3 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 378 characters long)

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
Good job! No executable or dangerous file extensions detected722 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript24031517
PHP22339205

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin