Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲2.42MB] [CPU: ▼98.16ms] Passed 4 tests
Analyzing server-side resources used by Bike Rental by BestWebSoft
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.90 ▲2.07 | 82.40 ▲41.59 |
Dashboard /wp-admin | 5.66 ▲2.61 | 100.98 ▲45.78 |
Posts /wp-admin/edit.php | 5.71 ▲2.60 | 99.53 ▲48.26 |
Add New Post /wp-admin/post-new.php | 7.92 ▲2.49 | 140.32 ▼517.82 |
Media Library /wp-admin/upload.php | 5.51 ▲2.51 | 70.67 ▲37.82 |
General Settings /wp-admin/edit.php?post_type=bws_extra&page=bkng_general_settings | 6.43 | 107.55 |
Add New /wp-admin/post-new.php?post_type=bws_bike | 6.43 | 102.66 |
Types /wp-admin/edit-tags.php?taxonomy=bike_type&post_type=bws_bike | 5.56 | 83.87 |
Locations /wp-admin/edit.php?post_type=bws_bike&page=bkrntl_bws_bike_locations | 5.66 | 87.74 |
Types /wp-admin/edit-tags.php?taxonomy=extra_type&post_type=bws_extra | 5.56 | 85.06 |
BWS Panel /wp-admin/edit.php?post_type=bws_bike&page=bkrntl-bws-panel | 5.87 | 86.65 |
Extra /wp-admin/edit.php?post_type=bws_extra | 5.67 | 88.73 |
Add New /wp-admin/post-new.php?post_type=bws_extra | 6.08 | 107.40 |
Your profile /wp-admin/edit.php?post_type=bws_bike&page=bkng_user_profile | 5.97 | 88.50 |
Bikes /wp-admin/edit.php?post_type=bws_bike | 5.67 | 91.67 |
Server storage [IO: ▲11.46MB] [DB: ▲0.04MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 275 new files
Database: 19 new tables, 8 new options
New tables |
---|
wp_bws_bkng_bws_extra_bws_bike_relations |
wp_bws_bkng_session |
wp_bws_bkng_bws_extra_orders |
wp_bws_bkng_bws_extra_field_post_data |
wp_bws_bkng_bws_extra_field_values |
wp_bws_bkng_locations |
wp_bws_bkng_bws_extra_field_ids |
wp_bws_bkng_bws_bike_field_post_data |
wp_bws_bkng_post_location |
wp_bws_bkng_bws_bike_ordered_products |
... |
New WordPress options |
---|
widget_bws_bkng_pre_order_widget |
bkrntl_options |
bkrntl_bws_extra_options |
widget_bws_bkng_search_filter_widget |
widget_bws_bkng_bike_widget |
bstwbsftwppdtplgns_options |
bkrntl_plugin_db_version |
bkrntl_bws_bike_options |
Browser metrics Passed 4 tests
Bike Rental by BestWebSoft: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,249 ▲643 | 18.92 ▲3.23 | 34.34 ▲22.12 | 52.07 ▼1.46 |
Dashboard /wp-admin | 3,335 ▲401 | 7.98 ▲1.92 | 187.70 ▲32.00 | 119.11 ▼2.04 |
Posts /wp-admin/edit.php | 3,122 ▲383 | 4.37 ▲1.66 | 94.48 ▲25.34 | 97.48 ▲6.02 |
Add New Post /wp-admin/post-new.php | 1,727 ▲227 | 21.20 ▲2.72 | 294.04 ▼91.86 | 122.37 ▲0.02 |
Media Library /wp-admin/upload.php | 1,980 ▲173 | 4.88 ▼0.19 | 147.37 ▼19.42 | 122.42 ▼4.34 |
General Settings /wp-admin/edit.php?post_type=bws_extra&page=bkng_general_settings | 5,710 | 7.69 | 247.66 | 218.15 |
Add New /wp-admin/post-new.php?post_type=bws_bike | 3,761 | 12.25 | 329.74 | 158.73 |
Types /wp-admin/edit-tags.php?taxonomy=bike_type&post_type=bws_bike | 2,155 | 3.95 | 97.11 | 87.05 |
Locations /wp-admin/edit.php?post_type=bws_bike&page=bkrntl_bws_bike_locations | 1,748 | 6.18 | 137.36 | 75.05 |
Types /wp-admin/edit-tags.php?taxonomy=extra_type&post_type=bws_extra | 2,155 | 3.93 | 85.35 | 87.38 |
BWS Panel /wp-admin/edit.php?post_type=bws_bike&page=bkrntl-bws-panel | 4,696 | 5.66 | 134.19 | 169.00 |
Extra /wp-admin/edit.php?post_type=bws_extra | 1,847 | 5.66 | 127.81 | 82.59 |
Add New /wp-admin/post-new.php?post_type=bws_extra | 3,669 | 11.87 | 306.99 | 159.75 |
Your profile /wp-admin/edit.php?post_type=bws_bike&page=bkng_user_profile | 3,416 | 5.94 | 109.14 | 159.35 |
Bikes /wp-admin/edit.php?post_type=bws_bike | 1,850 | 5.67 | 134.60 | 79.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.04MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The uninstall procedure failed, leaving 19 tables in the database
- wp_bws_bkng_bws_extra_field_values
- wp_bws_bkng_bws_extra_field_post_data
- wp_bws_bkng_bws_extra_orders_meta
- wp_bws_bkng_bws_bike_orders_meta
- wp_bws_bkng_linked_products
- wp_bws_bkng_bws_bike_field_values
- wp_bws_bkng_bws_bike_field_ids
- wp_bws_bkng_bws_extra_bws_bike_relations
- wp_bws_bkng_bws_extra_ordered_products
- wp_bws_bkng_post_location
- ...
- Zombie WordPress options detected upon uninstall: 8 options
- widget_bws_bkng_search_filter_widget
- bkrntl_plugin_db_version
- bkrntl_options
- bkrntl_bws_extra_options
- bkrntl_bws_bike_options
- bstwbsftwppdtplgns_options
- widget_bws_bkng_pre_order_widget
- widget_bws_bkng_bike_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/bike-rental/bws_booking/templates/forms/search-products.php
- 12× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/bike-rental/bws_menu/product_list.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/bike-rental/booking_adapter/templates/bws-bkng-bike-simple-select.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/bike-rental/booking_adapter/templates/bws-bkng-bike-activity-select.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function bkng_get_order_id() in wp-content/plugins/bike-rental/booking_adapter/templates/bws-bkng-checkout.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/bike-rental/booking_adapter/templates/bws-bkng-thank-you.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bike-rental/bws_menu/class-bws-settings.php:1328
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bike-rental/bike-rental.php:240
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/bike-rental/booking_adapter/templates/bws-bkng-search-results-template.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/bike-rental/booking_adapter/templates/bws-bkng-bike-model-select.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function bws_bkng_get_agencies_data() in wp-content/plugins/bike-rental/bws_booking/templates/lists/agencies.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 ("Bikes" page grid view.), #2 ("Bikes" page list view.), #3 ("Checkout" page.), #4 ("Thank you" page.), #5 ("Bike Rental General Settings" page in the admin panel.), #6 ("Bike Rental Settings" page in the admin panel.), #7 ("Add New Bike" page in the admin panel.), #8 ("Attributes" page in the admin panel.), #9 ("Edit Attributes" page in the admin panel.), #10 ("Orders" page in the admin panel.), #11 ("Edit Order" page in the admin panel.), #12 ("Widgets" page in the admin panel.)
bike-rental/bike-rental.php Passed 13 tests
The main PHP script in "Bike Rental by BestWebSoft" version 1.0.2 is automatically included on every request by WordPress
64 characters long description:
Give a birth for your bike rental and booking WordPress website.
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 plugin55,118 lines of code in 163 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 112 | 4,518 | 8,739 | 23,374 |
PO File | 12 | 7,751 | 13,616 | 14,586 |
JavaScript | 19 | 1,031 | 2,863 | 8,641 |
CSS | 16 | 246 | 400 | 8,367 |
SVG | 4 | 0 | 0 | 150 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 43.24 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 227.00 |
Average method complexity | 4.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 76.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 66 | |
▷ Abstract classes | 4 | 6.06% |
▷ Concrete classes | 62 | 93.94% |
▷ Final classes | 0 | 0.00% |
Methods | 793 | |
▷ Static methods | 44 | 5.55% |
▷ Public methods | 579 | 73.01% |
▷ Protected methods | 38 | 4.79% |
▷ Private methods | 176 | 22.19% |
Functions | 143 | |
▷ Named functions | 143 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
75 PNG files occupy 6.13MB with 2.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
bws_booking/images/no-image.png | 3.07KB | 1.00KB | ▼ 67.43% |
bws_menu/css/jquery-ui-styles/1.9.2/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
bws_menu/css/jquery-ui-styles/1.9.2/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
bws_menu/css/jquery-ui-styles/1.10.4/images/ui-bg_glass_75_dadada_1x400.png | 0.31KB | 0.18KB | ▼ 39.81% |
bws_menu/css/jquery-ui-styles/1.11.4/images/ui-bg_glass_95_fef1ec_1x400.png | 0.32KB | 0.15KB | ▼ 54.82% |