84% woocommerce-easy-booking-system

Code Review | WooCommerce Easy Booking

WordPress plugin WooCommerce Easy Booking scored84%from 54 tests.

About plugin

  • Plugin page: woocommerce-easy-...
  • Plugin version: 3.1.8
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.2
  • WordPress version: 6.3.1
  • First release: May 13, 2014
  • Latest release: Oct 19, 2023
  • Number of updates: 1
  • Update frequency: every 365.0 days

Code review

54 tests

User reviews

53 reviews

Install metrics

6,000+ active /229,808 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.70ms] Passed 4 tests

This is a short check of server-side resources used by WooCommerce Easy Booking
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0240.28 ▲1.45
Dashboard /wp-admin3.33 ▲0.0247.29 ▲1.73
Posts /wp-admin/edit.php3.38 ▲0.0249.60 ▲0.34
Add New Post /wp-admin/post-new.php5.91 ▲0.0283.25 ▼16.55
Media Library /wp-admin/upload.php3.25 ▲0.0234.88 ▼0.03

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 159 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by WooCommerce Easy Booking
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.37 ▲0.201.77 ▲0.2044.07 ▲7.99
Dashboard /wp-admin2,192 ▲145.52 ▼0.1282.55 ▼15.5537.06 ▼0.86
Posts /wp-admin/edit.php2,103 ▲31.99 ▲0.0335.50 ▼0.6334.88 ▲2.88
Add New Post /wp-admin/post-new.php1,528 ▲223.03 ▼0.10681.99 ▲26.1250.28 ▼10.57
Media Library /wp-admin/upload.php1,400 ▼04.20 ▲0.0395.11 ▼13.6842.49 ▼4.86

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% 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
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 apply_filters() in wp-content/plugins/woocommerce-easy-booking-system/includes/reports/views/html-wceb-reports.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Requires at least: Invalid plugin version format
You can take inspiration from this readme.txt

woocommerce-easy-booking-system/woocommerce-easy-booking.php 92% from 13 tests

This is the main PHP file of "WooCommerce Easy Booking" version 3.1.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woocommerce-easy-booking-system.php" instead of "woocommerce-easy-booking.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin8,381 lines of code in 141 files:
LanguageFilesBlank linesComment linesLines of code
PHP642,3012,4015,027
JavaScript671,3348353,019
CSS86422311
Markdown17014
XML10010

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity16.90
▷ Minimum class complexity1.00
▷ Maximum class complexity62.00
Average method complexity3.53
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes30
▷ Abstract classes00.00%
▷ Concrete classes30100.00%
▷ Final classes00.00%
Methods189
▷ Static methods3719.58%
▷ Public methods15380.95%
▷ Protected methods115.82%
▷ Private methods2513.23%
Functions73
▷ Named functions7298.63%
▷ Anonymous functions11.37%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected