Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.91MB] [CPU: ▲0.45ms] Passed 4 tests
Server-side resources used by Travel Booking Toolkit
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.45 ▲0.99 | 44.74 ▲6.31 |
Dashboard /wp-admin | 4.26 ▲0.91 | 48.51 ▼12.74 |
Posts /wp-admin/edit.php | 4.31 ▲0.95 | 54.63 ▲8.42 |
Add New Post /wp-admin/post-new.php | 6.80 ▲0.91 | 102.12 ▲1.53 |
Media Library /wp-admin/upload.php | 4.12 ▲0.89 | 41.29 ▲6.70 |
Server storage [IO: ▲5.93MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 166 new files
Database: no new tables, 13 new options
New WordPress options |
---|
widget_travel_booking_toolkit_image_text_widget |
widget_travel_booking_toolkit_recent_post |
widget_travel_booking_toolkit_taxonomy_list |
widget_travel_booking_toolkit_icon_text_widget |
widget_theysaidso_widget |
widget_travel_booking_toolkit_contact_social_links |
widget_recent-comments |
db_upgraded |
widget_wptravelengine_client_logo_widget |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Travel Booking Toolkit
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 6,096 ▲3,350 | 21.07 ▲6.69 | 15.94 ▲14.16 | 44.35 ▲0.55 |
Dashboard /wp-admin | 5,385 ▲3,200 | 8.07 ▲3.17 | 154.01 ▲32.26 | 41.50 ▼0.01 |
Posts /wp-admin/edit.php | 5,282 ▲3,193 | 5.55 ▲3.54 | 88.02 ▲53.79 | 35.63 ▲1.17 |
Add New Post /wp-admin/post-new.php | 3,176 ▲1,657 | 25.07 ▲1.67 | 713.06 ▲34.20 | 39.03 ▼19.26 |
Media Library /wp-admin/upload.php | 4,576 ▲3,185 | 7.37 ▲3.21 | 135.29 ▲36.61 | 44.33 ▼1.57 |
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
- This plugin did not uninstall successfully, leaving 13 options in the database
- can_compress_scripts
- widget_travel_booking_toolkit_icon_text_widget
- widget_recent-posts
- widget_travel_booking_toolkit_contact_social_links
- theysaidso_admin_options
- widget_recent-comments
- widget_wptravelengine_client_logo_widget
- db_upgraded
- widget_theysaidso_widget
- widget_travel_booking_toolkit_cta_widget
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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
- 37× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/travel-booking-toolkit/includes/widgets/widget-team-member.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/travel-booking-toolkit/includes/travel-muni/customizer/home/destination.php:215
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/travel-booking-toolkit/includes/class-travel-booking-toolkit-customizer.php:9
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/travel-booking-toolkit/includes/customize-controls/class-editor-control.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/travel-booking-toolkit/includes/widgets/widget-icon-text.php:12
- > PHP Fatal error
Uncaught Error: Class 'Wp_Customize_Control' not found in wp-content/plugins/travel-booking-toolkit/includes/customize-controls/class-info-text.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/travel-booking-toolkit/includes/widgets/widget-contact.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/travel-booking-toolkit/includes/travel-muni/sections/popular.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/travel-booking-toolkit/includes/widgets/widget-recent-posts.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/travel-booking-toolkit/includes/travel-muni/customizer/home/special.php:151
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: customization, travel-website, travel-booking, additional-functionality, widgets...
travel-booking-toolkit/travel-booking-toolkit.php Passed 13 tests
"Travel Booking Toolkit" version 1.2.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
125 characters long description:
Travel Booking Toolkit allows you to add extra functionality to the Customizer, Widgets Section in your WordPress admin area.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin21,364 lines of code in 77 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 59 | 1,164 | 1,737 | 13,369 |
JavaScript | 11 | 985 | 1,071 | 6,781 |
CSS | 6 | 99 | 21 | 1,162 |
XML | 1 | 0 | 0 | 52 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 20.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 73.00 |
Average method complexity | 4.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 24 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 120 | |
▷ Static methods | 3 | 2.50% |
▷ Public methods | 111 | 92.50% |
▷ Protected methods | 3 | 2.50% |
▷ Private methods | 6 | 5.00% |
Functions | 93 | |
▷ Named functions | 92 | 98.92% |
▷ Anonymous functions | 1 | 1.08% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
13 compressed PNG files occupy 0.05MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/demo/clients-testi-single-gall-1.png | 3.75KB | 3.96KB | 0.00% |
includes/travel-muni/images/demo/clients-testi-single-gall-2.png | 4.86KB | 4.96KB | 0.00% |
images/demo/clients-testi-single-gall-2.png | 4.86KB | 4.96KB | 0.00% |
images/demo/clients-testi-single-gall-3.png | 4.99KB | 5.12KB | 0.00% |
includes/travel-muni/images/demo/clients-testi-single-gall-1.png | 3.75KB | 3.96KB | 0.00% |