84% free-booking-system

Code Review | Free Booking System

WordPress plugin Free Booking System scored 84% from 54 tests.

About plugin

  • Plugin page: free-booking-system
  • Plugin version: 1.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.1
  • WordPress version: 6.3.1
  • First release: Dec 6, 2022
  • Latest release: Dec 6, 2022
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: ikaroa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 537 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼1.70ms] Passed 4 tests

Server-side resources used by Free Booking System
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.47 ▼3.39
Dashboard /wp-admin3.34 ▲0.0447.06 ▼3.92
Posts /wp-admin/edit.php3.39 ▲0.0446.14 ▲0.14
Add New Post /wp-admin/post-new.php5.92 ▲0.0486.58 ▲2.47
Media Library /wp-admin/upload.php3.27 ▲0.0434.78 ▲0.37

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Free Booking System
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲10813.21 ▼1.231.95 ▲0.3638.93 ▼6.88
Dashboard /wp-admin2,224 ▲365.99 ▲0.16105.74 ▲1.1388.50 ▲42.94
Posts /wp-admin/edit.php2,110 ▲182.02 ▲0.0334.92 ▼1.5235.02 ▼0.17
Add New Post /wp-admin/post-new.php1,539 ▲1923.28 ▲0.19662.62 ▲55.1853.33 ▼13.80
Media Library /wp-admin/upload.php1,397 ▲64.23 ▼0.0798.77 ▲0.8184.52 ▲41.37

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

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
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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/free-booking-system/bookonlinepanel.php:38

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 Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: appointments, booking software, appointment booking, booking, booking system...

free-booking-system/bookonlinepanel.php 85% from 13 tests

The primary PHP file in "Free Booking System" version 1.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("free-booking-system.php" instead of "bookonlinepanel.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected198 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15117198

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity1.88
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods112.50%
▷ Public methods562.50%
▷ Protected methods00.00%
▷ Private methods337.50%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
3 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/booking_software.png30.63KB17.09KB▼ 44.18%
img/icon.png1.95KB1.09KB▼ 44.19%
img/booking_software1.png21.80KB4.88KB▼ 77.59%