94% booking-engine-yoplanning

Code Review | Booking Engine Yoplanning

WordPress plugin Booking Engine Yoplanning scored 94% from 54 tests.

About plugin

  • Plugin page: booking-engine-yo...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.5
  • WordPress version: 5.8.1
  • First release: Sep 3, 2020
  • Latest release: Sep 3, 2020
  • Number of updates: 9
  • Update frequency: N/A
  • Top authors: baptistep7 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 192 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼141.05ms] Passed 4 tests

A check of server-side resources used by Booking Engine Yoplanning
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1234.33 ▲11.98
Dashboard /wp-admin3.07 ▲0.0144.70 ▲1.84
Posts /wp-admin/edit.php3.12 ▲0.0135.75 ▼9.42
Add New Post /wp-admin/post-new.php5.42 ▼0.0289.41 ▼560.59
Media Library /wp-admin/upload.php3.01 ▲0.0033.65 ▲3.97

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Booking Engine Yoplanning
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10716.05 ▲0.4310.03 ▲0.3148.32 ▼1.30
Dashboard /wp-admin2,967 ▲335.89 ▼0.05135.73 ▼6.72108.53 ▲0.24
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0165.94 ▲2.5988.98 ▲0.02
Add New Post /wp-admin/post-new.php1,506 ▲618.48 ▼0.16377.37 ▼9.54128.54 ▲10.97
Media Library /wp-admin/upload.php1,810 ▲35.02 ▼0.02144.17 ▲6.53127.76 ▲4.36

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/booking-engine-yoplanning/bookingEngine.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Contributors: The plugin contributors field is not present
The official readme.txt is a good inspiration

booking-engine-yoplanning/bookingEngine.php 92% from 13 tests

The main PHP file in "Booking Engine Yoplanning" ver. 1.0.0 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: Name the main plugin file the same as the plugin slug ("booking-engine-yoplanning.php" instead of "bookingEngine.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected46 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript13236
PHP151110

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin