Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲10.25MB] [CPU: ▲113.90ms] 25% from 4 tests
Analyzing server-side resources used by Hotel Booking Lite
Please fix the following
- RAM: Total memory usage must be kept under 10MB (currently 13.60MB on /wp-admin/edit.php?post_type=mphb_room_type&page=mphb_room_attribute)
- CPU: You should keep total CPU usage under 500.00ms (currently 1,510.29ms on /wp-admin/admin.php?page=mphb_extensions)
- Extra RAM: The extra memory usage should kept under 5MB (currently 10.25MB on /wp-admin/edit.php?post_type=mphb_room_type&page=mphb_room_attribute)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 13.05 ▲9.59 | 126.90 ▲86.03 |
Dashboard /wp-admin | 13.80 ▲10.49 | 268.93 ▲221.55 |
Posts /wp-admin/edit.php | 13.87 ▲10.50 | 164.95 ▲110.49 |
Add New Post /wp-admin/post-new.php | 18.91 ▲13.02 | 219.88 ▲129.52 |
Media Library /wp-admin/upload.php | 13.64 ▲10.41 | 162.64 ▲129.56 |
Seasons /wp-admin/edit.php?post_type=mphb_season | 13.77 | 153.22 |
Payment History /wp-admin/edit.php?post_type=mphb_payment | 13.77 | 152.68 |
Extensions /wp-admin/admin.php?page=mphb_extensions | 13.89 | 1,510.29 |
Customers /wp-admin/admin.php?page=mphb_customers | 13.94 | 132.21 |
Shortcodes /wp-admin/edit.php?post_type=mphb_room_type&page=mphb_shortcodes | 13.60 | 133.45 |
Calendar /wp-admin/admin.php?page=mphb_calendar | 13.59 | 131.53 |
Amenities /wp-admin/edit-tags.php?taxonomy=mphb_room_type_facility&post_type=mphb_room_type | 13.76 | 135.44 |
Reports /wp-admin/admin.php?page=mphb_reports | 14.16 | 151.85 |
Generate Accommodations /wp-admin/edit.php?post_type=mphb_room_type&page=mphb_rooms_generator | 13.60 | 139.59 |
Attributes /wp-admin/edit.php?post_type=mphb_room_type&page=mphb_room_attribute | 13.60 | 137.73 |
Server storage [IO: ▲10.46MB] [DB: ▲0.04MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 681 new files
Database: 7 new tables, 12 new options
New tables |
---|
wp_mphb_sync_stats |
wp_mphb_api_keys |
wp_mphb_customers_meta |
wp_mphb_sync_urls |
wp_mphb_customers |
wp_mphb_sync_logs |
wp_mphb_sync_queue |
New WordPress options |
---|
widget_theysaidso_widget |
widget_mphb_search_availability_widget |
widget_mphb_rooms_widget |
mphb_passed_notices |
mphb_registered_attributes |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
mphb_custom_roles_version |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Hotel Booking Lite
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,081 ▲319 | 13.80 ▼0.48 | 17.76 ▲15.90 | 40.26 ▼5.09 |
Dashboard /wp-admin | 2,368 ▲201 | 5.62 ▼0.01 | 95.59 ▼16.47 | 48.12 ▲5.38 |
Posts /wp-admin/edit.php | 2,270 ▲170 | 2.13 ▲0.19 | 40.34 ▼1.03 | 38.82 ▲4.85 |
Add New Post /wp-admin/post-new.php | 1,644 ▲118 | 18.90 ▼4.46 | 677.52 ▲72.33 | 40.69 ▼6.70 |
Media Library /wp-admin/upload.php | 1,570 ▲170 | 4.17 ▼0.05 | 109.59 ▲12.03 | 50.23 ▲7.22 |
Seasons /wp-admin/edit.php?post_type=mphb_season | 1,240 | 2.05 | 39.64 | 35.91 |
Payment History /wp-admin/edit.php?post_type=mphb_payment | 1,289 | 2.04 | 35.83 | 36.28 |
Extensions /wp-admin/admin.php?page=mphb_extensions | 1,243 | 2.57 | 41.53 | 39.51 |
Customers /wp-admin/admin.php?page=mphb_customers | 1,283 | 2.46 | 42.54 | 32.66 |
Shortcodes /wp-admin/edit.php?post_type=mphb_room_type&page=mphb_shortcodes | 3,036 | 1.65 | 28.80 | 39.65 |
Calendar /wp-admin/admin.php?page=mphb_calendar | 1,763 | 2.31 | 47.21 | 37.12 |
Amenities /wp-admin/edit-tags.php?taxonomy=mphb_room_type_facility&post_type=mphb_room_type | 1,465 | 2.30 | 32.98 | 37.62 |
Reports /wp-admin/admin.php?page=mphb_reports | 1,508 | 3.48 | 85.39 | 40.07 |
Generate Accommodations /wp-admin/edit.php?post_type=mphb_room_type&page=mphb_rooms_generator | 1,029 | 1.81 | 30.05 | 29.99 |
Attributes /wp-admin/edit.php?post_type=mphb_room_type&page=mphb_room_attribute | 1,009 | 1.66 | 27.13 | 30.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.05MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie tables were found after uninstall: 7 tables
- wp_mphb_customers
- wp_mphb_sync_logs
- wp_mphb_customers_meta
- wp_mphb_sync_urls
- wp_mphb_sync_queue
- wp_mphb_sync_stats
- wp_mphb_api_keys
- This plugin does not fully uninstall, leaving 12 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_mphb_rooms_widget
- widget_recent-posts
- mphb_custom_roles_version
- db_upgraded
- mphb_db_version
- mphb_registered_attributes
- ...
Smoke tests 75% 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 50% 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
- 219× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'MPHB\\Advanced\\Api\\Data\\AbstractPostData' not found in wp-content/plugins/motopress-hotel-booking-lite/includes/advanced/api/data/payment-data.php:12
- > PHP Fatal error
Uncaught Error: Class 'MPHB\\Admin\\Fields\\TextField' not found in wp-content/plugins/motopress-hotel-booking-lite/includes/admin/fields/color-picker-field.php:5
- > PHP Fatal error
Uncaught Error: Class 'MPHB\\PostTypes\\EditableCPT' not found in wp-content/plugins/motopress-hotel-booking-lite/includes/post-types/service-cpt.php:10
- > PHP Fatal error
Uncaught Error: Class 'MPHB\\PostTypes\\EditableCPT' not found in wp-content/plugins/motopress-hotel-booking-lite/includes/post-types/attributes-cpt.php:8
- > PHP Fatal error
Uncaught Error: Interface 'MPHB\\BookingRules\\RuleVerifyInterface' not found in wp-content/plugins/motopress-hotel-booking-lite/includes/booking-rules/abstract-rule.php:10
- > PHP Fatal error
Uncaught Error: Class 'MPHB\\BackgroundPausableProcess' not found in wp-content/plugins/motopress-hotel-booking-lite/includes/upgrades/background-booking-upgrader-2-2-0.php:7
- > PHP Fatal error
Uncaught Error: Class 'MPHB\\Emails\\Booking\\Customer\\BaseEmail' not found in wp-content/plugins/motopress-hotel-booking-lite/includes/emails/booking/customer/pending-email.php:5
- > PHP Fatal error
Uncaught Error: Class 'MPHB\\PostTypes\\AbstractCPT' not found in wp-content/plugins/motopress-hotel-booking-lite/includes/post-types/editable-cpt.php:8
- > PHP Fatal error
Uncaught Error: Class 'MPHB\\Admin\\Fields\\InputField' not found in wp-content/plugins/motopress-hotel-booking-lite/includes/admin/fields/install-plugin-field.php:8
- > PHP Fatal error
Uncaught Error: Class 'MPHB\\Advanced\\Api\\Controllers\\AbstractRestObjectController' not found in wp-content/plugins/motopress-hotel-booking-lite/includes/advanced/api/controllers/v1/accommodation-type-attributes-controller.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Tags: You are using too many tags: 20 tag instead of maximum 10
motopress-hotel-booking-lite/motopress-hotel-booking.php 85% from 13 tests
The primary PHP file in "Hotel Booking Lite" version 4.8.5 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("motopress-hotel-booking-lite.php" instead of "motopress-hotel-booking.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected190,566 lines of code in 638 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 26 | 51,142 | 1,430 | 106,500 |
PHP | 472 | 13,740 | 15,921 | 53,558 |
JavaScript | 107 | 3,601 | 3,343 | 21,717 |
CSS | 28 | 967 | 790 | 8,507 |
Markdown | 2 | 60 | 0 | 130 |
XML | 1 | 0 | 9 | 117 |
SVG | 1 | 0 | 0 | 19 |
JSON | 1 | 0 | 0 | 18 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 15.61 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 183.00 |
Average method complexity | 2.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 73.00 |
Code structure | ||
---|---|---|
Namespaces | 63 | |
Interfaces | 3 | |
Traits | 1 | |
Classes | 362 | |
▷ Abstract classes | 35 | 9.67% |
▷ Concrete classes | 327 | 90.33% |
▷ Final classes | 2 | 0.61% |
Methods | 3,477 | |
▷ Static methods | 405 | 11.65% |
▷ Public methods | 2,581 | 74.23% |
▷ Protected methods | 582 | 16.74% |
▷ Private methods | 314 | 9.03% |
Functions | 282 | |
▷ Named functions | 172 | 60.99% |
▷ Anonymous functions | 110 | 39.01% |
Constants | 259 | |
▷ Global constants | 2 | 0.77% |
▷ Class constants | 257 | 99.23% |
▷ Public constants | 257 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendors/woothemes-FlexSlider/images/bg_play_pause.png | 1.51KB | 0.52KB | ▼ 65.52% |