83% supersaas-appointment-scheduling

Code Review | SuperSaaS - online appointment scheduling

WordPress plugin SuperSaaS - online appointment scheduling scored83%from 54 tests.

About plugin

  • Plugin page: supersaas-appoint...
  • Plugin version: 2.1.9
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-6.3
  • WordPress version: 6.3.1
  • First release: Jun 20, 2010
  • Latest release: Sep 8, 2023
  • Number of updates: 83
  • Update frequency: every 58.2 days
  • Top authors: supersaas (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

1,000+ active /34,385 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼5.49ms] Passed 4 tests

A check of server-side resources used by SuperSaaS - online appointment scheduling
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0642.71 ▼2.67
Dashboard /wp-admin3.38 ▲0.0847.24 ▼3.74
Posts /wp-admin/edit.php3.44 ▲0.0849.69 ▼1.35
Add New Post /wp-admin/post-new.php5.98 ▲0.0981.44 ▼14.21
Media Library /wp-admin/upload.php3.31 ▲0.0839.00 ▲2.07
SuperSaaS /wp-admin/options-general.php?page=supersaas-settings3.2836.09

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

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

Browser metrics Passed 4 tests

A check of browser resources used by SuperSaaS - online appointment scheduling
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.24 ▼0.111.93 ▲0.0642.53 ▼1.69
Dashboard /wp-admin2,204 ▲245.63 ▼0.0386.95 ▼10.5139.25 ▼6.38
Posts /wp-admin/edit.php2,103 ▲32.02 ▲0.0636.54 ▼0.7133.66 ▼4.01
Add New Post /wp-admin/post-new.php1,531 ▲523.16 ▲0.03659.75 ▼38.0561.05 ▲3.77
Media Library /wp-admin/upload.php1,406 ▲64.19 ▲0.02102.90 ▼7.6043.51 ▼2.17
SuperSaaS /wp-admin/options-general.php?page=supersaas-settings9811.6924.5045.02

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

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)
Good news, no errors were detected

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 fix the following
  • 5× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/supersaas-appointment-scheduling/includes/admin.php
    • > /wp-content/plugins/supersaas-appointment-scheduling/supersaas.php
    • > /wp-content/plugins/supersaas-appointment-scheduling/index.php
    • > /wp-content/plugins/supersaas-appointment-scheduling/includes/index.php
    • > /wp-content/plugins/supersaas-appointment-scheduling/includes/shortcode.php

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

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 19 tag instead of maximum 10
The official readme.txt is a good inspiration

supersaas-appointment-scheduling/supersaas.php 77% from 13 tests

Analyzing the main PHP file in "SuperSaaS - online appointment scheduling" version 2.1.9
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 341 characters long)
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("supersaas-appointment-scheduling.php" instead of "supersaas.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,203 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PO File932427729
PHP456111358
JavaScript110690
Markdown19026

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.39
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There are no PNG files in this plugin