10% online-booking-calendar-scheduled247

Code Review | Online Booking Calendar Scheduled247

WordPress plugin Online Booking Calendar Scheduled247 scored 10% from 54 tests.

About plugin

  • Plugin page: online-booking-ca...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.2.2
  • WordPress version: 5.9.2
  • First release: Aug 26, 2019
  • Latest release: Aug 26, 2019
  • Number of updates: 4
  • Update frequency: every 0.8 days
  • Top authors: costansin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 490 total downloads

Benchmarks

Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/online-booking-calendar-scheduled247/cp-schedule247.php+28
    require_once(wp-content/plugins/online-booking-calendar-scheduled247/includes/S247_SHORTCODE.php): failed to open stream: No such file or directory

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

Analyzing server-side resources used by Online Booking Calendar Scheduled247
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0155.47 ▲5.21
Dashboard /wp-admin3.41 ▲0.0033.33 ▼0.51
Posts /wp-admin/edit.php3.64 ▲0.0037.28 ▼0.93
Add New Post /wp-admin/post-new.php6.88 ▼0.0994.11 ▼1,223.74
Media Library /wp-admin/upload.php3.29 ▲0.0023.06 ▼1.86

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Online Booking Calendar Scheduled247
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲816.19 ▲0.126.15 ▼0.342.29 ▼0.43
Dashboard /wp-admin2,895 ▲346.13 ▼0.10116.58 ▼21.05155.31 ▼3.06
Posts /wp-admin/edit.php2,694 ▲63.24 ▲0.0062.37 ▼0.59140.94 ▼0.34
Add New Post /wp-admin/post-new.php1,661 ▼5016.43 ▼4.73423.99 ▼8.64151.12 ▼3.98
Media Library /wp-admin/upload.php1,698 ▼05.52 ▼0.02134.84 ▼20.94185.15 ▼11.37

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully

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)
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/online-booking-calendar-scheduled247/includes/S247_SHORTCODE.php' (include_path='.:/usr/share/php') in wp-content/plugins/online-booking-calendar-scheduled247/cp-schedule247.php on line 28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/online-booking-calendar-scheduled247/includes/CP_S247_SHORTCODE.php:16
    • > PHP Warning
      require_once(wp-content/plugins/online-booking-calendar-scheduled247/includes/S247_SHORTCODE.php): failed to open stream: No such file or directory in wp-content/plugins/online-booking-calendar-scheduled247/cp-schedule247.php on line 28

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

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: online scheduling, appointments, calendar, online appointments, scheduled247...

online-booking-calendar-scheduled247/cp-schedule247.php 92% from 13 tests

The primary PHP file in "Online Booking Calendar Scheduled247" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("online-booking-calendar-scheduled247.php" instead of "cp-schedule247.php")

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
Everything looks great! No dangerous files found in this plugin69 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP316969

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.28
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods133.33%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin