87% oganro-travel-online-booking-system

Code Review | Oganro: Hotels, Flights, Transfers, Car Hire, Excursion Search Box

WordPress plugin Oganro: Hotels, Flights, Transfers, Car Hire, Excursion Search Box scored 87% from 54 tests.

About plugin

  • Plugin page: oganro-travel-onl...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.8
  • WordPress version: 5.8.1
  • First release: Aug 16, 2017
  • Latest release: Aug 16, 2017
  • Number of updates: 9
  • Update frequency: every 0.1 days
  • Top authors: Oganro (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 6,054 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼134.74ms] Passed 4 tests

Analyzing server-side resources used by Oganro: Hotels, Flights, Transfers, Car Hire, Excursion Search Box
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1436.14 ▲14.77
Dashboard /wp-admin3.09 ▲0.0347.53 ▲1.91
Posts /wp-admin/edit.php3.14 ▲0.0356.13 ▲10.65
Add New Post /wp-admin/post-new.php5.45 ▲0.0293.79 ▼543.55
Media Library /wp-admin/upload.php3.03 ▲0.0233.17 ▼7.98

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 245 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Oganro: Hotels, Flights, Transfers, Car Hire, Excursion Search Box
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,723 ▲11716.01 ▲0.3711.01 ▲1.9148.62 ▼2.05
Dashboard /wp-admin2,984 ▲475.92 ▼0.07180.72 ▲34.71123.33 ▲14.86
Posts /wp-admin/edit.php2,759 ▲202.72 ▲0.0172.55 ▲5.5998.16 ▲12.98
Add New Post /wp-admin/post-new.php1,888 ▲21619.24 ▲0.48394.13 ▼24.73108.10 ▼18.14
Media Library /wp-admin/upload.php1,827 ▲205.05 ▼0.00153.56 ▼16.69118.86 ▼0.58

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/oganro-travel-online-booking-system/templates/og_travel_widget.php
  • 131× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/oganro-travel-online-booking-system/templates/og_travel_widget.php on line 1939
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/oganro-travel-online-booking-system/templates/og_travel_widget.php on line 1906
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/oganro-travel-online-booking-system/templates/og_travel_widget.php on line 1892
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/oganro-travel-online-booking-system/templates/og_travel_widget.php on line 1973
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/oganro-travel-online-booking-system/templates/og_travel_widget.php on line 1973
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/oganro-travel-online-booking-system/templates/og_travel_widget.php on line 1869
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/oganro-travel-online-booking-system/templates/og_travel_widget.php on line 2005
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/oganro-travel-online-booking-system/templates/og_travel_widget.php on line 1929
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/oganro-travel-online-booking-system/templates/og_travel_widget.php on line 1969
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/oganro-travel-online-booking-system/templates/og_travel_widget.php on line 1899

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Donate link: Please fix this invalid URI: ""
  • Tags: Please delete some tags, you are using 27 tag instead of maximum 10
  • Screenshots: Screenshot #9 (Sample design 8) image required
You can look at the official readme.txt

oganro-travel-online-booking-system/og-travel-widget.php 85% from 13 tests

"Oganro: Hotels, Flights, Transfers, Car Hire, Excursion Search Box" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Requires at least: Required version does not match the one declared in readme.txt ("4.5" instead of "4.4")
  • Main file name: Name the main plugin file the same as the plugin slug ("oganro-travel-online-booking-system.php" instead of "og-travel-widget.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
Success! There were no dangerous files found in this plugin32,179 lines of code in 220 files:
LanguageFilesBlank linesComment linesLines of code
CSS165010712,191
JavaScript1341,6551,2987,900
PHP404953495,603
SVG2002,959
Sass1434341,768
LESS1434441,758

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity3.33
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.54
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods13
▷ Static methods00.00%
▷ Public methods861.54%
▷ Protected methods00.00%
▷ Private methods538.46%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected