62% bookeropl

Code Review | Bookero.pl - system rezerwacji online

WordPress plugin Bookero.pl - system rezerwacji online scored62%from 54 tests.

About plugin

  • Plugin page: bookeropl
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.3.1
  • WordPress version: 6.3.1
  • First release: Jan 24, 2017
  • Latest release: Sep 29, 2023
  • Number of updates: 16
  • Update frequency: every 152.4 days
  • Top authors: safistudio (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

700+ active /4,360 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.90MB] [CPU: ▼29.27ms] Passed 4 tests

Analyzing server-side resources used by Bookero.pl - system rezerwacji online
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0534.91 ▼5.83
Dashboard /wp-admin3.05 ▼0.2622.34 ▼23.39
Posts /wp-admin/edit.php3.05 ▼0.3124.13 ▼20.02
Add New Post /wp-admin/post-new.php3.05 ▼2.8424.47 ▼63.07
Media Library /wp-admin/upload.php3.05 ▼0.1821.72 ▼10.58
Ustawienia /wp-admin/admin.php?page=bookero-settings3.0523.76
Kalendarz /wp-admin/admin.php?page=bookero-panel3.0522.38
Pomoc /wp-admin/admin.php?page=bookero-help3.0522.19

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Bookero.pl - system rezerwacji online: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲8314.28 ▼0.211.94 ▲0.2140.60 ▼2.88
Dashboard /wp-admin2,225 ▲485.52 ▼0.0382.54 ▼20.9470.29 ▲25.87
Posts /wp-admin/edit.php2,127 ▲301.99 ▲0.0039.45 ▲4.4738.92 ▲6.10
Add New Post /wp-admin/post-new.php1,571 ▲2023.33 ▲5.19737.21 ▲83.0759.20 ▼7.99
Media Library /wp-admin/upload.php1,424 ▲244.17 ▼0.0297.60 ▲1.8375.88 ▲35.98
Ustawienia /wp-admin/admin.php?page=bookero-settings9022.0527.4042.54
Kalendarz /wp-admin/admin.php?page=bookero-panel8432.1426.0228.28
Pomoc /wp-admin/admin.php?page=bookero-help8371.9926.1129.56

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5905
    Function add_menu_page was called incorrectly. The seventh parameter passed to add_menu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 6.0.0.)
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=bookero-help
    • > User notice in wp-includes/functions.php+5905
    Function add_menu_page was called incorrectly. The seventh parameter passed to add_menu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 6.0.0.)

SRP 0% 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 take a closer look at the following
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/bookeropl/views/partials/tabs.php
    • > /wp-content/plugins/bookeropl/views/help.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/bookeropl/bookero-plugin.php:22
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/bookeropl/views/dashboard.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: rezerwacje, system rezerwacji online, system rezerwacji, rezerwacje online, formularz rezerwacji

bookeropl/bookero-plugin.php 85% from 13 tests

The main PHP file in "Bookero.pl - system rezerwacji online" ver. 1.4 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bookeropl.php" instead of "bookero-plugin.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
Everything looks great! No dangerous files found in this plugin451 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP975115451

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity14.60
▷ Minimum class complexity1.00
▷ Maximum class complexity25.00
Average method complexity3.34
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods29
▷ Static methods413.79%
▷ Public methods29100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/bookero-logo.png15.58KB1.27KB▼ 91.87%