Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.39MB] [CPU: ▼276.98ms] Passed 4 tests
A check of server-side resources used by Reservit Hotel
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.08 ▲0.36 | 42.01 ▲19.42 |
Dashboard /wp-admin | 3.50 ▲0.45 | 45.22 ▲6.83 |
Posts /wp-admin/edit.php | 3.55 ▲0.45 | 49.02 ▲4.48 |
Add New Post /wp-admin/post-new.php | 5.80 ▲0.37 | 100.28 ▼1,116.85 |
Media Library /wp-admin/upload.php | 3.38 ▲0.37 | 34.51 ▼2.36 |
Home /wp-admin/admin.php?page=reservitHotel | 3.35 | 26.99 |
CSS /wp-admin/admin.php?page=RsvitHotelBestprice_style | 3.32 | 32.20 |
Reservit ID /wp-admin/admin.php?page=ReservitHotelBestprice_id | 3.35 | 31.65 |
Content /wp-admin/admin.php?page=RsvitHotelBestprice_content | 3.35 | 32.41 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_reservit_hotel_bestprice |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Reservit Hotel
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,885 ▲279 | 16.45 ▲0.79 | 13.40 ▲4.12 | 51.80 ▲1.69 |
Dashboard /wp-admin | 3,014 ▲161 | 6.58 ▲0.72 | 172.69 ▲11.49 | 129.65 ▲15.41 |
Posts /wp-admin/edit.php | 2,796 ▲90 | 2.76 ▲0.08 | 71.62 ▲1.31 | 122.34 ▲25.97 |
Add New Post /wp-admin/post-new.php | 1,717 ▲64 | 18.76 ▼0.32 | 406.47 ▲17.89 | 149.72 ▲36.25 |
Media Library /wp-admin/upload.php | 1,859 ▲87 | 5.17 ▲0.18 | 130.99 ▼26.99 | 134.90 ▲8.23 |
Home /wp-admin/admin.php?page=reservitHotel | 1,469 | 2.57 | 61.22 | 100.92 |
CSS /wp-admin/admin.php?page=RsvitHotelBestprice_style | 4,943 | 4.13 | 213.67 | 118.93 |
Reservit ID /wp-admin/admin.php?page=ReservitHotelBestprice_id | 1,146 | 2.57 | 63.09 | 89.81 |
Content /wp-admin/admin.php?page=RsvitHotelBestprice_content | 1,499 | 2.58 | 65.79 | 110.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 1 option in the database
- widget_reservit_hotel_bestprice
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=RsvitHotelBestprice_style
- > Warning in wp-content/plugins/reservit-hotel/reservit-hotel-best-price.php+740
Use of undefined constant selected - assumed 'selected' (this will throw an Error in a future version of PHP)
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/reservit-hotel/reservit-hotel-bestprice-widget.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/reservit-hotel/reservit-hotel.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/reservit-hotel/reservit-hotel-best-price.php:16
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- 14 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=RsvitHotelBestprice_style
- > Console-api (warning) in wp-admin/js/common.min.js?ver=5.8.1+1:283
wpColorPickerL10n.defaultLabel is deprecated since version 5.5.0! Use wp.i18n instead.
- 14 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=RsvitHotelBestprice_style
- > Console-api (warning) in wp-admin/js/common.min.js?ver=5.8.1+1:283
wpColorPickerL10n.pick is deprecated since version 5.5.0! Use wp.i18n instead.
- 14 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=RsvitHotelBestprice_style
- > Console-api (warning) in wp-admin/js/common.min.js?ver=5.8.1+1:283
wpColorPickerL10n.clear is deprecated since version 5.5.0! Use wp.i18n instead.
- 14 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=RsvitHotelBestprice_style
- > Console-api (warning) in wp-admin/js/common.min.js?ver=5.8.1+1:283
wpColorPickerL10n.clearAriaLabel is deprecated since version 5.5.0! Use wp.i18n instead.
Optimizations
Plugin configuration Passed 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
8 plugin tags: price, rate, call to action, room, booking...
reservit-hotel/reservit-hotel.php Passed 13 tests
Analyzing the main PHP file in "Reservit Hotel" version 2.0
69 characters long description:
A plugin for live display of your hotel's room best price by Reservit
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 detected1,807 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 138 | 133 | 1,136 |
PO File | 1 | 146 | 172 | 396 |
CSS | 2 | 29 | 33 | 209 |
JavaScript | 2 | 16 | 43 | 66 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 22.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 2.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 62 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 62 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
reservit.png | 3.81KB | 3.62KB | ▼ 5.05% |