84% bookyt

Code Review | Bookyt Vermietsoftware

WordPress plugin Bookyt Vermietsoftware scored84%from 54 tests.

About plugin

  • Plugin page: bookyt
  • Plugin version: 1.99
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.8
  • WordPress version: 6.3.1
  • First release: Jan 1, 2021
  • Latest release: Dec 10, 2021
  • Number of updates: 26
  • Update frequency: every 13.2 days
  • Top authors: curato (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /687 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼10.52ms] Passed 4 tests

A check of server-side resources used by Bookyt Vermietsoftware
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0339.84 ▼3.86
Dashboard /wp-admin3.34 ▼0.0149.00 ▼16.24
Posts /wp-admin/edit.php3.39 ▲0.0351.60 ▲1.28
Add New Post /wp-admin/post-new.php5.92 ▲0.0386.25 ▼23.27
Media Library /wp-admin/upload.php3.26 ▲0.0337.68 ▲2.40

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Bookyt Vermietsoftware
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲3113.25 ▼1.061.84 ▼0.1539.66 ▼3.31
Dashboard /wp-admin2,206 ▲185.86 ▼0.01103.84 ▼16.8539.61 ▼4.04
Posts /wp-admin/edit.php2,086 ▼32.05 ▲0.0537.28 ▼3.5733.55 ▼1.04
Add New Post /wp-admin/post-new.php1,520 ▼1323.27 ▲0.21642.06 ▼16.8059.03 ▲6.41
Media Library /wp-admin/upload.php1,391 ▲64.22 ▼0.0498.25 ▼14.5643.83 ▼2.69

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • 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
Everything seems fine, however this is by no means an exhaustive test

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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/bookyt/index.php:15

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
1 plugin tags: bookyt vermietsoftware vermietung reservierung software vermietungssoftware

bookyt/index.php 92% from 13 tests

The main PHP file in "Bookyt Vermietsoftware" ver. 1.99 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("bookyt.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin310 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP35829201
JavaScript1335106
CSS1203

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin