84% sirvoy-booking-engine

Code Review | Sirvoy Booking Engine

WordPress plugin Sirvoy Booking Engine scored84%from 54 tests.

About plugin

  • Plugin page: sirvoy-booking-en...
  • Plugin version: 4.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.2
  • WordPress version: 6.3.1
  • First release: Dec 14, 2018
  • Latest release: Nov 18, 2022
  • Number of updates: 26
  • Update frequency: every 55.2 days
  • Top authors: john@sirvoy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /5,350 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Sirvoy Booking Engine
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0151.42 ▲9.22
Dashboard /wp-admin3.32 ▼0.0350.86 ▼16.61
Posts /wp-admin/edit.php3.37 ▲0.0151.54 ▼0.42
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.67 ▼19.93
Media Library /wp-admin/upload.php3.24 ▲0.0140.33 ▲5.78
Sirvoy Booking Engine /wp-admin/options-general.php?page=sirvoy-booking-engine-admin3.2032.04

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Sirvoy Booking Engine
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.28 ▼0.481.69 ▼0.1742.68 ▼2.08
Dashboard /wp-admin2,202 ▲225.63 ▼0.0388.21 ▼1.3238.85 ▼4.71
Posts /wp-admin/edit.php2,104 ▲41.99 ▲0.0236.39 ▼0.4331.19 ▼5.45
Add New Post /wp-admin/post-new.php1,529 ▲323.15 ▼0.26647.25 ▼32.6758.48 ▲3.91
Media Library /wp-admin/upload.php1,404 ▲74.24 ▼0.03100.58 ▼32.8742.82 ▼11.33
Sirvoy Booking Engine /wp-admin/options-general.php?page=sirvoy-booking-engine-admin8002.0227.2754.60

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/sirvoy-booking-engine/sirvoy-booking-engine.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: hotel booking system, pms, accommodation booking, availability calendar, booking engine...

sirvoy-booking-engine/sirvoy-booking-engine.php 92% from 13 tests

The entry point to "Sirvoy Booking Engine" version 4.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 270 characters long)

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
Success! There were no dangerous files found in this plugin74 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1144174

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions4
▷ Named functions4100.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
No PNG images were found in this plugin