84% harmonizely-booking-product

Code Review | Harmonizely Booking Product

WordPress plugin Harmonizely Booking Product scored84%from 54 tests.

About plugin

  • Plugin page: harmonizely-booki...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 6.3.1
  • First release: Jun 10, 2020
  • Latest release: Jan 18, 2022
  • Number of updates: 22
  • Update frequency: every 26.9 days
  • Top authors: ChrisHardie (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /786 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Server-side resources used by Harmonizely Booking Product
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0039.82 ▼4.37
Dashboard /wp-admin3.35 ▼0.0448.53 ▼17.26
Posts /wp-admin/edit.php3.40 ▲0.0049.44 ▼3.37
Add New Post /wp-admin/post-new.php5.93 ▲0.0083.05 ▼21.30
Media Library /wp-admin/upload.php3.27 ▲0.0039.61 ▼0.71

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Harmonizely Booking Product
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2814.27 ▼0.082.21 ▲0.3042.67 ▼0.97
Dashboard /wp-admin2,195 ▲245.69 ▲0.03110.01 ▲9.9249.60 ▲3.76
Posts /wp-admin/edit.php2,100 ▼01.95 ▼0.0337.79 ▲0.9737.44 ▼3.71
Add New Post /wp-admin/post-new.php1,526 ▼023.21 ▲0.17631.27 ▼28.3850.31 ▼7.48
Media Library /wp-admin/upload.php1,400 ▼04.24 ▲0.07102.65 ▼8.4642.33 ▼7.19

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

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 | 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
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/harmonizely-booking-product/public/partials/harmonizely-booking-product-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: adopt-me, woocommerce, appointment, harmonizely, booking

harmonizely-booking-product/harmonizely-booking-product.php Passed 13 tests

The main file in "Harmonizely Booking Product" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
70 characters long description:
Creates a Harmonizely appointment booking product type for WooCommerce

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected582 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12246662576
JavaScript24546
CSS2080

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity7.00
▷ Minimum class complexity1.00
▷ Maximum class complexity45.00
Average method complexity1.96
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods47
▷ Static methods24.26%
▷ Public methods4085.11%
▷ Protected methods00.00%
▷ Private methods714.89%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin