79% mphb-elementor

Code Review | Hotel Booking & Elementor Integration

WordPress plugin Hotel Booking & Elementor Integration scored79%from 54 tests.

About plugin

  • Plugin page: mphb-elementor
  • Plugin version: 1.1.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.1
  • WordPress version: 6.3.1
  • First release: Apr 6, 2018
  • Latest release: Feb 28, 2023
  • Number of updates: 27
  • Update frequency: every 66.3 days
  • Top authors: MotoPress (59.26%)jetmonsters (40.74%)endzevich (7.41%)

Code review

54 tests

User reviews

6 reviews

Install metrics

9,000+ active /97,429 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: ▼6.50ms] Passed 4 tests

An overview of server-side resources used by Hotel Booking & Elementor Integration
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0246.34 ▲1.57
Dashboard /wp-admin3.37 ▲0.0253.34 ▲1.41
Posts /wp-admin/edit.php3.48 ▲0.0849.21 ▼4.46
Add New Post /wp-admin/post-new.php5.95 ▲0.0290.40 ▼18.74
Media Library /wp-admin/upload.php3.29 ▲0.0238.10 ▼4.20

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Hotel Booking & Elementor Integration
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▲0.031.75 ▼0.1043.27 ▼0.51
Dashboard /wp-admin2,195 ▲185.66 ▲0.0398.15 ▲6.2741.98 ▲3.15
Posts /wp-admin/edit.php2,103 ▲31.94 ▼0.0535.37 ▼6.8933.31 ▼5.18
Add New Post /wp-admin/post-new.php1,526 ▼023.01 ▼0.19631.69 ▼43.0275.26 ▲18.89
Media Library /wp-admin/upload.php1,403 ▲34.20 ▲0.0998.76 ▼16.4045.77 ▼3.00

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/mphb-elementor/mphb-elementor.php
    • > /wp-content/plugins/mphb-elementor/plugin.php
  • 13× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'mphbe\\widgets\\AbstractWidget' not found in wp-content/plugins/mphb-elementor/widgets/rates-widget.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'mphbe\\widgets\\AbstractWidget' not found in wp-content/plugins/mphb-elementor/widgets/checkout-widget.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'mphbe\\widgets\\AbstractWidget' not found in wp-content/plugins/mphb-elementor/widgets/abstract-gallery-widget.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'mphbe\\widgets\\AbstractWidget' not found in wp-content/plugins/mphb-elementor/widgets/search-form-widget.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'mphbe\\widgets\\AbstractGalleryWidget' not found in wp-content/plugins/mphb-elementor/widgets/rooms-widget.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/mphb-elementor/widgets/abstract-widget.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'mphbe\\widgets\\AbstractWidget' not found in wp-content/plugins/mphb-elementor/widgets/availability-widget.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'mphbe\\widgets\\AbstractWidget' not found in wp-content/plugins/mphb-elementor/widgets/booking-confirmation-widget.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'mphbe\\widgets\\AbstractWidget' not found in wp-content/plugins/mphb-elementor/widgets/services-widget.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'mphbe\\widgets\\AbstractGalleryWidget' not found in wp-content/plugins/mphb-elementor/widgets/room-widget.php:7

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 Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: hotel booking, booking form, hotel, reservation, booking...

mphb-elementor/mphb-elementor.php Passed 13 tests

Analyzing the main PHP file in "Hotel Booking & Elementor Integration" version 1.1.7
53 characters long description:
Manage hotel booking shortcodes in Elementor builder.

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 detected1,146 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP152641691,146

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity4.00
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity1.66
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes14
▷ Abstract classes321.43%
▷ Concrete classes1178.57%
▷ Final classes00.00%
Methods64
▷ Static methods11.56%
▷ Public methods3960.94%
▷ Protected methods2437.50%
▷ Private methods11.56%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants3
▷ Global constants133.33%
▷ Class constants266.67%
▷ Public constants2100.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
There are no PNG files in this plugin