Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.28MB] [CPU: ▼5.01ms] Passed 4 tests
Server-side resources used by HS Direct Booking
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.30 | 48.00 ▲4.23 |
Dashboard /wp-admin | 3.63 ▲0.28 | 45.31 ▼15.21 |
Posts /wp-admin/edit.php | 3.68 ▲0.32 | 48.63 ▼2.20 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 85.93 ▼5.03 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 35.67 ▲2.39 |
Dashboard /wp-admin/admin.php?page=hs_booking_engine | 3.46 | 30.93 |
Settings /wp-admin/admin.php?page=hs_booking_engine_settings | 3.46 | 32.69 |
Server storage [IO: ▲0.87MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 82 new files
Database: no new tables, 7 new options
New WordPress options |
---|
hs_booking_engine |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for HS Direct Booking
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,953 ▲218 | 14.00 ▼0.38 | 10.65 ▲8.02 | 36.09 ▼32.93 |
Dashboard /wp-admin | 2,246 ▲55 | 5.79 ▲0.90 | 109.56 ▼9.23 | 91.52 ▲47.87 |
Posts /wp-admin/edit.php | 2,135 ▲64 | 1.98 ▼0.04 | 39.94 ▲2.91 | 33.76 ▼1.75 |
Add New Post /wp-admin/post-new.php | 6,217 ▲4,697 | 18.91 ▼4.37 | 912.00 ▲223.10 | 157.25 ▲106.84 |
Media Library /wp-admin/upload.php | 1,431 ▲46 | 4.19 ▼0.11 | 95.44 ▼4.56 | 67.92 ▲26.58 |
Dashboard /wp-admin/admin.php?page=hs_booking_engine | 821 | 2.02 | 27.71 | 31.43 |
Settings /wp-admin/admin.php?page=hs_booking_engine_settings | 1,414 | 2.28 | 35.18 | 34.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- hs_booking_engine
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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 items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/hotel-spider/hs-direct-booking.php
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'HSBEInc\\Base\\BaseController' not found in wp-content/plugins/hotel-spider/hsbeinc/Base/Enqueue.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/hotel-spider/templates/adminSettings.php:2
- > PHP Fatal error
Uncaught Error: Class 'HSBEInc\\Api\\BookingEngineFields' not found in wp-content/plugins/hotel-spider/hsbeinc/Frontend/DisplayWidget.php:10
- > PHP Fatal error
Uncaught Error: Class 'HSBEInc\\Base\\BaseController' not found in wp-content/plugins/hotel-spider/hsbeinc/Base/Gutenberg.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/hotel-spider/templates/adminDashboard.php:2
- > PHP Fatal error
Uncaught Error: Class 'HSBEInc\\Base\\BaseController' not found in wp-content/plugins/hotel-spider/hsbeinc/Pages/Admin.php:13
- > PHP Fatal error
Uncaught Error: Class 'HSBEInc\\Base\\BaseController' not found in wp-content/plugins/hotel-spider/hsbeinc/Base/SettingsLinks.php:10
- > PHP Fatal error
Uncaught Error: Class 'HSBEInc\\Base\\BaseController' not found in wp-content/plugins/hotel-spider/hsbeinc/Api/Callbacks/AdminCallbacks.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: hospitality, booking, hotelspider, hotel-spider
hotel-spider/hs-direct-booking.php 85% from 13 tests
The primary PHP file in "HS Direct Booking" version 1.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("hotel-spider.php" instead of "hs-direct-booking.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 680 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected20,697 lines of code in 49 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 4 | 0 | 0 | 17,727 |
PHP | 25 | 235 | 259 | 1,423 |
PO File | 14 | 544 | 337 | 1,369 |
JavaScript | 3 | 26 | 6 | 121 |
CSS | 1 | 0 | 0 | 26 |
SVG | 1 | 1 | 1 | 25 |
YAML | 1 | 0 | 0 | 6 |
PHP code Passed 2 tests
An overview of 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.40 |
Average class complexity | 12.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 66.00 |
Average method complexity | 3.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 66.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 1 | 6.67% |
Methods | 69 | |
▷ Static methods | 8 | 11.59% |
▷ Public methods | 65 | 94.20% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 5.80% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin