Benchmarks
Plugin footprint 65% 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: ▲3.14MB] [CPU: ▲14.42ms] Passed 4 tests
This is a short check of server-side resources used by WP Hotelier
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.94 ▲2.48 | 50.37 ▲10.57 |
Dashboard /wp-admin | 6.68 ▲3.37 | 73.54 ▲23.12 |
Posts /wp-admin/edit.php | 6.73 ▲3.37 | 64.35 ▲16.01 |
Add New Post /wp-admin/post-new.php | 9.29 ▲3.40 | 117.11 ▲7.99 |
Media Library /wp-admin/upload.php | 6.58 ▲3.35 | 56.07 ▲23.56 |
Add New /wp-admin/post-new.php?post_type=room | 6.82 | 73.21 |
Categories /wp-admin/edit-tags.php?taxonomy=room_cat&post_type=room | 6.58 | 50.20 |
Extras /wp-admin/edit.php?post_type=extra | 6.65 | 52.75 |
Add Reservation /wp-admin/admin.php?page=hotelier-add-reservation | 6.54 | 51.94 |
Facilities /wp-admin/edit-tags.php?taxonomy=room_facilities&post_type=room | 6.58 | 52.61 |
All Rooms /wp-admin/edit.php?post_type=room | 6.65 | 52.36 |
Settings /wp-admin/admin.php?page=hotelier-settings | 6.67 | 57.80 |
Reservations /wp-admin/edit.php?post_type=room_reservation | 6.66 | 63.53 |
Rates /wp-admin/edit-tags.php?taxonomy=room_rate&post_type=room | 6.58 | 53.05 |
Logs /wp-admin/admin.php?page=hotelier-logs | 6.51 | 46.43 |
Server storage [IO: ▲4.54MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 391 new files
Database: 5 new tables, 13 new options
New tables |
---|
wp_hotelier_reservation_itemmeta |
wp_hotelier_bookings |
wp_hotelier_reservation_items |
wp_hotelier_sessions |
wp_hotelier_rooms_bookings |
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
hotelier_version |
widget_hotelier-widget-rooms |
hotelier_settings |
widget_theysaidso_widget |
widget_hotelier-widget-ajax-room-booking |
widget_hotelier-widget-rooms-filter |
widget_hotelier-widget-room-search |
... |
Browser metrics Passed 4 tests
Checking browser requirements for WP Hotelier
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,995 ▲249 | 14.17 ▼0.44 | 6.96 ▲5.24 | 37.87 ▼1.07 |
Dashboard /wp-admin | 2,304 ▲119 | 5.82 ▼0.03 | 98.08 ▼7.93 | 35.03 ▼7.27 |
Posts /wp-admin/edit.php | 2,187 ▲98 | 2.02 ▲0.02 | 37.31 ▼6.21 | 34.10 ▲0.49 |
Add New Post /wp-admin/post-new.php | 1,599 ▲60 | 22.99 ▲4.75 | 657.06 ▲45.56 | 53.03 ▼5.52 |
Media Library /wp-admin/upload.php | 1,489 ▲98 | 4.17 ▼0.08 | 96.12 ▼0.10 | 42.80 ▼0.49 |
Add New /wp-admin/post-new.php?post_type=room | 3,489 | 7.69 | 208.85 | 111.79 |
Categories /wp-admin/edit-tags.php?taxonomy=room_cat&post_type=room | 1,366 | 2.14 | 32.64 | 29.19 |
Extras /wp-admin/edit.php?post_type=extra | 1,135 | 2.00 | 32.46 | 26.79 |
Add Reservation /wp-admin/admin.php?page=hotelier-add-reservation | 980 | 1.84 | 26.08 | 36.10 |
Facilities /wp-admin/edit-tags.php?taxonomy=room_facilities&post_type=room | 1,341 | 2.20 | 26.08 | 27.23 |
All Rooms /wp-admin/edit.php?post_type=room | 1,197 | 2.57 | 41.89 | 27.37 |
Settings /wp-admin/admin.php?page=hotelier-settings | 3,189 | 3.34 | 53.89 | 43.65 |
Reservations /wp-admin/edit.php?post_type=room_reservation | 1,203 | 2.24 | 33.50 | 27.36 |
Rates /wp-admin/edit-tags.php?taxonomy=room_rate&post_type=room | 1,335 | 2.14 | 25.16 | 28.38 |
Logs /wp-admin/admin.php?page=hotelier-logs | 946 | 1.72 | 24.45 | 31.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure failed, leaving 5 tables in the database
- wp_hotelier_rooms_bookings
- wp_hotelier_reservation_items
- wp_hotelier_sessions
- wp_hotelier_reservation_itemmeta
- wp_hotelier_bookings
- Zombie WordPress options were found after uninstall: 13 options
- widget_theysaidso_widget
- widget_hotelier-widget-booking
- widget_hotelier-widget-rooms-filter
- widget_recent-posts
- widget_hotelier-widget-room-search
- theysaidso_admin_options
- hotelier_settings
- hotelier_version
- can_compress_scripts
- widget_recent-comments
- ...
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
The SRP test was a success
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 86% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: booking, reservations, wphotelier, rooms, hostel...
wp-hotelier/hotelier.php 69% from 13 tests
This is the main PHP file of "WP Hotelier" version 2.11.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
- Domain Path: The domain path must begin with a forward slash character ("/languages")
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-hotelier.php" instead of "hotelier.php")
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.1" instead of "4.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin42,128 lines of code in 371 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 319 | 6,845 | 9,318 | 22,491 |
SVG | 14 | 0 | 12 | 8,788 |
CSS | 9 | 2,409 | 377 | 8,162 |
JavaScript | 28 | 306 | 71 | 1,506 |
XML | 1 | 27 | 16 | 1,181 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 24.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 156.00 |
Average method complexity | 3.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 67.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 80 | |
▷ Abstract classes | 2 | 2.50% |
▷ Concrete classes | 78 | 97.50% |
▷ Final classes | 1 | 1.28% |
Methods | 834 | |
▷ Static methods | 188 | 22.54% |
▷ Public methods | 767 | 91.97% |
▷ Protected methods | 31 | 3.72% |
▷ Private methods | 36 | 4.32% |
Functions | 230 | |
▷ Named functions | 227 | 98.70% |
▷ Anonymous functions | 3 | 1.30% |
Constants | 17 | |
▷ Global constants | 17 | 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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/frontend/photoswipe/default-skin/default-skin.png | 0.53KB | 0.72KB | 0.00% |
assets/images/placeholder.png | 1.13KB | 1.24KB | 0.00% |