Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲6.77MB] [CPU: ▲51.07ms] 50% from 4 tests
Analyzing server-side resources used by BA Book Everything
It is recommended to improve the following
- RAM: You should keep total memory usage under 10MB (currently 13.35MB on /wp-admin/post-new.php?post_type=service)
- Extra RAM: Try to keep extra memory usage under 5MB (currently 6.77MB on /wp-admin/post-new.php?post_type=service)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.53 ▲6.06 | 91.18 ▲45.42 |
Dashboard /wp-admin | 10.32 ▲7.01 | 97.90 ▲41.40 |
Posts /wp-admin/edit.php | 10.35 ▲6.99 | 110.83 ▲64.21 |
Add New Post /wp-admin/post-new.php | 12.99 ▲7.10 | 155.47 ▲56.31 |
Media Library /wp-admin/upload.php | 10.25 ▲7.02 | 98.29 ▲61.13 |
All Services /wp-admin/edit.php?post_type=service | 10.30 | 89.13 |
All Booking Objects /wp-admin/edit.php?post_type=to_book | 10.31 | 84.28 |
All Fees /wp-admin/edit.php?post_type=fee | 10.30 | 88.87 |
Ages /wp-admin/edit-tags.php?taxonomy=ages&post_type=to_book | 10.55 | 85.97 |
BA Settings /wp-admin/admin.php?page=babe-settings | 10.29 | 90.54 |
All Orders /wp-admin/edit.php?post_type=order | 10.30 | 90.40 |
Add Booking Object /wp-admin/post-new.php?post_type=to_book | 11.05 | 114.18 |
Addons and Themes /wp-admin/admin.php?page=babe-addons | 10.24 | 98.86 |
Taxonomies /wp-admin/edit-tags.php?taxonomy=taxonomies_list&post_type=to_book | 10.59 | 84.03 |
Add Service /wp-admin/post-new.php?post_type=service | 13.35 | 139.54 |
Server storage [IO: ▲14.18MB] [DB: ▲0.04MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 754 new files
Database: 9 new tables, 14 new options
New tables |
---|
wp_babe_payment_tokenmeta |
wp_babe_order_itemmeta |
wp_babe_rates |
wp_babe_order_items |
wp_babe_payment_tokens |
wp_babe_discount |
wp_babe_category_deactivate_schedule |
wp_babe_av_cal |
wp_babe_booking_rules |
New WordPress options |
---|
BABE_version |
widget_babe_search_filter_price |
babe_settings_en |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
BABE_db_version |
BABE_roles_version |
can_compress_scripts |
widget_babe_widget_search_filter_terms |
... |
Browser metrics Passed 4 tests
BA Book Everything: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,285 ▲524 | 16.46 ▲1.83 | 13.68 ▲11.94 | 39.83 ▼5.08 |
Dashboard /wp-admin | 2,508 ▲331 | 6.41 ▲0.74 | 104.39 ▲7.36 | 39.44 ▼4.62 |
Posts /wp-admin/edit.php | 2,413 ▲313 | 3.60 ▲1.65 | 54.56 ▲15.64 | 35.24 ▼3.17 |
Add New Post /wp-admin/post-new.php | 1,722 ▲196 | 23.40 ▲0.38 | 716.02 ▲61.93 | 34.16 ▼16.27 |
Media Library /wp-admin/upload.php | 1,713 ▲319 | 5.91 ▲1.73 | 112.80 ▲19.87 | 44.07 ▲2.96 |
All Services /wp-admin/edit.php?post_type=service | 1,385 | 3.63 | 53.82 | 30.30 |
All Booking Objects /wp-admin/edit.php?post_type=to_book | 1,435 | 3.65 | 51.96 | 30.84 |
All Fees /wp-admin/edit.php?post_type=fee | 1,367 | 3.64 | 47.79 | 27.18 |
Ages /wp-admin/edit-tags.php?taxonomy=ages&post_type=to_book | 1,552 | 3.53 | 42.96 | 30.28 |
BA Settings /wp-admin/admin.php?page=babe-settings | 4,175 | 5.25 | 104.86 | 63.26 |
All Orders /wp-admin/edit.php?post_type=order | 1,434 | 3.69 | 46.24 | 29.36 |
Add Booking Object /wp-admin/post-new.php?post_type=to_book | 4,238 | 11.80 | 281.49 | 116.49 |
Addons and Themes /wp-admin/admin.php?page=babe-addons | 1,429 | 4.73 | 50.83 | 70.48 |
Taxonomies /wp-admin/edit-tags.php?taxonomy=taxonomies_list&post_type=to_book | 1,728 | 3.56 | 44.38 | 29.01 |
Add Service /wp-admin/post-new.php?post_type=service | 2,038 | 17.87 | 837.85 | 42.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.03MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The plugin did not uninstall successfully, leaving 9 tables in the database
- wp_babe_payment_tokens
- wp_babe_rates
- wp_babe_category_deactivate_schedule
- wp_babe_order_items
- wp_babe_av_cal
- wp_babe_payment_tokenmeta
- wp_babe_discount
- wp_babe_booking_rules
- wp_babe_order_itemmeta
- Zombie WordPress options detected upon uninstall: 14 options
- widget_babe_search_filter_price
- widget_babe_widget_booking_form
- BABE_version
- BABE_db_version
- BABE_roles_version
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_babe_widget_search_form
- babe_settings_en
- db_upgraded
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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 fix the following items
- 58× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ba-book-everything/includes/vendors/elementor/init.php:11
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ba-book-everything/includes/widgets/class-babe-search-filter-price.php:3
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Multicheck' not found in wp-content/plugins/ba-book-everything/includes/plugins/cmb2/includes/types/CMB2_Type_Taxonomy_Multicheck_Hierarchical.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/ba-book-everything/includes/plugins/cmb2/includes/types/CMB2_Type_Taxonomy_Select.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/ba-book-everything/includes/plugins/cmb2/includes/types/CMB2_Type_Checkbox.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ba-book-everything/includes/widgets/class-babe-search-form.php:3
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/ba-book-everything/includes/plugins/cmb2/includes/types/CMB2_Type_Wysiwyg.php:16
- > PHP Fatal error
Uncaught Error: Class 'CMB2_REST_Controller_Boxes' not found in wp-content/plugins/ba-book-everything/includes/plugins/cmb2/includes/rest-api/CMB2_REST_Controller_Fields.php:17
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/ba-book-everything/includes/plugins/cmb2/includes/types/CMB2_Type_Text_Datetime_Timestamp.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/ba-book-everything/includes/plugins/cmb2/includes/types/CMB2_Type_Textarea_Code.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
- Screenshots: These screenshots need descriptions #1, #10, #11, #2, #3, #4, #5, #6, #7, #8, #9 in ba-book-everything/assets to your readme.txt
ba-book-everything/babe-bootstrap.php 85% from 13 tests
Analyzing the main PHP file in "BA Book Everything" version 1.6.0
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("ba-book-everything.php" instead of "babe-bootstrap.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 141 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin142,346 lines of code in 466 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 164 | 13,856 | 9,690 | 41,630 |
PHP | 111 | 9,986 | 13,103 | 33,941 |
PO File | 120 | 14,315 | 18,502 | 32,323 |
CSS | 58 | 5,651 | 1,511 | 24,193 |
SVG | 4 | 0 | 13 | 8,977 |
Markdown | 6 | 371 | 0 | 1,151 |
XML | 1 | 0 | 0 | 52 |
JSON | 1 | 0 | 0 | 51 |
Sass | 1 | 5 | 0 | 28 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
It is recommended to fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 121)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 40.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 748.00 |
Average method complexity | 4.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 121.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 119 | |
▷ Abstract classes | 9 | 7.56% |
▷ Concrete classes | 110 | 92.44% |
▷ Final classes | 0 | 0.00% |
Methods | 1,456 | |
▷ Static methods | 855 | 58.72% |
▷ Public methods | 1,312 | 90.11% |
▷ Protected methods | 112 | 7.69% |
▷ Private methods | 32 | 2.20% |
Functions | 44 | |
▷ Named functions | 42 | 95.45% |
▷ Anonymous functions | 2 | 4.55% |
Constants | 27 | |
▷ Global constants | 10 | 37.04% |
▷ Class constants | 17 | 62.96% |
▷ Public constants | 17 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
108 PNG files occupy 1.15MB with 0.44MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/plugins/cmb2/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
js/unitegallery/skins/alexis/images/button_zoom_back.png | 1.54KB | 0.61KB | ▼ 60.01% |
includes/plugins/cmb2/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
css/img/ba_payments_banners.png | 104.21KB | 43.06KB | ▼ 58.68% |
js/unitegallery/images/play-button-square.png | 4.48KB | 1.62KB | ▼ 63.89% |