Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.78MB] [CPU: ▼7.01ms] Passed 4 tests
This is a short check of server-side resources used by Rise Hotel Booking
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.41 ▲0.96 | 45.49 ▲0.83 |
Dashboard /wp-admin | 4.13 ▲0.82 | 45.21 ▼2.19 |
Posts /wp-admin/edit.php | 4.19 ▲0.84 | 42.30 ▼5.20 |
Add New Post /wp-admin/post-new.php | 6.43 ▲0.55 | 80.09 ▼21.49 |
Media Library /wp-admin/upload.php | 4.13 ▲0.90 | 41.92 ▲9.30 |
Activity Log /wp-admin/edit.php?post_type=rise_room&page=rise_activity_log | 4.13 | 36.42 |
Settings /wp-admin/edit.php?post_type=rise_room&page=rise_settings | 4.41 | 45.54 |
Coupon Codes /wp-admin/edit.php?post_type=rise_coupon | 4.17 | 41.80 |
Close Rooms /wp-admin/edit.php?post_type=rise_room&page=rise_close_rooms | 4.14 | 35.67 |
Custom Rates /wp-admin/edit.php?post_type=rise_pricing_rate | 4.19 | 39.54 |
Pricing Plans /wp-admin/edit.php?post_type=rise_room&page=rise_pricing_plans | 4.20 | 37.66 |
Add New Room /wp-admin/post-new.php?post_type=rise_room | 4.21 | 42.65 |
Bookings /wp-admin/edit.php?post_type=rise_booking | 4.17 | 39.37 |
Rooms /wp-admin/edit.php?post_type=rise_room | 4.17 | 36.24 |
Server storage [IO: ▲4.33MB] [DB: ▲0.04MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 694 new files
Database: 5 new tables, 15 new options
New tables |
---|
wp_rise_activity_log |
wp_rise_pricing_plans |
wp_rise_pricing_plans_meta |
wp_rise_closed_rooms |
wp_rise_booking_details |
New WordPress options |
---|
rise_admin-mail-template |
rise_advance-payment |
widget_theysaidso_widget |
db_upgraded |
rise_mail-enabled |
rise_show-in-footer-and-checkout |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
rise_enable-offline-payments |
... |
Browser metrics Passed 4 tests
Rise Hotel Booking: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,050 ▲293 | 15.70 ▲1.08 | 15.08 ▲12.93 | 23.36 ▼24.29 |
Dashboard /wp-admin | 2,297 ▲112 | 6.42 ▲0.59 | 108.53 ▲11.39 | 53.59 ▲9.41 |
Posts /wp-admin/edit.php | 2,162 ▲73 | 3.18 ▲1.19 | 50.67 ▲9.85 | 41.11 ▲4.53 |
Add New Post /wp-admin/post-new.php | 1,750 ▲236 | 24.15 ▲6.46 | 668.67 ▲58.00 | 43.31 ▼10.88 |
Media Library /wp-admin/upload.php | 1,482 ▲91 | 5.67 ▲1.49 | 104.88 ▲6.67 | 48.08 ▲3.38 |
Activity Log /wp-admin/edit.php?post_type=rise_room&page=rise_activity_log | 1,037 | 3.53 | 56.92 | 37.45 |
Settings /wp-admin/edit.php?post_type=rise_room&page=rise_settings | 1,666 | 2.85 | 36.32 | 57.63 |
Coupon Codes /wp-admin/edit.php?post_type=rise_coupon | 1,167 | 3.21 | 50.04 | 35.68 |
Close Rooms /wp-admin/edit.php?post_type=rise_room&page=rise_close_rooms | 933 | 3.01 | 38.45 | 28.64 |
Custom Rates /wp-admin/edit.php?post_type=rise_pricing_rate | 2,051 | 3.18 | 40.57 | 36.02 |
Pricing Plans /wp-admin/edit.php?post_type=rise_room&page=rise_pricing_plans | 1,032 | 3.07 | 39.82 | 29.38 |
Add New Room /wp-admin/post-new.php?post_type=rise_room | 2,801 | 10.44 | 216.67 | 83.92 |
Bookings /wp-admin/edit.php?post_type=rise_booking | 1,167 | 3.19 | 42.11 | 33.47 |
Rooms /wp-admin/edit.php?post_type=rise_room | 1,143 | 3.20 | 38.77 | 33.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.04MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie tables were found after uninstall: 5 tables
- wp_rise_pricing_plans
- wp_rise_pricing_plans_meta
- wp_rise_activity_log
- wp_rise_closed_rooms
- wp_rise_booking_details
- This plugin does not fully uninstall, leaving 15 options in the database
- rise_enable-offline-payments
- rise_advance-payment
- rise_notification-mail-addresses
- rise_currency
- rise_show-in-footer-and-checkout
- widget_theysaidso_widget
- rise_tax
- db_upgraded
- rise_customer-mail-template
- theysaidso_admin_options
- ...
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=rise_room
- > Notice in wp-content/plugins/rise-hotel-booking/rise-hotel-booking.php+215
Undefined index: page
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=rise_room&page=rise_pricing_plans
- > Notice in wp-content/plugins/rise-hotel-booking/View/AdminPanel/PricingPlans.php+86
Undefined index: rise_room_id
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 73× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/rise-hotel-booking/PaymentGateways/iyzipay/samples/retrieve_pay_with_iyzico_result.php
- > /wp-content/plugins/rise-hotel-booking/PaymentGateways/iyzipay/samples/approve.php
- > /wp-content/plugins/rise-hotel-booking/PaymentGateways/iyzipay/samples/submerchant_payment_item_update.php
- > /wp-content/plugins/rise-hotel-booking/PaymentGateways/iyzipay/samples/create_payment_with_registered_card.php
- > /wp-content/plugins/rise-hotel-booking/PaymentGateways/iyzipay/samples/create_threeds_payment.php
- > /wp-content/plugins/rise-hotel-booking/PaymentGateways/iyzipay/samples/subscription-samples/delete_pricing_plan.php
- > /wp-content/plugins/rise-hotel-booking/PaymentGateways/iyzipay/samples/retrieve_installments.php
- > /wp-content/plugins/rise-hotel-booking/PaymentGateways/iyzipay/samples/cancel.php
- > /wp-content/plugins/rise-hotel-booking/PaymentGateways/iyzipay/samples/create_payment.php
- > /wp-content/plugins/rise-hotel-booking/PaymentGateways/iyzipay/samples/subscription-samples/create_subscription_with_checkout_form.php
- 559× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/rise-hotel-booking/PaymentGateways/stripe/lib/Service/RefundService.php:7
- > PHP Warning
Use of undefined constant RISE_LOCATION - assumed 'RISE_LOCATION' (this will throw an Error in a future version of PHP) in wp-content/plugins/rise-hotel-booking/Controller/PricingPlansController.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Iyzipay\\Model\\Mapper\\RefundResourceMapper' not found in wp-content/plugins/rise-hotel-booking/PaymentGateways/iyzipay/src/Iyzipay/Model/Mapper/RefundChargedFromMerchantMapper.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/rise-hotel-booking/PaymentGateways/stripe/lib/Issuing/CardDetails.php:16
- > PHP Fatal error
Uncaught Error: Interface 'Iyzipay\\JsonConvertible' not found in wp-content/plugins/rise-hotel-booking/PaymentGateways/iyzipay/src/Iyzipay/BaseModel.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/rise-hotel-booking/PaymentGateways/stripe/lib/RecipientTransfer.php:33
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/rise-hotel-booking/PaymentGateways/stripe/lib/Identity/VerificationReport.php:36
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/rise-hotel-booking/PaymentGateways/stripe/lib/Recipient.php:35
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/rise-hotel-booking/PaymentGateways/stripe/lib/Order.php:40
- > PHP Warning
include_once(): Failed opening 'RISE_LOCATION/Controller/PaymentController.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/rise-hotel-booking/Controller/Shortcode/RoomCheckoutShortcode.php on line 2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- > GET request to /wp-admin/edit.php?post_type=rise_room&page=rise_activity_log
- > Network (severe)
wp-content/plugins/rise-hotel-booking/Assets/Dependencies/images/sort_both.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=rise_room&page=rise_activity_log
- > Network (severe)
wp-content/plugins/rise-hotel-booking/Assets/Dependencies/images/sort_desc.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: Add an image for screenshot #5 (Available rooms to book on that date)
rise-hotel-booking/rise-hotel-booking.php 92% from 13 tests
The entry point to "Rise Hotel Booking" version 1.1.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Please make sure to remedy the following
- Do not include executable or dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/rise-hotel-booking/PaymentGateways/stripe/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 649 | 6,342 | 11,473 | 29,418 |
JavaScript | 9 | 434 | 995 | 15,060 |
CSS | 7 | 325 | 110 | 2,116 |
Markdown | 4 | 747 | 0 | 1,344 |
PO File | 1 | 298 | 350 | 776 |
HTML | 1 | 16 | 7 | 461 |
SVG | 1 | 0 | 0 | 92 |
JSON | 2 | 0 | 0 | 91 |
SQL | 1 | 24 | 0 | 81 |
XML | 1 | 0 | 0 | 31 |
make | 1 | 8 | 0 | 23 |
YAML | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 1.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 33 | |
Interfaces | 12 | |
Traits | 7 | |
Classes | 536 | |
▷ Abstract classes | 11 | 2.05% |
▷ Concrete classes | 525 | 97.95% |
▷ Final classes | 0 | 0.00% |
Methods | 3,069 | |
▷ Static methods | 436 | 14.21% |
▷ Public methods | 2,975 | 96.94% |
▷ Protected methods | 36 | 1.17% |
▷ Private methods | 58 | 1.89% |
Functions | 36 | |
▷ Named functions | 10 | 27.78% |
▷ Anonymous functions | 26 | 72.22% |
Constants | 833 | |
▷ Global constants | 4 | 0.48% |
▷ Class constants | 829 | 99.52% |
▷ Public constants | 829 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin