WordPress plugin IdoBooking scored 83% from 54 tests.

About plugin

  • Plugin page: booking-calendar-...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0
  • WordPress version: 6.3.1
  • First release: Feb 15, 2016
  • Latest release: Nov 14, 2022
  • Number of updates: 35
  • Update frequency: every 70.6 days
  • Top authors: partners_iai (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active / 9,072 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼1.12ms] Passed 4 tests

Server-side resources used by IdoBooking
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0738.85 ▼5.79
Dashboard /wp-admin3.38 ▲0.0848.78 ▼0.17
Posts /wp-admin/edit.php3.50 ▲0.1447.72 ▲3.33
Add New Post /wp-admin/post-new.php5.96 ▲0.0896.86 ▼1.83
Media Library /wp-admin/upload.php3.31 ▲0.0837.21 ▲4.28
IdoSell Booking /wp-admin/options-general.php?page=idosellbooking-setting-admin3.2731.63

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 43 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
widget_idosellbookingwidget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_idosellbookingsidebuttonwidget
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by IdoBooking
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.15 ▼0.231.79 ▲0.1345.51 ▲1.34
Dashboard /wp-admin2,210 ▲184.86 ▼0.08109.73 ▲2.2540.87 ▼8.04
Posts /wp-admin/edit.php2,093 ▲42.06 ▲0.0639.69 ▲5.1334.57 ▼0.67
Add New Post /wp-admin/post-new.php1,545 ▲923.36 ▲0.06687.82 ▲27.8942.58 ▼19.84
Media Library /wp-admin/upload.php1,392 ▲44.20 ▲0.02110.88 ▲10.9647.16 ▲4.98
IdoSell Booking /wp-admin/options-general.php?page=idosellbooking-setting-admin9792.0425.7034.68

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
  • This plugin does not fully uninstall, leaving 8 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_idosellbookingwidget
    • widget_idosellbookingsidebuttonwidget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/booking-calendar-with-availability-management/admin/AdminPage.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/booking-calendar-with-availability-management/widget/SideButtonWidget.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/booking-calendar-with-availability-management/idosellbooking.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/booking-calendar-with-availability-management/widget/Widget.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed: You can look at the official readme.txt

booking-calendar-with-availability-management/idosellbooking.php 92% from 13 tests

The main file in "IdoBooking" v. 1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("booking-calendar-with-availability-management.php" instead of "idosellbooking.php")

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
Everything looks great! No dangerous files found in this plugin858 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP573104675
PO File27739180
CSS1003

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity9.75
▷ Minimum class complexity3.00
▷ Maximum class complexity15.00
Average method complexity2.52
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods23
▷ Static methods626.09%
▷ Public methods23100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions466.67%
▷ Anonymous functions233.33%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
31 PNG files occupy 1.02MB with 0.73MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/image/pl_PL/16.png13.41KB3.98KB▼ 70.35%
admin/image/en_GB/4.png11.63KB3.33KB▼ 71.37%
admin/image/pl_PL/8.png29.27KB8.67KB▼ 70.37%
admin/image/en_GB/13.png81.20KB20.85KB▼ 74.32%
admin/image/pl_PL/2.png27.24KB8.05KB▼ 70.43%