Code Analysis: Recras WordPress Plugin 6.1.5

Function Rating Maintainability Complexity Lines of code
Recras\ContactForm::generateForm()
D
19
45 235
Recras\OnlineBooking::renderOnlineBooking()
D
34 36 73
Recras\Arrangement::renderPackage()
C
36 29 70
Recras\ContactForm::renderContactForm()
C
35 27 76
Recras\Products::renderProduct()
B
41 20 54
Recras\Vouchers::renderVoucherSales()
A
44 13 43
Recras\Vouchers::renderVoucherInfo()
A
47 13 35
Recras\OnlineBooking::generateBookingForm()
A
43 12 46
Recras\Bookprocess::renderBookprocess()
A
46 11 38
Recras\Plugin::loadScripts()
A
37 6 75
Recras\Availability::renderAvailability()
A
48 8 34
Recras\Arrangement::generateProgramme()
A
44 7 43
Recras\Arrangement::getPackages()
S
51 7 26
Recras\ContactForm::generateRadio()
S
56 6 16
Recras\Gutenberg::addBlocks()
S
39 2 76
Recras\Arrangement::getDuration()
S
50 5 29
Recras\ContactForm::generateLabel()
S
54 5 21
Recras\ContactForm::generateInput()
S
53 5 20
Recras\Vouchers::getTemplates()
S
55 5 19
Recras\ContactForm::getSelectPlaceholder()
S
58 5 15
Recras\Plugin::addMenuItems()
S
45 3 45
Recras\ContactForm::generateSelect()
S
57 5 14
Recras\Products::getProducts()
S
54 4 20
Recras\Bookprocess::getProcesses()
S
54 4 20
Recras\Settings::addInputTheme()
S
55 4 18
Recras\ContactForm::getForms()
S
57 4 17
Recras\ContactForm::getForm()
S
57 4 16
Recras\Arrangement::formatInterval()
S
63 5 10
Recras\ContactForm::generateSubTag()
S
61 4 14
Recras\ContactForm::getPlaceholder()
S
60 4 13
Recras\Settings::externalLocale()
S
62 4 12
Recras\OnlineBooking::generateIframe()
S
55 3 22
Recras\Http::get()
S
56 3 16
Recras\Arrangement::getPackagesForContactForm()
S
59 3 14
Recras\Arrangement::clearCache()
S
59 3 14
Recras\Arrangement::getPackage()
S
60 3 13
Recras\ContactForm::clearCache()
S
60 3 13
Recras\Products::getDuration()
S
62 3 11
Recras\Gutenberg::addEndpoints()
S
54 2 22
Recras\Arrangement::linesToProgramme()
S
55 2 19
Recras\ContactForm::generateSingleChoice()
S
65 3 8
Recras\Arrangement::getFilteredLines()
S
67 3 8
Recras\Settings::parseBoolean()
S
67 3 7
Recras\Settings::sanitizeSubdomain()
S
66 3 9
Recras\ContactForm::generateChoices()
S
65 3 8
Recras\Plugin::changeScriptMarkup()
S
62 2 11
Recras\Settings::getThemes()
S
54 1 24
Recras\Plugin::__construct()
S
54 1 19
Recras\Plugin::loadAdminScripts()
S
56 1 17
Recras\Settings::registerSettingsPage()
S
57 1 16
Recras\Settings::clearCache()
S
70 2 6
Recras\Settings::addInputDecimal()
S
64 2 9
Recras\Settings::addInputSubdomain()
S
66 2 8
Recras\Settings::documentation()
S
70 2 6
Recras\ContactForm::getDefaultCountry()
S
67 2 8
Recras\Arrangement::displayname()
S
73 2 6
Recras\Settings::addInputCurrency()
S
66 2 8
Recras\Settings::registerSetting()
S
64 2 10
Recras\ContactForm::deleteTransients()
S
65 2 9
Recras\Transient::delete()
S
78 2 3
Recras\Products::clearCache()
S
65 2 9
Recras\Arrangement::getLocation()
S
66 2 8
Recras\Plugin::getStatusMessage()
S
78 2 3
Recras\Settings::shortcodes()
S
70 2 6
Recras\Plugin::getNoSubdomainError()
S
68 2 7
Recras\Price::format()
S
65 2 8
Recras\Products::displayname()
S
73 2 6
Recras\Settings::getSubdomain()
S
71 2 6
Recras\ContactForm::generateTextarea()
S
65 2 8
Recras\Settings::addInputCheckbox()
S
71 2 5
Recras\Settings::editSettings()
S
70 2 6
Recras\Vouchers::clearCache()
S
65 2 9
Recras\Editor::registerButtons()
S
62 1 14
Recras\Plugin::clearCache()
S
62 1 11
Recras\Bookprocess::enqueueScripts()
S
64 1 11
Recras\Vouchers::getValidOptions()
S
79 1 3
Recras\Settings::addInputDatepicker()
S
75 1 4
Recras\Settings::addInputAnalytics()
S
67 1 8
Recras\ContactForm::generateEndTag()
S
79 1 3
Recras\Plugin::uninstall()
S
66 1 9
Recras\Settings::addInputFixDatepicker()
S
75 1 4
Recras\Editor::addButtons()
S
71 1 5
Recras\Settings::addField()
S
70 1 6
Recras\Transient::set()
S
78 1 3
Recras\OnlineBooking::showForm()
S
79 1 3
Recras\Availability::showForm()
S
79 1 3
Recras\Analytics::useAnalytics()
S
80 1 3
Recras\Vouchers::showSalesForm()
S
79 1 3
Recras\Settings::errorNoRecrasName()
S
64 1 9
Recras\ContactForm::generateStartTag()
S
79 1 3
Recras\Transient::get()
S
79 1 3
Recras\ContactForm::showForm()
S
79 1 3
Recras\Gutenberg::getBookprocesses()
S
75 1 4
Recras\ContactForm::getValidSingleChoiceElements()
S
79 1 3
Recras\Plugin::addClassicEditorSubmenuPage()
S
67 1 10
Recras\Vouchers::showInfoForm()
S
79 1 3
Recras\Editor::addScripts()
S
72 1 5
Recras\Products::showForm()
S
79 1 3
Recras\Arrangement::showForm()
S
79 1 3
Recras\Plugin::setBaseUrl()
S
78 1 3
Recras\Gutenberg::getContactForms()
S
75 1 4
Recras\Gutenberg::getPackages()
S
74 1 4
Recras\Gutenberg::getProducts()
S
75 1 4
Recras\Gutenberg::getVouchers()
S
75 1 4
Recras\Settings::settingsHelp()
S
69 1 6
Recras\Bookprocess::clearCache()
S
68 1 7
Recras\Gutenberg::addCategory()
S
69 1 7
Recras\Arrangement::getValidOptions()
S
75 1 3
Recras\Settings::infoText()
S
79 1 3
Recras\ContactForm::getValidElements()
S
79 1 3
Recras\Settings::registerSettings()
S
64 1 9
Recras\Bookprocess::showForm()
S
79 1 3
Recras\Products::getValidOptions()
S
77 1 3
Recras\Plugin::addShortcodes()
S
62 1 10