Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- The plugin cannot be installed
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
Server metrics [RAM: ▲6.04MB] [CPU: ▲17.17ms] 75% from 4 tests
An overview of server-side resources used by HQ Rental Software
Please fix the following
- Extra RAM: Extra memory usage should kept under 5MB (currently 6.04MB on /wp-admin/admin.php?page=hq-vehicle-classes)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.59 ▲6.12 | 77.57 ▲31.81 |
Dashboard /wp-admin | 9.37 ▲6.07 | 74.21 ▲24.61 |
Posts /wp-admin/edit.php | 9.26 ▲5.90 | 57.81 ▲5.44 |
Add New Post /wp-admin/post-new.php | 12.02 ▲6.13 | 107.23 ▲6.83 |
Media Library /wp-admin/upload.php | 9.30 ▲6.07 | 71.08 ▲34.00 |
Brands /wp-admin/admin.php?page=hq-brands | 9.30 | 499.29 |
Locations /wp-admin/admin.php?page=hq-locations | 9.30 | 499.95 |
HQ Rentals /wp-admin/admin.php?page=hq-wordpress-settings | 9.30 | 495.60 |
Vehicle Classes /wp-admin/admin.php?page=hq-vehicle-classes | 9.30 | 496.46 |
Server storage [IO: ▲14.39MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 353 new files
Database: 5 new tables, 36 new options
New tables |
---|
wp_hq_car_rental_preferences |
wp_hq_brands |
wp_hq_vehicle_active_rates |
wp_hq_locations |
wp_hq_vehicle_classes |
New WordPress options |
---|
hq_replace_url_on_brand_option |
hq_wordpress_front_end_datetime_format_option |
hq_enable_custom_post_pages |
can_compress_scripts |
hq_wordpress_home_integration_enabled |
widget_recent-comments |
hq_google_country |
hq_location_address_label_field |
hq_override_daily_rate_with_price_interval |
hq_wordpress_api_base_url_option |
... |
Browser metrics Passed 4 tests
HQ Rental Software: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,935 ▲149 | 13.50 ▼0.69 | 9.04 ▲6.87 | 45.52 ▲2.66 |
Dashboard /wp-admin | 2,217 ▲36 | 5.56 ▼0.17 | 87.76 ▼21.18 | 70.46 ▲27.55 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 1.99 ▼0.03 | 38.06 ▼1.87 | 35.90 ▼2.87 |
Add New Post /wp-admin/post-new.php | 1,568 ▲40 | 23.19 ▼0.19 | 723.94 ▲46.79 | 75.12 ▲18.16 |
Media Library /wp-admin/upload.php | 1,431 ▲34 | 4.26 ▲0.03 | 99.00 ▼3.23 | 81.60 ▲40.32 |
Brands /wp-admin/admin.php?page=hq-brands | 1,307 | 3.60 | 44.88 | 46.18 |
Locations /wp-admin/admin.php?page=hq-locations | 1,295 | 3.59 | 44.50 | 33.75 |
HQ Rentals /wp-admin/admin.php?page=hq-wordpress-settings | 2,256 | 4.69 | 51.40 | 77.80 |
Vehicle Classes /wp-admin/admin.php?page=hq-vehicle-classes | 1,299 | 3.58 | 41.10 | 35.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie tables were found after uninstall: 5 tables
- wp_hq_brands
- wp_hq_locations
- wp_hq_vehicle_classes
- wp_hq_vehicle_active_rates
- wp_hq_car_rental_preferences
- The uninstall procedure has failed, leaving 36 options in the database
- hq_location_description_field
- hq_wordpress_disable_cronjob_option
- hq_default_longitude_for_map_shortcode
- hq_url_to_replace_on_brands_option
- hq_replace_url_on_brand_option
- hq_wordpress_home_integration_enabled
- widget_recent-posts
- hq_wordpress_tenant_datetime_format
- hq_enable_decreasing_rate_order_on_vehicles_query
- theysaidso_admin_options
- ...
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 no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 9× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/hq-rental-software/includes/unyson/carrental-child/shortcodes/hq-form-test.php
- > /wp-content/plugins/hq-rental-software/includes/unyson/extensions/shortcodes/shortcodes/vehicle-tab/views/view.php
- > /wp-content/plugins/hq-rental-software/includes/unyson/extensions/shortcodes/shortcodes/vehicle-tab/options.php
- > /wp-content/plugins/hq-rental-software/includes/unyson/carrental-child/shortcodes/hq-reservation-link-lang-helper.php
- > /wp-content/plugins/hq-rental-software/includes/unyson/extensions/shortcodes/hooks.php
- > /wp-content/plugins/hq-rental-software/includes/unyson/carrental-child/shortcodes/hq-vehicles.php
- > /wp-content/plugins/hq-rental-software/includes/unyson/extensions/shortcodes/shortcodes/vehicle-tab/config.php
- > /wp-content/plugins/hq-rental-software/includes/unyson/carrental-child/shortcodes/hq-location-map.php
- > /wp-content/plugins/hq-rental-software/includes/unyson/carrental-child/shortcodes/hq-form.php
- 107× 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 get_option() in wp-content/plugins/hq-rental-software/includes/unyson/carrental-child/one-page.php:10
- > PHP Fatal error
Uncaught Error: Class 'HQRentalsPlugin\\HQRentalsModels\\HQRentalsBaseModel' not found in wp-content/plugins/hq-rental-software/includes/models/HQRentalsModelsCarRentalSetting.php:11
- > PHP Fatal error
Uncaught Error: Class 'HQRentalsPlugin\\HQRentalsTasks\\HQRentalsBaseTask' not found in wp-content/plugins/hq-rental-software/includes/tasks/HQRentalsAdditionalChargesTask.php:8
- > PHP Fatal error
Uncaught Error: Class 'HQRentalsPlugin\\HQRentalsSettings\\HQRentalsSettings' not found in wp-content/plugins/hq-rental-software/includes/templates/page-quotes.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function vc_map() in wp-content/plugins/hq-rental-software/includes/bakery/motors/hq-vehicles-grid-filter-brand.php:8
- > PHP Fatal error
Uncaught Error: Class 'WPBakeryShortCode' not found in wp-content/plugins/hq-rental-software/includes/bakery/wheelsberry/HQRentalBakeryWheelsberryLocationsMap.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/hq-rental-software/includes/elementor/aucapina/hq-pegaso/shortcodes/hq-vehicle-grid.php:183
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hq-rental-software/includes/unyson/carrental-child/functions.php:10
- > PHP Fatal error
Uncaught Error: Class 'HQRentalsPlugin\\HQRentalsModels\\HQRentalsBaseModel' not found in wp-content/plugins/hq-rental-software/includes/models/HQRentalsModelsAdditionalCharge.php:5
- > PHP Fatal error
Uncaught Error: Class 'HQRentalBakeryMotorsVehicleGridShortcode' not found in wp-content/plugins/hq-rental-software/includes/bakery/motors/HQRentalBakeryMotorsVehicleGridShortcode.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: hqrentalsoftware
hq-rental-software/hq-wordpress.php 77% from 13 tests
The primary PHP file in "HQ Rental Software" version 1.5.29 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("hq-rental-software.php" instead of "hq-wordpress.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Description: Please don't use more than 140 characters for the plugin description (currently 158 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected52,071 lines of code in 298 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 199 | 2,349 | 2,623 | 26,113 |
CSS | 34 | 3,265 | 470 | 18,602 |
SVG | 4 | 6 | 1 | 3,353 |
JavaScript | 55 | 225 | 150 | 2,826 |
PO File | 4 | 503 | 805 | 1,084 |
Markdown | 2 | 75 | 0 | 93 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 6.95 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 131.00 |
Average method complexity | 1.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 23 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 159 | |
▷ Abstract classes | 5 | 3.14% |
▷ Concrete classes | 154 | 96.86% |
▷ Final classes | 1 | 0.65% |
Methods | 1,320 | |
▷ Static methods | 97 | 7.35% |
▷ Public methods | 1,222 | 92.58% |
▷ Protected methods | 47 | 3.56% |
▷ Private methods | 51 | 3.86% |
Functions | 69 | |
▷ Named functions | 17 | 24.64% |
▷ Anonymous functions | 52 | 75.36% |
Constants | 22 | |
▷ Global constants | 2 | 9.09% |
▷ Class constants | 20 | 90.91% |
▷ Public constants | 20 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
10 PNG files occupy 0.65MB with 0.38MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/assets/img/logo-admin.png | 8.13KB | 0.55KB | ▼ 93.24% |
assets/screenshot-2.png | 36.26KB | 17.34KB | ▼ 52.19% |
images/pin.png | 4.13KB | 2.64KB | ▼ 36.11% |
assets/screenshot-1.png | 38.87KB | 18.27KB | ▼ 53.00% |
includes/assets/img/logo.png | 9.08KB | 3.83KB | ▼ 57.85% |