Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼150.12ms] Passed 4 tests
This is a short check of server-side resources used by WP Hotel Booking Stripe Payment
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 30.21 ▲10.09 |
Dashboard /wp-admin | 3.06 ▲0.01 | 45.20 ▼1.84 |
Posts /wp-admin/edit.php | 3.11 ▲0.01 | 43.68 ▼4.41 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 87.68 ▼578.44 |
Media Library /wp-admin/upload.php | 3.01 ▲0.00 | 37.77 ▼15.78 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Hotel Booking Stripe Payment
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,723 ▲127 | 15.86 ▲0.05 | 8.49 ▲0.20 | 51.21 ▲2.32 |
Dashboard /wp-admin | 2,993 ▲62 | 5.91 ▼0.09 | 138.82 ▼8.44 | 110.46 ▼12.39 |
Posts /wp-admin/edit.php | 2,761 ▲22 | 2.69 ▲0.01 | 70.76 ▲3.41 | 98.05 ▲6.33 |
Add New Post /wp-admin/post-new.php | 1,684 ▲103 | 18.80 ▼1.56 | 375.00 ▼0.99 | 111.68 ▼0.59 |
Media Library /wp-admin/upload.php | 1,830 ▲23 | 5.01 ▼0.00 | 166.13 ▼6.25 | 126.54 ▼2.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WPHB_Settings' not found in wp-content/plugins/wp-hotel-booking-stripe-payment/inc/views/strip-settings.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-hotel-booking-stripe-payment/wp-hotel-booking-stripe.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: booking, stripe, hotel booking, reservation, reservations...
wp-hotel-booking-stripe-payment/wp-hotel-booking-stripe.php 92% from 13 tests
The main PHP file in "WP Hotel Booking Stripe Payment" ver. 1.7.7 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-hotel-booking-stripe-payment.php" instead of "wp-hotel-booking-stripe.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin454 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 103 | 149 | 371 |
JavaScript | 3 | 22 | 9 | 83 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 28.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 4.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
PNG images were not found in this plugin