93% 10to8-online-booking

Code Review | 10to8 Online Appointment Booking System

WordPress plugin 10to8 Online Appointment Booking System scored 93% from 54 tests.

About plugin

  • Plugin page: 10to8-online-booking
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-5.4
  • WordPress version: 5.9.2
  • First release: Feb 8, 2016
  • Latest release: Apr 21, 2020
  • Number of updates: 22
  • Update frequency: every 69.8 days
  • Top authors: 10to8 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

2,000+ active / 20,419 total downloads

Benchmarks

Plugin footprint Passed 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 successfully, without throwing any errors or notices

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

Analyzing server-side resources used by 10to8 Online Appointment Booking System
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0161.62 ▲8.70
Dashboard /wp-admin3.42 ▲0.0134.29 ▲0.28
Posts /wp-admin/edit.php3.65 ▲0.0138.12 ▼15.03
Add New Post /wp-admin/post-new.php6.89 ▼0.0992.29 ▼1,218.62
Media Library /wp-admin/upload.php3.30 ▲0.0026.67 ▲1.23

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

10to8 Online Appointment Booking System: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,785 ▲3115.90 ▼0.096.04 ▲0.032.06 ▼0.88
Dashboard /wp-admin2,888 ▲336.16 ▼0.01117.80 ▼16.57156.07 ▼6.15
Posts /wp-admin/edit.php2,694 ▼03.24 ▼0.0065.03 ▼2.05139.90 ▼5.01
Add New Post /wp-admin/post-new.php1,717 ▲621.08 ▼0.93456.88 ▼13.25170.01 ▲13.13
Media Library /wp-admin/upload.php1,698 ▼35.52 ▲0.03142.86 ▲5.13190.63 ▲6.79

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/10to8-online-booking/10to8-online-appointment-booking.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 23 tag instead of maximum 10
  • Contributors: The plugin contributors field is missing
You can look at the official readme.txt

10to8-online-booking/10to8-online-appointment-booking.php 85% from 13 tests

The entry point to "10to8 Online Appointment Booking System" version 1.0.7 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("10to8-online-booking.php" instead of "10to8-online-appointment-booking.php")
  • Description: The description should be shorter than 140 characters (currently 270 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin30 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP15825
JavaScript1005

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions2
▷ Named functions2100.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
No PNG files were detected