84% ezyonlinebookings-online-booking-system

Code Review | EzyOnlineBookings Online Booking System Widget

WordPress plugin EzyOnlineBookings Online Booking System Widget scored 84% from 54 tests.

About plugin

  • Plugin page: ezyonlinebookings...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.2.0-3.4.2
  • WordPress version: 6.3.1
  • First release: Mar 11, 2013
  • Latest release: Nov 11, 2014
  • Number of updates: 28
  • Update frequency: every 22.4 days
  • Top authors: EzyOnlineBookings (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

50+ active / 15,113 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Server-side resources used by EzyOnlineBookings Online Booking System Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.36 ▼1.08
Dashboard /wp-admin3.32 ▲0.0244.03 ▼5.99
Posts /wp-admin/edit.php3.37 ▲0.0147.30 ▼2.70
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.07 ▼3.30
Media Library /wp-admin/upload.php3.24 ▲0.0136.77 ▲3.47

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by EzyOnlineBookings Online Booking System Widget
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.58 ▼1.014.31 ▲2.2946.79 ▲3.65
Dashboard /wp-admin2,206 ▲215.88 ▲0.08106.21 ▼2.1941.74 ▼4.80
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0739.19 ▲2.8736.74 ▼1.08
Add New Post /wp-admin/post-new.php1,528 ▼018.81 ▲0.70616.55 ▼27.5257.42 ▲6.11
Media Library /wp-admin/upload.php1,388 ▼04.15 ▼0.0595.52 ▼2.1540.84 ▼2.61

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/ezyonlinebookings-online-booking-system/ezyonlinebookingsplugin.php:49

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Tags: You are using too many tags: 29 tag instead of maximum 10
The official readme.txt might help

ezyonlinebookings-online-booking-system/ezyonlinebookingsplugin.php 92% from 13 tests

The entry point to "EzyOnlineBookings Online Booking System Widget" version 1.3 is a PHP file that has certain tags in its header comment area
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 ("ezyonlinebookings-online-booking-system.php" instead of "ezyonlinebookingsplugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin58 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1292358

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
7 compressed PNG files occupy 0.30MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-4.png19.03KB18.22KB▼ 4.23%
screenshot-6.png16.47KB15.21KB▼ 7.65%
screenshot-3.png55.26KB53.42KB▼ 3.34%
screenshot-1.png92.38KB88.60KB▼ 4.09%
screenshot-5.png23.14KB21.80KB▼ 5.76%