Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- This plugin did not install gracefully
- > Notice in wp-content/plugins/car-rental/car-rental.php+256
Trying to access array offset on value of type null
Server metrics [RAM: ▲1.26MB] [CPU: ▼290.04ms] Passed 4 tests
Analyzing server-side resources used by Car Rental by BestWebSoft
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.84 ▲1.32 | 62.33 ▲13.60 |
Dashboard /wp-admin | 4.66 ▲1.25 | 42.54 ▲9.82 |
Posts /wp-admin/edit.php | 4.90 ▲1.26 | 48.50 ▲11.74 |
Add New Post /wp-admin/post-new.php | 8.18 ▲1.21 | 104.53 ▼1,190.52 |
Media Library /wp-admin/upload.php | 4.61 ▲1.31 | 34.55 ▲8.80 |
Car Classes /wp-admin/edit-tags.php?taxonomy=car_class&post_type=bws-cars | 4.64 | 38.01 |
Vehicle Types /wp-admin/edit-tags.php?taxonomy=vehicle_type&post_type=bws-cars | 4.64 | 43.08 |
All Cars /wp-admin/edit.php?post_type=bws-cars | 4.70 | 38.77 |
Settings /wp-admin/edit.php?post_type=bws-cars&page=car-rental-settings | 5.29 | 47.56 |
Extras /wp-admin/edit-tags.php?taxonomy=extra&post_type=bws-cars | 4.64 | 37.07 |
BWS Panel /wp-admin/edit.php?post_type=bws-cars&page=crrntl-bws-panel | 4.91 | 33.06 |
Menus /wp-admin/nav-menus.php | 4.59 | 41.66 |
Add New /wp-admin/post-new.php?post_type=bws-cars | 4.89 | 60.76 |
Widgets /wp-admin/widgets.php | 6.49 | 70.64 |
Manufacturers /wp-admin/edit-tags.php?taxonomy=manufacturer&post_type=bws-cars | 4.64 | 39.08 |
Server storage [IO: ▲9.71MB] [DB: ▲0.02MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 134 new files
Database: 5 new tables, 4 new options
New tables |
---|
wp_crrntl_currency |
wp_crrntl_extras_order |
wp_crrntl_orders |
wp_crrntl_statuses |
wp_crrntl_locations |
New WordPress options |
---|
widget_car-rental-filter |
crrntl_options |
bstwbsftwppdtplgns_options |
widget_car-rental-order-info |
Browser metrics Passed 4 tests
Car Rental by BestWebSoft: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,129 ▲375 | 16.43 ▲0.73 | 13.75 ▲7.62 | 2.31 ▼0.37 |
Dashboard /wp-admin | 3,099 ▲245 | 6.14 ▼0.08 | 121.84 ▼16.97 | 200.39 ▲39.98 |
Posts /wp-admin/edit.php | 2,866 ▲175 | 3.28 ▲0.05 | 64.27 ▲2.34 | 171.14 ▲23.91 |
Add New Post /wp-admin/post-new.php | 1,795 ▲129 | 17.14 ▼3.37 | 403.72 ▼55.44 | 193.65 ▲34.62 |
Media Library /wp-admin/upload.php | 1,906 ▲208 | 5.82 ▲0.39 | 124.62 ▼16.06 | 233.75 ▲44.17 |
Car Classes /wp-admin/edit-tags.php?taxonomy=car_class&post_type=bws-cars | 2,069 | 5.36 | 87.31 | 165.96 |
Vehicle Types /wp-admin/edit-tags.php?taxonomy=vehicle_type&post_type=bws-cars | 2,077 | 5.37 | 87.57 | 169.89 |
All Cars /wp-admin/edit.php?post_type=bws-cars | 1,942 | 5.32 | 78.84 | 159.14 |
Settings /wp-admin/edit.php?post_type=bws-cars&page=car-rental-settings | 4,635 | 5.75 | 102.94 | 261.44 |
Extras /wp-admin/edit-tags.php?taxonomy=extra&post_type=bws-cars | 2,164 | 4.73 | 78.52 | 166.28 |
BWS Panel /wp-admin/edit.php?post_type=bws-cars&page=crrntl-bws-panel | 4,598 | 3.09 | 63.65 | 197.44 |
Menus /wp-admin/nav-menus.php | 2,666 | 3.51 | 83.79 | 172.72 |
Add New /wp-admin/post-new.php?post_type=bws-cars | 4,464 | 14.05 | 294.20 | 472.22 |
Widgets /wp-admin/widgets.php | 2,812 | 25.56 | 607.73 | 198.66 |
Manufacturers /wp-admin/edit-tags.php?taxonomy=manufacturer&post_type=bws-cars | 2,080 | 5.36 | 75.85 | 180.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin does not fully uninstall, leaving 3 options in the database
- bstwbsftwppdtplgns_options
- widget_car-rental-order-info
- widget_car-rental-filter
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 17× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/car-rental/includes/orders-table.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/car-rental/includes/taxonomy-metadata.php:145
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/car-rental/includes/orders-table.php on line 10
- > PHP Warning
Creating default object from empty value in wp-content/plugins/car-rental/includes/taxonomy-metadata.php on line 18
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/car-rental/includes/orders-table.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/car-rental/templates/page-choose-car.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/car-rental/bws_menu/product_list.php:7
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/car-rental/includes/orders-table.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/car-rental/includes/slider-template.php:384
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/car-rental/templates/page-choose-extras.php:12
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- > GET request to /wp-admin/edit.php?post_type=bws-cars&page=crrntl-bws-panel
- > Network (severe)
http://ps.w.org/custom-admin-page/assets/icon-128x128.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=bws-cars&page=crrntl-bws-panel
- > Network (severe)
http://ps.w.org/captcha-bws/assets/icon-128x128.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=bws-cars&page=crrntl-bws-panel
- > Network (severe)
http://ps.w.org/donate-button/assets/icon-128x128.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=bws-cars&page=crrntl-bws-panel
- > Network (severe)
http://ps.w.org/contact-form-plugin/assets/icon-128x128.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=bws-cars&page=crrntl-bws-panel
- > Network (severe)
http://ps.w.org/facebook-button-plugin/assets/icon-128x128.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=bws-cars&page=crrntl-bws-panel
- > Network (severe)
http://ps.w.org/custom-search-plugin/assets/icon-128x128.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=bws-cars&page=crrntl-bws-panel
- > Network (severe)
http://ps.w.org/bws-google-2-step-verification/assets/icon-128x128.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=bws-cars&page=crrntl-bws-panel
- > Network (severe)
http://ps.w.org/bws-google-analytics/assets/icon-128x128.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=bws-cars&page=crrntl-bws-panel
- > Network (severe)
http://ps.w.org/bws-google-maps/assets/icon-128x128.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=bws-cars&page=crrntl-bws-panel
- > Network (severe)
http://ps.w.org/htaccess/assets/icon-128x128.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=bws-cars&page=crrntl-bws-panel
- > Network (severe)
http://ps.w.org/job-board/assets/icon-128x128.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=bws-cars&page=crrntl-bws-panel
- > Network (severe)
http://ps.w.org/google-shortlink/assets/icon-128x128.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=bws-cars&page=crrntl-bws-panel
- > Network (severe)
http://ps.w.org/limit-attempts/assets/icon-128x128.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=bws-cars&page=crrntl-bws-panel
- > Network (severe)
http://ps.w.org/bws-linkedin/assets/icon-128x128.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=bws-cars&page=crrntl-bws-panel
- > Network (severe)
http://ps.w.org/multilanguage/assets/icon-128x128.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=bws-cars&page=crrntl-bws-panel
- > Network (severe)
http://ps.w.org/pdf-print/assets/icon-128x128.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=bws-cars&page=crrntl-bws-panel
- > Network (severe)
http://ps.w.org/bws-pinterest/assets/icon-128x128.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=bws-cars&page=crrntl-bws-panel
- > Network (severe)
http://ps.w.org/portfolio/assets/icon-128x128.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=bws-cars&page=crrntl-bws-panel
- > Network (severe)
http://ps.w.org/post-to-csv/assets/icon-128x128.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=bws-cars&page=crrntl-bws-panel
- > Network (severe)
http://ps.w.org/profile-extra-fields/assets/icon-128x128.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=bws-cars&page=crrntl-bws-panel
- > Network (severe)
http://ps.w.org/promobar/assets/icon-128x128.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=bws-cars&page=crrntl-bws-panel
- > Network (severe)
http://ps.w.org/quotes-and-tips/assets/icon-128x128.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=bws-cars&page=crrntl-bws-panel
- > Network (severe)
http://ps.w.org/rating-bws/assets/icon-128x128.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=bws-cars&page=crrntl-bws-panel
- > Network (severe)
http://ps.w.org/realty/assets/icon-128x128.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=bws-cars&page=crrntl-bws-panel
- > Network (severe)
http://ps.w.org/relevant/assets/icon-128x128.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=bws-cars&page=crrntl-bws-panel
- > Network (severe)
http://ps.w.org/bws-smtp/assets/icon-128x128.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=bws-cars&page=crrntl-bws-panel
- > Network (severe)
http://ps.w.org/sender/assets/icon-128x128.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=bws-cars&page=crrntl-bws-panel
- > Network (severe)
http://ps.w.org/social-buttons-pack/assets/icon-128x128.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=bws-cars&page=crrntl-bws-panel
- > Network (severe)
http://ps.w.org/slider-bws/assets/icon-128x128.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=bws-cars&page=crrntl-bws-panel
- > Network (severe)
http://ps.w.org/social-login-bws/assets/icon-128x128.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=bws-cars&page=crrntl-bws-panel
- > Network (severe)
http://ps.w.org/subscriber/assets/icon-128x128.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=bws-cars&page=crrntl-bws-panel
- > Network (severe)
http://ps.w.org/bws-testimonials/assets/icon-128x128.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=bws-cars&page=crrntl-bws-panel
- > Network (severe)
http://ps.w.org/timesheet/assets/icon-128x128.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=bws-cars&page=crrntl-bws-panel
- > Network (severe)
http://ps.w.org/twitter-plugin/assets/icon-128x128.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=bws-cars&page=crrntl-bws-panel
- > Network (severe)
http://ps.w.org/updater/assets/icon-128x128.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=bws-cars&page=crrntl-bws-panel
- > Network (severe)
http://ps.w.org/user-role/assets/icon-128x128.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=bws-cars&page=crrntl-bws-panel
- > Network (severe)
http://ps.w.org/visitors-online/assets/icon-128x128.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/post-new.php?post_type=bws-cars
- > Console-api (severe) in unknown
https://maps.googleapis.com/maps/api/js?v=3&key&libraries=places&callback=initMap&language=en&ver=5.9.2 85:375 "You are using this API without a key. See https://developers.google.com/maps/documentation/javascript/error-messages?utm_source=maps_js&utm_medium=degraded&utm_campaign=billing#api-key-and-billing-errors"
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
- Screenshots: These screenshots require images: #1 (Slider with the left search car form.), #2 (Slider with the right search car form.), #3 (Slider with the center search car form.), #4 ("Choose a car" page.), #5 ("Choose Extras" page.), #6 ("Review & Book" page.), #7 ("Car Rental Settings" page in the admin panel.), #8 (Slider settings on "Car Rental Settings" page in the admin panel.), #9 ("Add New Slide" page in the admin panel.), #10 ("Edit Slide" page in the admin panel.), #11 ("Cars Management" page in the admin panel.), #12 ("Edit Extra" page in the admin panel.), #13 ("Add New Car" page in the admin panel.), #14 ("Orders Management" page in the admin panel.), #15 ("Edit Order" page in the admin panel.)
car-rental/car-rental.php Passed 13 tests
The principal PHP file in "Car Rental by BestWebSoft" v. 1.1.2 is loaded by WordPress automatically on each request
64 characters long description:
Create your personal car rental/booking and reservation website.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected32,339 lines of code in 57 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 12 | 5,149 | 6,929 | 11,137 |
PHP | 21 | 877 | 1,017 | 10,217 |
CSS | 13 | 982 | 196 | 8,034 |
JavaScript | 10 | 566 | 1,062 | 2,881 |
SVG | 1 | 0 | 0 | 70 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
The following items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 103)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 90.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 247.00 |
Average method complexity | 12.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 103.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 47 | 87.04% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 12.96% |
Functions | 125 | |
▷ Named functions | 125 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
57 PNG files occupy 6.38MB with 1.58MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/filter-results.png | 0.30KB | 0.25KB | ▼ 18.71% |
images/continue-flipped.png | 0.19KB | 0.13KB | ▼ 31.94% |
includes/demo-data/images/extras-1.png | 14.37KB | 5.68KB | ▼ 60.51% |
images/info.png | 0.42KB | 0.37KB | ▼ 12.79% |
images/update.png | 0.29KB | 0.30KB | 0.00% |