78% schedulicity-online-appointment-booking

Code Review | Schedulicity - Easy Online Scheduling

WordPress plugin Schedulicity - Easy Online Scheduling scored 78% from 54 tests.

About plugin

  • Plugin page: schedulicity-onli...
  • Plugin version: 2.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.3.2
  • WordPress version: 5.8.1
  • First release: Sep 25, 2012
  • Latest release: Mar 4, 2020
  • Number of updates: 73
  • Update frequency: every 37.2 days
  • Top authors: jprummer (72.6%)schedulicity (28.77%)

Code review

54 tests

User reviews

2 reviews

Install metrics

700+ active / 15,085 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼1.80MB] [CPU: ▼187.75ms] Passed 4 tests

Server-side resources used by Schedulicity - Easy Online Scheduling
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /1.83 ▼0.898.13 ▼17.68
Dashboard /wp-admin1.85 ▼1.207.21 ▼30.28
Posts /wp-admin/edit.php1.85 ▼1.256.98 ▼38.19
Add New Post /wp-admin/post-new.php1.85 ▼3.585.77 ▼653.51
Media Library /wp-admin/upload.php1.85 ▼1.156.34 ▼29.00
Schedulicity Setup /wp-admin/options-general.php?page=schedulicity_options_page1.857.68

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Schedulicity - Easy Online Scheduling
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,808 ▲21216.37 ▲0.8012.86 ▲3.2351.46 ▲5.60
Dashboard /wp-admin3,011 ▲805.93 ▼0.02143.03 ▼3.28113.34 ▼9.78
Posts /wp-admin/edit.php2,758 ▲192.69 ▲0.0070.24 ▲0.4399.56 ▲6.47
Add New Post /wp-admin/post-new.php1,696 ▲1318.57 ▼0.21373.88 ▼17.25109.99 ▼7.65
Media Library /wp-admin/upload.php1,826 ▲165.02 ▲0.02186.89 ▲22.10128.17 ▼1.05
Schedulicity Setup /wp-admin/options-general.php?page=schedulicity_options_page1,3882.2367.53135.50

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/schedulicity-online-appointment-booking/wpplugin.php+388
    Trying to access array offset on value of type bool

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=schedulicity_options_page
    • > Notice in wp-content/plugins/schedulicity-online-appointment-booking/wpplugin.php+254
    Trying to access array offset on value of type bool

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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/schedulicity-online-appointment-booking/wpplugin.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
The official readme.txt is a good inspiration

schedulicity-online-appointment-booking/wpplugin.php 85% from 13 tests

Analyzing the main PHP file in "Schedulicity - Easy Online Scheduling" version 2.2.1
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("schedulicity-online-appointment-booking.php" instead of "wpplugin.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 369 characters long)

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
Good job! No executable or dangerous file extensions detected507 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP13641372
CSS100129
JavaScript1016

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity22.00
▷ Minimum class complexity22.00
▷ Maximum class complexity22.00
Average method complexity2.91
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods218.18%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
2 PNG files occupy 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/schedule_now_button_layout.png96.58KB26.01KB▼ 73.06%
schedulicitylogo.png11.45KB6.71KB▼ 41.41%