10% car-rental-booking-engine-by-ionoleggioauto-com

Code Review | Car Rental Booking Engine by Ionoleggioauto.com

WordPress plugin Car Rental Booking Engine by Ionoleggioauto.com scored 10% from 54 tests.

About plugin

  • Plugin page: car-rental-bookin...
  • Plugin version: 3.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 24, 2018
  • Latest release: Mar 24, 2019
  • Number of updates: 48
  • Update frequency: every 8.9 days
  • Top authors: andreaguerra80 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active / 5,777 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/car-rental-booking-engine-by-ionoleggioauto-com/car-rental-booking-engine-ionoleggioauto.php+196
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼53.78ms] Passed 4 tests

A check of server-side resources used by Car Rental Booking Engine by Ionoleggioauto.com
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.434.46 ▼39.68
Dashboard /wp-admin2.05 ▼1.265.32 ▼42.61
Posts /wp-admin/edit.php2.05 ▼1.315.02 ▼44.69
Add New Post /wp-admin/post-new.php2.05 ▼3.845.70 ▼88.12
Media Library /wp-admin/upload.php2.05 ▼1.185.06 ▼27.92
Car Rental Booking Engine by Ionoleggioauto.com /wp-admin/options-general.php?page=car-hire-ionoleggioauto2.055.08

Server storage [IO: ▲7.29MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_chh_plugin_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Car Rental Booking Engine by Ionoleggioauto.com
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,057 ▲32216.56 ▲1.9217.29 ▲15.1243.50 ▼4.19
Dashboard /wp-admin2,253 ▲1015.84 ▲0.1397.33 ▼11.5942.06 ▼1.96
Posts /wp-admin/edit.php2,136 ▲472.14 ▲0.1537.70 ▲1.6331.73 ▼3.73
Add New Post /wp-admin/post-new.php1,565 ▲2318.15 ▼0.22629.05 ▲21.6671.70 ▲22.25
Media Library /wp-admin/upload.php1,435 ▲504.30 ▲0.0795.69 ▼51.8646.17 ▼29.84
Car Rental Booking Engine by Ionoleggioauto.com /wp-admin/options-general.php?page=car-hire-ionoleggioauto9882.0623.3031.03

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/car-rental-booking-engine-by-ionoleggioauto-com/car-rental-booking-engine-ionoleggioauto.php+196
    Function create_function() is deprecated
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_chh_plugin_widget
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=car-hire-ionoleggioauto
    • > Deprecated in wp-content/plugins/car-rental-booking-engine-by-ionoleggioauto-com/car-rental-booking-engine-ionoleggioauto.php+196
    Function create_function() is deprecated
    • > GET request to /wp-admin/options-general.php?page=car-hire-ionoleggioauto
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in chh_plugin_widget is deprecated since version 4.3.0! Use __construct() instead.
  • 19 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=car-hire-ionoleggioauto
    • > Notice in wp-content/plugins/car-rental-booking-engine-by-ionoleggioauto-com/car-rental-booking-engine-ionoleggioauto.php+542
    Trying to access array offset on value of type bool

SRP 50% 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
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/car-rental-booking-engine-by-ionoleggioauto-com/car-rental-booking-engine-ionoleggioauto.php

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 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
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 27 tag instead of maximum 10
  • Screenshots: These screenshots do not have images: #1 (In the settings you can configure the title of your search box, the searchbox language, a default location, the color of the text and the borders, the background colour, the color of the call to action button, the color of the text of the button, the width of the border and the radius. This is also the place where you have to introduce your Affiliate ID if you want to monetize the plugin. More information about the configuration can be found in the installation section of the plugin.), #2 (This is how a search box looks like when it is installed in a post or page with the corresponding shortcode: [car_hire_ionoleggioauto]. You can adapt the design to the look and feel of your blog (colors, fonts, background etc.) in the settings of the plugin.), #3 (This is how a search box looks like when it is installed as a widget in your sidebar. If you want to show the search box as a widget in your sidebar go to 'appearance', 'widgets' and drag and drop the car rental search engine widget to the sidebar of your choice.), #4 (This is a screenshot of the results returned by the plugin. The plugin calculates prices and availability from more than 900 different providers worldwide including leading car rental companies and many local suppliers. If you want to see the plugin in action please visit the plugin's official website.), #5 (Affiliate Management System. You must register and request an affiliate ID if you want to monetize the plugin. Only registered users have access to the Affiliate Managament System where they can keep track of the commissions earned by the bookings made on their blog or website. The plugin uses the affiliate ID to track commissions, but the search box will work fine for non-registered sites as well.)
You can look at the official readme.txt

car-rental-booking-engine-by-ionoleggioauto-com/car-rental-booking-engine-ionoleggioauto.php 92% from 13 tests

"Car Rental Booking Engine by Ionoleggioauto.com" version 3.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("car-rental-booking-engine-by-ionoleggioauto-com.php" instead of "car-rental-booking-engine-ionoleggioauto.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,824 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1835918
CSS1480457
PHP185680443
JSON6006

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.77MB with 0.47MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-4.png241.12KB81.16KB▼ 66.34%
screenshot-5.png220.64KB99.25KB▼ 55.01%
images/noleggioauto.png202.85KB70.89KB▼ 65.05%
screenshot-1.png73.52KB28.96KB▼ 60.61%
screenshot-3.png17.39KB7.33KB▼ 57.86%