66% booking-system-edoobox

Code Review | Online Buchungssystem - edoobox

WordPress plugin Online Buchungssystem - edoobox scored66%from 54 tests.

About plugin

  • Plugin page: booking-system-ed...
  • Plugin version: 2.4.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Feb 9, 2018
  • Latest release: Oct 2, 2023
  • Number of updates: 81
  • Update frequency: every 25.5 days
  • Top authors: edoobox (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

200+ active /10,971 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.31MB] [CPU: ▼4.32ms] Passed 4 tests

This is a short check of server-side resources used by Online Buchungssystem - edoobox
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.85 ▲0.3843.59 ▲4.39
Dashboard /wp-admin3.64 ▲0.2954.80 ▼2.79
Posts /wp-admin/edit.php3.69 ▲0.3347.66 ▼2.06
Add New Post /wp-admin/post-new.php6.17 ▲0.2884.69 ▼16.81
Media Library /wp-admin/upload.php3.58 ▲0.3542.85 ▲8.66
Shortcode Pro /wp-admin/admin.php?page=edoobox-next3.5338.44
Options /wp-admin/admin.php?page=edoobox-system-view3.5536.05
Page Indexing /wp-admin/admin.php?page=edoobox-page-view3.5035.07
Caching /wp-admin/admin.php?page=edoobox-caching3.5141.32
Google Maps /wp-admin/admin.php?page=edoobox-maps-google3.4932.85

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 193 new files
Database: no new tables, 8 new options
New WordPress options
edbs_pages
widget_recent-posts
edbs_pages_next
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Online Buchungssystem - edoobox
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲8114.19 ▼0.171.75 ▲0.0344.20 ▼1.39
Dashboard /wp-admin2,221 ▲445.56 ▼0.0494.64 ▲3.4067.00 ▲28.42
Posts /wp-admin/edit.php2,135 ▲351.98 ▲0.0036.74 ▼2.9331.93 ▼4.80
Add New Post /wp-admin/post-new.php1,574 ▲4823.28 ▼0.23669.61 ▲8.39178.46 ▲125.10
Media Library /wp-admin/upload.php1,438 ▲474.13 ▼0.11107.67 ▲3.7364.89 ▲17.76
Shortcode Pro /wp-admin/admin.php?page=edoobox-next1,1543.6146.1951.83
Options /wp-admin/admin.php?page=edoobox-system-view1,2293.4545.7233.67
Page Indexing /wp-admin/admin.php?page=edoobox-page-view8963.4438.2532.08
Caching /wp-admin/admin.php?page=edoobox-caching9933.4240.1433.38
Google Maps /wp-admin/admin.php?page=edoobox-maps-google9043.4336.7126.60

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 8 options
    • theysaidso_admin_options
    • can_compress_scripts
    • edbs_pages
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • edbs_pages_next
    • widget_recent-comments

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=edoobox-system-view
    • > Notice in wp-content/plugins/booking-system-edoobox/views/view.options.php+70
    Undefined index: environment
    • > GET request to /wp-admin/admin.php?page=edoobox-system-view
    • > Notice in wp-content/plugins/booking-system-edoobox/views/view.options.php+137
    Undefined index: api_key_expiration

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
  • 10× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/booking-system-edoobox/helpers/EDB_backend.php
    • > /wp-content/plugins/booking-system-edoobox/helpers/methods.php
    • > /wp-content/plugins/booking-system-edoobox/helpers/EDB_rewrite.php
    • > /wp-content/plugins/booking-system-edoobox/helpers/EDB_ajax.php
    • > /wp-content/plugins/booking-system-edoobox/views/partials/view.debug.php
    • > /wp-content/plugins/booking-system-edoobox/helpers/EDB_check_shortcode.php
    • > /wp-content/plugins/booking-system-edoobox/views/components/cmp.warning.php
    • > /wp-content/plugins/booking-system-edoobox/helpers/EDB_system.php
    • > /wp-content/plugins/booking-system-edoobox/views/components/cmp.view-title.php
    • > /wp-content/plugins/booking-system-edoobox/booking-system-edoobox.php
  • 34× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/booking-system-edoobox/includes/Base/PluginCollection.php on line 6
    • > PHP Fatal error
      Uncaught Error: Class 'Codeception\\Actor' not found in wp-content/plugins/booking-system-edoobox/tests/_support/FunctionalTester.php:21
    • > PHP Notice
      Undefined variable: wpVersion in wp-content/plugins/booking-system-edoobox/views/partials/view.debug.php on line 16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/booking-system-edoobox/views/components/cmp.google-maps-missing.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'Codeception\\Module' not found in wp-content/plugins/booking-system-edoobox/tests/_support/Helper/Unit.php:9
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/booking-system-edoobox/includes/Base/PluginCollection.php on line 6
    • > PHP Fatal error
      Uncaught Error: Class 'Edoobox\\Base\\BaseController' not found in wp-content/plugins/booking-system-edoobox/includes/Base/SettingsLinks.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Codeception\\Actor' not found in wp-content/plugins/booking-system-edoobox/tests/_support/UnitTester.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/booking-system-edoobox/admin/admin_edbs_edit.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Edoobox\\Base\\BaseController' not found in wp-content/plugins/booking-system-edoobox/includes/Base/Enqueue.php:8

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=edoobox-next
    • > Network (severe)
    wp-admin/%7B%7B%20image%20%7D%7D - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=edoobox-next
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=edoobox-next 435:37 Uncaught TypeError: Cannot read properties of null (reading 'innerHTML')

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 67 tag instead of maximum 10
  • Donate link: Please fix this invalid url: ""
You can take inspiration from this readme.txt

booking-system-edoobox/booking-system-edoobox.php Passed 13 tests

The primary PHP file in "Online Buchungssystem - edoobox" version 2.4.1 is used by WordPress to initiate all plugin functionality
78 characters long description:
Online booking system – Advertise your courses, seminars, and events easily!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected24,973 lines of code in 138 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1856822913,079
PHP701,3393,8365,461
PO File141,2971,8804,532
CSS127537918
TypeScript128437576
SVG100288
Markdown211033
JSON20031
HTML30025
YAML321222
XML1008

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity8.14
▷ Minimum class complexity1.00
▷ Maximum class complexity57.00
Average method complexity1.78
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces12
Interfaces0
Traits3
Classes46
▷ Abstract classes00.00%
▷ Concrete classes46100.00%
▷ Final classes12.17%
Methods402
▷ Static methods5212.94%
▷ Public methods37994.28%
▷ Protected methods51.24%
▷ Private methods184.48%
Functions30
▷ Named functions826.67%
▷ Anonymous functions2273.33%
Constants20
▷ Global constants00.00%
▷ Class constants20100.00%
▷ Public constants20100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.13MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/edoobox-icon-18x18.png0.77KB0.66KB▼ 14.16%
assets/edoobox-icon-16x16.png0.68KB0.60KB▼ 10.98%
assets/edoobox-icon-17x17.png0.73KB0.64KB▼ 12.92%
assets/edoobox-icon-128x128.png7.37KB3.66KB▼ 50.25%
assets/cropped-edoobox_Icon_Farbig-270x270.png53.87KB25.88KB▼ 51.95%