83% scheduly

Code Review | Scheduly - Appointment Scheduling System & Booking Calendar

WordPress plugin Scheduly - Appointment Scheduling System & Booking Calendar scored83%from 54 tests.

About plugin

  • Plugin page: scheduly
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.9
  • WordPress version: 6.3.1
  • First release: Feb 16, 2021
  • Latest release: Feb 16, 2022
  • Number of updates: 7
  • Update frequency: every 52.1 days
  • Top authors: joseosma (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /941 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.15MB] [CPU: ▼15.60ms] Passed 4 tests

A check of server-side resources used by Scheduly - Appointment Scheduling System & Booking Calendar
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.86 ▼0.64
Dashboard /wp-admin3.23 ▼0.1231.03 ▼26.43
Posts /wp-admin/edit.php3.29 ▼0.0634.14 ▼10.51
Add New Post /wp-admin/post-new.php5.47 ▼0.4268.55 ▼24.63
Media Library /wp-admin/upload.php3.23 ▲0.0031.41 ▼0.82

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Scheduly - Appointment Scheduling System & Booking Calendar
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲5914.73 ▲0.071.67 ▲0.0836.37 ▼4.07
Dashboard /wp-admin2,214 ▲375.62 ▼0.0493.26 ▲5.8137.54 ▼3.70
Posts /wp-admin/edit.php2,116 ▲162.01 ▲0.0033.07 ▼2.8235.34 ▼6.64
Add New Post /wp-admin/post-new.php1,540 ▲1223.34 ▲0.17601.03 ▼82.1662.71 ▲9.61
Media Library /wp-admin/upload.php1,416 ▲164.13 ▼0.0794.09 ▼1.9542.00 ▼2.98

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_register_style() in wp-content/plugins/scheduly/inc/options.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scheduly/skywidget.php:195

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: Add an image for screenshot #1 (scheduly.png.)
The official readme.txt might help

scheduly/skywidget.php 69% from 13 tests

The main PHP script in "Scheduly - Appointment Scheduling System & Booking Calendar" version 1.1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("www.scheduly.com")
  • Domain Path: The domain path must begin with a forward slash character ("/www.scheduly.com")
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Main file name: Name the main plugin file the same as the plugin slug ("scheduly.php" instead of "skywidget.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
Everything looks great! No dangerous files found in this plugin192 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP24039176
CSS10016

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity3.17
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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