Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.55ms] Passed 4 tests
An overview of server-side resources used by WP Hotel Booking WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.04 ▼1.18 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.21 ▼2.96 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.75 ▲3.64 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 92.14 ▼13.69 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.43 ▲4.70 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Hotel Booking WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.19 ▼1.18 | 1.81 ▲0.09 | 44.71 ▲3.57 |
Dashboard /wp-admin | 2,206 ▲20 | 5.00 ▲0.06 | 103.03 ▼18.11 | 40.69 ▼3.30 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.15 ▲0.12 | 36.31 ▼4.45 | 33.21 ▼5.81 |
Add New Post /wp-admin/post-new.php | 1,547 ▲25 | 18.42 ▼4.62 | 636.63 ▲2.84 | 80.28 ▲26.60 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.18 ▼0.03 | 97.41 ▼0.07 | 42.56 ▲0.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
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 take a closer look at the following
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function WC() in wp-content/plugins/wp-hotel-booking-woocommerce/templates/woocommerce/cart/cart.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-hotel-booking-woocommerce/includes/admin/views/wc-settings.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-hotel-booking-woocommerce/wp-hotel-booking-woocommerce.php:1087
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/wp-hotel-booking-woocommerce/templates/woocommerce/emails/email-order-details.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: reservation, woocommerce, hotel booking, booking, hotel...
wp-hotel-booking-woocommerce/wp-hotel-booking-woocommerce.php 85% from 13 tests
Analyzing the main PHP file in "WP Hotel Booking WooCommerce" version 1.9.5
It is important to fix the following:
- Domain Path: The domain path points to an invalid folder, "/lang/" does not exist
- Requires at least: Required version must match the one declared in readme.txt ("5.8" instead of "3.5")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin1,510 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 412 | 728 | 1,500 |
CSS | 1 | 2 | 0 | 9 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 22.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 116.00 |
Average method complexity | 2.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 90 | |
▷ Static methods | 7 | 7.78% |
▷ Public methods | 87 | 96.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 3.33% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin