77% lodgixcom-vacation-rental-listing-management-booking-plugin

Code Review | Lodgix.com Vacation Rental Website Builder

WordPress plugin Lodgix.com Vacation Rental Website Builder scored77%from 54 tests.

About plugin

  • Plugin page: lodgixcom-vacatio...
  • Plugin version: 3.9.73
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-5.9
  • WordPress version: 6.3.1
  • First release: Jan 18, 2011
  • Latest release: Feb 7, 2022
  • Number of updates: 973
  • Update frequency: every 4.2 days
  • Top authors: lodgix (54.47%)alexkvv (30.94%)ssynchron (11.61%)jnixon (3.29%)

Code review

54 tests

User reviews

7 reviews

Install metrics

100+ active /38,753 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.87MB] [CPU: ▲420.92ms] 50% from 4 tests

Server-side resources used by Lodgix.com Vacation Rental Website Builder
Please take the time to fix the following items
  • CPU: Try to keep total CPU usage under 500.00ms (currently 877.40ms on /wp-admin/options-general.php?page=lodgix-upgrade)
  • Extra CPU: The extra CPU usage must be under 200.00ms (currently 420.92ms on /wp-admin/lodgix.php)
PageMemory (MB)CPU Time (ms)
Home /4.58 ▲1.08462.01 ▲422.14
Dashboard /wp-admin4.19 ▲0.85489.72 ▲433.76
Posts /wp-admin/edit.php4.28 ▲0.88485.13 ▲432.38
Add New Post /wp-admin/post-new.php6.84 ▲0.91518.34 ▲420.43
Media Library /wp-admin/upload.php4.09 ▲0.82444.80 ▲408.71
Lodgix Upgrade /wp-admin/options-general.php?page=lodgix-upgrade4.13877.40

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 420 new files
Database: no new tables, 10 new options
New WordPress options
widget_lodgix_rental_search
can_compress_scripts
widget_ldx_frw_v2
db_upgraded
widget_recent-comments
p_lodgix_db_version
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_lodgix_featured

Browser metrics Passed 4 tests

Checking browser requirements for Lodgix.com Vacation Rental Website Builder
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,348 ▲58716.67 ▲2.3035.84 ▲34.2760.78 ▲19.39
Dashboard /wp-admin2,365 ▲1886.41 ▲0.84105.79 ▲10.4037.57 ▼7.24
Posts /wp-admin/edit.php2,293 ▲1933.50 ▲1.5147.22 ▲9.2934.16 ▼9.59
Add New Post /wp-admin/post-new.php1,554 ▲2821.11 ▼2.04654.23 ▼17.3837.53 ▼15.81
Media Library /wp-admin/upload.php1,433 ▲364.16 ▼0.0294.04 ▼12.6645.93 ▲3.50
Lodgix Upgrade /wp-admin/options-general.php?page=lodgix-upgrade1,5135.4680.5690.98
Lodgix Settings /wp-admin/lodgix.php260.420.1613.07

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 10 options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_ldx_frw_v2
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_lodgix_featured
    • can_compress_scripts
    • widget_lodgix_rental_search
    • p_lodgix_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/lodgixcom-vacation-rental-listing-management-booking-plugin/classes/purevision_page_template.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/lodgixcom-vacation-rental-listing-management-booking-plugin/lodgix_widget_rental_search_v2.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/lodgixcom-vacation-rental-listing-management-booking-plugin/lodgix_widget_featured_rentals_v2.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/lodgixcom-vacation-rental-listing-management-booking-plugin/classes/lodgix_page_template.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function thesis_html_framework() in wp-content/plugins/lodgixcom-vacation-rental-listing-management-booking-plugin/classes/thesis_no_sidebars.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/lodgixcom-vacation-rental-listing-management-booking-plugin/lodgix_widget_featured_rentals.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/lodgixcom-vacation-rental-listing-management-booking-plugin/lodgix_widget_rental_search_v1.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/lodgixcom-vacation-rental-listing-management-booking-plugin/lodgix_widget_rental_search_v2.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function lodgix_plugin_download_link() in wp-content/plugins/lodgixcom-vacation-rental-listing-management-booking-plugin/classes/lodgixupgradepage.php:5

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
    • > GET request to /wp-admin/options-general.php?page=lodgix-upgrade
    • > Javascript (severe) in unknown
    /wp-content/plugins/lodgixcom-vacation-rental-listing-management-booking-plugin/js/wp-color-picker-alpha.js?ver=2.1.4 23:16 Uncaught ReferenceError: wpColorPickerL10n is not defined
    • > GET request to /wp-admin/lodgix.php
    • > Network (severe)
    wp-admin/lodgix.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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: There are too many tags (16 tag instead of maximum 10)
The official readme.txt is a good inspiration

lodgixcom-vacation-rental-listing-management-booking-plugin/lodgix.php 92% from 13 tests

The entry point to "Lodgix.com Vacation Rental Website Builder" version 3.9.73 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("lodgixcom-vacation-rental-listing-management-booking-plugin.php" instead of "lodgix.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected65,517 lines of code in 212 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1199,35215,25832,975
CSS322,13541421,094
PHP331,0545949,140
SVG170151,249
PO File32680576
HTML2154167
Markdown2570163
Twig122092
JSON20050
YAML13011

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Please tend to the following items
  • Method cyclomatic complexity should be reduced to less than 100 (currently 109)
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity44.59
▷ Minimum class complexity1.00
▷ Maximum class complexity185.00
Average method complexity4.88
▷ Minimum method complexity1.00
▷ Maximum method complexity109.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes29
▷ Abstract classes00.00%
▷ Concrete classes29100.00%
▷ Final classes00.00%
Methods326
▷ Static methods113.37%
▷ Public methods17754.29%
▷ Protected methods10231.29%
▷ Private methods4714.42%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants40
▷ Global constants12.50%
▷ Class constants3997.50%
▷ Public constants39100.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
168 PNG files occupy 1.67MB with 1.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/lodgix-bg_flat_55_999999_40x100.png0.18KB0.08KB▼ 51.67%
css/icons/gradient-color/type.png5.94KB2.15KB▼ 63.73%
css/icons/old/video.png56.75KB2.29KB▼ 95.96%
datatables/images/forward_enabled.png1.35KB0.58KB▼ 56.96%
css/icons/outlined/video.png5.00KB2.34KB▼ 53.12%