84% mml-booking-calendar

Code Review | MML Booking Calendar

WordPress plugin MML Booking Calendar scored84%from 54 tests.

About plugin

  • Plugin page: mml-booking-calendar
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.2-6.3
  • WordPress version: 6.3.1
  • First release: Jan 8, 2019
  • Latest release: Jul 24, 2023
  • Number of updates: 25
  • Update frequency: every 66.3 days
  • Top authors: mymusiclessons (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /877 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
Installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼6.58ms] Passed 4 tests

A check of server-side resources used by MML Booking Calendar
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.41 ▼1.34
Dashboard /wp-admin3.31 ▼0.0348.60 ▼17.11
Posts /wp-admin/edit.php3.37 ▲0.0151.79 ▲0.71
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.48 ▼8.57
Media Library /wp-admin/upload.php3.24 ▲0.0138.40 ▲2.51

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for MML Booking Calendar
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.34 ▼0.021.73 ▼0.0144.61 ▲0.79
Dashboard /wp-admin2,208 ▲315.63 ▲0.0381.34 ▼19.4637.19 ▼9.16
Posts /wp-admin/edit.php2,116 ▲191.97 ▼0.0335.79 ▼1.6634.45 ▼2.59
Add New Post /wp-admin/post-new.php1,551 ▲2322.83 ▼0.35597.40 ▼70.9160.18 ▲0.66
Media Library /wp-admin/upload.php1,419 ▲164.21 ▲0.0196.64 ▼7.2644.37 ▼1.83

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

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)
Everything seems fine, however this is by no means 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 take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mml-booking-calendar/mml_booking_calendar.php:13

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: music lesson online payments, teacher payments, music tuition booking system, music lesson diary, private music teacher diary...

mml-booking-calendar/mml_booking_calendar.php 92% from 13 tests

The main file in "MML Booking Calendar" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("mml-booking-calendar.php" instead of "mml_booking_calendar.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
No dangerous file extensions were detected81 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1292281

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions7
▷ Named functions7100.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
PNG images were not found in this plugin