Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.25MB] [CPU: ▼2.53ms] Passed 4 tests
An overview of server-side resources used by Travel Booking Plugin | Tour & Hotel Booking Solution For WooCommerce – WpTravelly
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.24 | 38.18 ▼5.08 |
Dashboard /wp-admin | 3.55 ▲0.25 | 46.92 ▼4.31 |
Posts /wp-admin/edit.php | 3.66 ▲0.31 | 48.36 ▲1.98 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 87.69 ▼2.72 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 38.88 ▲4.11 |
Quick Setup /wp-admin/admin.php?page=ttbm_quick_setup | 3.44 | 34.40 |
Tour /wp-admin/admin.php?page=ttbm_tour | 3.44 | 32.74 |
Server storage [IO: ▲6.94MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 281 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Travel Booking Plugin | Tour & Hotel Booking Solution For WooCommerce – WpTravelly
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,015 ▲253 | 14.38 ▼0.33 | 1.65 ▼0.16 | 41.81 ▼4.07 |
Dashboard /wp-admin | 2,414 ▲237 | 5.81 ▲0.26 | 104.95 ▲4.07 | 41.12 ▼5.64 |
Posts /wp-admin/edit.php | 2,280 ▲180 | 2.28 ▲0.34 | 49.11 ▲8.45 | 35.27 ▼8.48 |
Add New Post /wp-admin/post-new.php | 1,564 ▲20 | 23.58 ▼1.55 | 675.96 ▲31.25 | 55.81 ▼6.49 |
Media Library /wp-admin/upload.php | 1,652 ▲261 | 4.39 ▲0.20 | 104.29 ▲3.62 | 42.59 ▼0.84 |
Quick Setup /wp-admin/admin.php?page=ttbm_quick_setup | 1,118 | 2.14 | 46.17 | 51.96 |
Tour /wp-admin/admin.php?page=ttbm_tour | 1,121 | 2.15 | 45.98 | 44.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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 fix the following items
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/tour-booking-manager/support/elementor/elementor-support.php:48
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/tour-booking-manager/support/elementor/elementor-support.php on line 47
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/tour-booking-manager/support/elementor/elementor-support.php on line 47
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/tour-booking-manager/support/elementor/elementor-support.php on line 47
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=ttbm_quick_setup
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: ttbm_date_format is not defined" "ReferenceError: ttbm_date_format is not defined\n at mp_load_date_picker (/wp-content/plugins/tour-booking-manager/assets/helper/mp_style/mp_script.js?ver=1700876169:79:15)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/tour-booking-manager/assets/helper/mp_style/mp_script.js?ver=1700876169:97:3)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/admin.php?page=ttbm_quick_setup
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).select2 is not a function" "TypeError: $(...).select2 is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/tour-booking-manager/assets/admin/mp_admin_settings.js?ver=1700876169:16:22)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ttbm_tour
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught ReferenceError: ttbm_date_format is not defined
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ttbm_tour
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).select2 is not a function
- > GET request to /wp-admin/admin.php?page=ttbm_tour
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: ttbm_date_format is not defined" "ReferenceError: ttbm_date_format is not defined\n at mp_load_date_picker (/wp-content/plugins/tour-booking-manager/assets/helper/mp_style/mp_script.js?ver=1700876170:79:15)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/tour-booking-manager/assets/helper/mp_style/mp_script.js?ver=1700876170:97:3)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/admin.php?page=ttbm_tour
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).select2 is not a function" "TypeError: $(...).select2 is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/tour-booking-manager/assets/admin/mp_admin_settings.js?ver=1700876170:16:22)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: Please add descriptions for these screenshots #1, #10, #11, #12, #13, #14, #15, #16, #17, #18, #19, #2, #20, #21, #22, #3, #4, #5, #6, #7, #8, #9 in tour-booking-manager/assets to your readme.txt
tour-booking-manager/tour-booking-manager.php 85% from 13 tests
The primary PHP file in "Travel Booking Plugin | Tour & Hotel Booking Solution For WooCommerce – WpTravelly" version 1.6.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.4.0" instead of "3.0.9")
- Plugin Name: It is recommended to keep the plugin name shorter than 70 characters (currently 84 characters long)
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected67,074 lines of code in 205 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 123 | 2,440 | 1,135 | 26,175 |
CSS | 21 | 2,109 | 509 | 11,079 |
SVG | 3 | 0 | 0 | 9,552 |
PO File | 7 | 3,511 | 3,960 | 8,159 |
JavaScript | 20 | 1,101 | 1,246 | 6,108 |
Sass | 30 | 601 | 73 | 5,997 |
Markdown | 1 | 3 | 0 | 4 |
PHP code 0% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
The following items need your attention
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 2,411)
- Method cyclomatic complexity has to be reduced to less than 100 (currently 120)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 67.95 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,411.00 |
Average method complexity | 6.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 120.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 57 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 57 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 699 | |
▷ Static methods | 156 | 22.32% |
▷ Public methods | 643 | 91.99% |
▷ Protected methods | 9 | 1.29% |
▷ Private methods | 47 | 6.72% |
Functions | 11 | |
▷ Named functions | 10 | 90.91% |
▷ Anonymous functions | 1 | 9.09% |
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
36 PNG files occupy 0.46MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/helper/images/calendar.png | 0.58KB | 0.57KB | ▼ 1.01% |
assets/helper/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
assets/helper/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
assets/helper/images/arrow_up.png | 1.03KB | 0.23KB | ▼ 77.65% |
assets/helper/images/welcome/withMage.png | 50.10KB | 19.94KB | ▼ 60.21% |