83% online-booking-engine

Code Review | eZee Online Hotel Booking Engine

WordPress plugin eZee Online Hotel Booking Engine scored83%from 54 tests.

About plugin

  • Plugin page: online-booking-en...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.4
  • WordPress version: 6.3.1
  • First release: Apr 14, 2015
  • Latest release: Mar 12, 2020
  • Number of updates: 90
  • Update frequency: every 19.9 days
  • Top authors: floramehta (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active /17,017 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.26ms] Passed 4 tests

An overview of server-side resources used by eZee Online Hotel Booking Engine
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.68 ▲0.77
Dashboard /wp-admin3.32 ▲0.0247.81 ▼1.66
Posts /wp-admin/edit.php3.37 ▲0.0144.59 ▼7.14
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.10 ▼19.08
Media Library /wp-admin/upload.php3.24 ▲0.0137.45 ▼1.14

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by eZee Online Hotel Booking Engine
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲7114.23 ▼0.331.94 ▲0.4546.89 ▲5.43
Dashboard /wp-admin2,213 ▲335.62 ▼0.0391.54 ▲2.5738.17 ▲0.63
Posts /wp-admin/edit.php2,121 ▲212.02 ▼0.1434.23 ▼3.1033.38 ▼0.67
Add New Post /wp-admin/post-new.php1,544 ▲1823.08 ▲0.01606.88 ▲1.3957.15 ▼7.34
Media Library /wp-admin/upload.php1,418 ▲214.20 ▲0.02111.40 ▲1.5346.81 ▼0.77

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means 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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/online-booking-engine/wp_ezee_reservation.php:18

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Tags: There are too many tags (48 tag instead of maximum 10)
  • Donate link: Invalid URI found ("")
  • Screenshots: These screenshots require images: #1 (WordPress Booking Engine - Admin Settings), #2 (WordPress Booking Engine - Front Side)
You can look at the official readme.txt

online-booking-engine/wp_ezee_reservation.php 92% from 13 tests

The main file in "eZee Online Hotel Booking Engine" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("online-booking-engine.php" instead of "wp_ezee_reservation.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin143 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1192066
CSS14058
JavaScript13219

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.73MB with 0.51MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png51.30KB16.07KB▼ 68.67%
screenshot-2.png700.64KB212.37KB▼ 69.69%