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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.02 | 46.34 ▲1.57 |
Dashboard /wp-admin | 3.37 ▲0.02 | 53.34 ▲1.41 |
Posts /wp-admin/edit.php | 3.48 ▲0.08 | 49.21 ▼4.46 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.02 | 90.40 ▼18.74 |
Media Library /wp-admin/upload.php | 3.29 ▲0.02 | 38.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.35 ▲0.03 | 1.75 ▼0.10 | 43.27 ▼0.51 |
Dashboard /wp-admin | 2,195 ▲18 | 5.66 ▲0.03 | 98.15 ▲6.27 | 41.98 ▲3.15 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.94 ▼0.05 | 35.37 ▼6.89 | 33.31 ▼5.18 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.01 ▼0.19 | 631.69 ▼43.02 | 75.26 ▲18.89 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.20 ▲0.09 | 98.76 ▼16.40 | 45.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 264 | 169 | 1,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 code | 0.17 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 3 | 21.43% |
▷ Concrete classes | 11 | 78.57% |
▷ Final classes | 0 | 0.00% |
Methods | 64 | |
▷ Static methods | 1 | 1.56% |
▷ Public methods | 39 | 60.94% |
▷ Protected methods | 24 | 37.50% |
▷ Private methods | 1 | 1.56% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 3 | |
▷ Global constants | 1 | 33.33% |
▷ Class constants | 2 | 66.67% |
▷ Public constants | 2 | 100.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