10% vr-booking-lite

Code Review | VR Booking Lite by MyHotelZone

WordPress plugin VR Booking Lite by MyHotelZone scored10%from 54 tests.

About plugin

  • Plugin page: vr-booking-lite
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.7.2
  • WordPress version: 6.3.1
  • First release: Mar 21, 2017
  • Latest release: Apr 1, 2017
  • Number of updates: 12
  • Update frequency: every 0.8 days
  • Top authors: myhotelzone (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,332 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Warning in wp-content/plugins/vr-booking-lite/vr-booking-lite.php+26
    include_once(wp-content/plugins/vr-booking-lite/includes/functions.php): failed to open stream: No such file or directory

Server metrics [RAM: ▼1.94MB] [CPU: ▼53.71ms] Passed 4 tests

Analyzing server-side resources used by VR Booking Lite by MyHotelZone
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.05 ▼1.414.50 ▼33.32
Dashboard /wp-admin2.07 ▼1.245.77 ▼42.68
Posts /wp-admin/edit.php2.07 ▼1.295.30 ▼44.11
Add New Post /wp-admin/post-new.php2.07 ▼3.825.10 ▼94.72
Media Library /wp-admin/upload.php2.07 ▼1.165.22 ▼27.78

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

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

Browser metrics Passed 4 tests

A check of browser resources used by VR Booking Lite by MyHotelZone
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.82 ▲0.441.94 ▲0.2745.66 ▼2.87
Dashboard /wp-admin2,209 ▲245.90 ▲0.8598.14 ▼3.4940.53 ▼3.97
Posts /wp-admin/edit.php2,092 ▲31.99 ▼0.0240.70 ▼1.8936.28 ▲1.33
Add New Post /wp-admin/post-new.php1,532 ▲1823.09 ▲5.40636.08 ▲17.6357.94 ▲11.70
Media Library /wp-admin/upload.php1,382 ▼64.22 ▲0.0796.85 ▲3.9843.20 ▲2.15

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > Warning in wp-content/plugins/vr-booking-lite/vr-booking-lite.php+26
    include_once(wp-content/plugins/vr-booking-lite/includes/functions.php): failed to open stream: No such file or directory
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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 errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Tags: There are too many tags (25 tag instead of maximum 10)
You can take inspiration from this readme.txt

vr-booking-lite/vr-booking-lite.php Passed 13 tests

The principal PHP file in "VR Booking Lite by MyHotelZone" v. 1.0 is loaded by WordPress automatically on each request
125 characters long description:
VR Booking Lite is a WordPress booking plugin customized for specific needs of all types of accommodation / property rentals.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin15 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP181115

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin