77% service-booking-manager

Code Review | WordPress Service Booking & Scheduling Plugin | All-in-one Booking Systems - WpBookingly

WordPress plugin WordPress Service Booking & Scheduling Plugin | All-in-one Booking Systems - WpBookingly scored77%from 54 tests.

About plugin

  • Plugin page: service-booking-m...
  • Plugin version: 1.0.8
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.9-6.3
  • WordPress version: 6.3.1
  • First release: May 10, 2023
  • Latest release: Sep 14, 2023
  • Number of updates: 17
  • Update frequency: every 7.9 days
  • Top authors: magepeopleteam (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active /901 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.52MB] [CPU: ▲0.55ms] Passed 4 tests

Server-side resources used by WordPress Service Booking & Scheduling Plugin | All-in-one Booking Systems - WpBookingly
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.97 ▲0.5143.44 ▲0.07
Dashboard /wp-admin3.81 ▲0.5155.38 ▲5.12
Posts /wp-admin/edit.php3.93 ▲0.5752.45 ▼0.53
Add New Post /wp-admin/post-new.php6.42 ▲0.53103.55 ▲8.29
Media Library /wp-admin/upload.php3.74 ▲0.5139.33 ▼2.45
Service Booking /wp-admin/admin.php?page=mpwpb_item3.7036.94
Quick Setup /wp-admin/admin.php?page=mpwpb_quick_setup3.7039.36

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 112 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WordPress Service Booking & Scheduling Plugin | All-in-one Booking Systems - WpBookingly
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,013 ▲25213.14 ▼1.101.73 ▼0.0040.44 ▼6.00
Dashboard /wp-admin2,413 ▲2365.82 ▲0.1598.66 ▼1.2440.99 ▼6.28
Posts /wp-admin/edit.php2,282 ▲1822.32 ▲0.3046.81 ▲10.2334.89 ▼2.21
Add New Post /wp-admin/post-new.php1,571 ▲4323.38 ▲0.57665.97 ▼13.2951.53 ▼0.89
Media Library /wp-admin/upload.php1,651 ▲2514.49 ▲0.30105.65 ▼8.9742.73 ▼5.69
Service Booking /wp-admin/admin.php?page=mpwpb_item1,1232.4161.8651.17
Quick Setup /wp-admin/admin.php?page=mpwpb_quick_setup1,1202.4074.8153.18

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

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 | 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× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_the_id() in wp-content/plugins/service-booking-manager/templates/registration/payment_system.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=mpwpb_item
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: mp_date_format is not defined" "ReferenceError: mp_date_format is not defined\n at e.\u003Ccomputed>.\u003Canonymous> (/wp-content/plugins/service-booking-manager/assets/helper/mp_style/mp_script.js?ver=1697589232:88:16)\n at c (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:25266)\n at Object.add [as done] (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:25545)\n at mp_load_date_picker (/wp-content/plugins/service-booking-manager/assets/helper/mp_style/mp_script.js?ver=1697589232:86:15)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/service-booking-manager/assets/helper/mp_style/mp_script.js?ver=1697589232:107:3)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/admin.php?page=mpwpb_item
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).find(...).sortable is not a function" "TypeError: $(...).find(...).sortable is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/service-booking-manager/assets/admin/mp_admin_settings.js?ver=1697589232:14:41)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=mpwpb_quick_setup
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught ReferenceError: mp_date_format is not defined
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=mpwpb_quick_setup
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).find(...).sortable is not a function
    • > GET request to /wp-admin/admin.php?page=mpwpb_quick_setup
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: mp_date_format is not defined" "ReferenceError: mp_date_format is not defined\n at e.\u003Ccomputed>.\u003Canonymous> (/wp-content/plugins/service-booking-manager/assets/helper/mp_style/mp_script.js?ver=1697589234:88:16)\n at c (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:25266)\n at Object.add [as done] (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:25545)\n at mp_load_date_picker (/wp-content/plugins/service-booking-manager/assets/helper/mp_style/mp_script.js?ver=1697589234:86:15)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/service-booking-manager/assets/helper/mp_style/mp_script.js?ver=1697589234:107:3)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/admin.php?page=mpwpb_quick_setup
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).find(...).sortable is not a function" "TypeError: $(...).find(...).sortable is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/service-booking-manager/assets/admin/mp_admin_settings.js?ver=1697589234:14:41)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes: You can take inspiration from this readme.txt

service-booking-manager/MPWPB_Plugin.php 69% from 13 tests

The entry point to "WordPress Service Booking & Scheduling Plugin | All-in-one Booking Systems - WpBookingly" version 1.0.8 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("5.3" instead of "3.0.9")
  • Domain Path: The domain path folder does not exist ("/languages/")
  • Plugin Name: Please don't use more than 70 characters for the plugin name (currently 87 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("service-booking-manager.php" instead of "MPWPB_Plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin13,653 lines of code in 72 files:
LanguageFilesBlank linesComment linesLines of code
PHP522433579,829
CSS11541891,915
JavaScript991541,909

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity25.30
▷ Minimum class complexity1.00
▷ Maximum class complexity131.00
Average method complexity3.79
▷ Minimum method complexity1.00
▷ Maximum method complexity49.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes37
▷ Abstract classes00.00%
▷ Concrete classes37100.00%
▷ Final classes00.00%
Methods316
▷ Static methods8326.27%
▷ Public methods31198.42%
▷ Protected methods00.00%
▷ Private methods51.58%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
21 PNG files occupy 0.42MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/helper/images/no_image.png5.83KB5.34KB▼ 8.41%
assets/helper/images/welcome/ullimited_img.png46.06KB23.07KB▼ 49.91%
assets/helper/images/welcome/faq_icon.png4.30KB2.55KB▼ 40.73%
assets/helper/images/welcome/knowledge_icon.png6.12KB3.29KB▼ 46.32%
assets/helper/images/welcome/missing_img.png76.65KB30.46KB▼ 60.26%