83% koalendar-free-booking-widget

Code Review | Koalendar – Events & Appointments Booking Calendar

WordPress plugin Koalendar – Events & Appointments Booking Calendar scored83%from 54 tests.

About plugin

  • Plugin page: koalendar-free-bo...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-6.3
  • WordPress version: 6.3.1
  • First release: Aug 21, 2021
  • Latest release: Aug 27, 2023
  • Number of updates: 4
  • Update frequency: every 184.0 days
  • Top authors: koalendar (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

500+ active /3,044 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
Install script ran successfully

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

Analyzing server-side resources used by Koalendar – Events & Appointments Booking Calendar
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.59 ▼1.01
Dashboard /wp-admin3.31 ▼0.0447.33 ▼12.02
Posts /wp-admin/edit.php3.36 ▲0.0047.94 ▼7.69
Add New Post /wp-admin/post-new.php5.89 ▲0.00100.11 ▼11.39
Media Library /wp-admin/upload.php3.23 ▲0.0037.87 ▲0.01

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Koalendar – Events & Appointments Booking Calendar: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.34 ▼0.071.97 ▲0.2743.03 ▼0.28
Dashboard /wp-admin2,192 ▲125.58 ▼0.0994.52 ▼2.4041.90 ▲1.88
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0942.39 ▲5.3338.30 ▲0.88
Add New Post /wp-admin/post-new.php1,529 ▲323.18 ▲0.07606.20 ▼76.9852.12 ▲1.77
Media Library /wp-admin/upload.php1,394 ▼04.20 ▲0.0295.56 ▼2.3941.56 ▼1.45

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • 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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/koalendar-free-booking-widget/koa-wordpress.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Contributors: The plugin contributors field is missing
  • Tags: Please delete some tags, you are using 22 tag instead of maximum 10
The official readme.txt might help

koalendar-free-booking-widget/koa-wordpress.php 85% from 13 tests

The main file in "Koalendar – Events & Appointments Booking Calendar" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("koalendar-free-booking-widget.php" instead of "koa-wordpress.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 208 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin13 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP151313

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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