74% saksh-text-to-voice-system

Code Review | Saksh appointment booking system

WordPress plugin Saksh appointment booking system scored74%from 54 tests.

About plugin

  • Plugin page: saksh-text-to-voi...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.4
  • WordPress version: 6.3.1
  • First release: Feb 3, 2021
  • Latest release: Nov 20, 2023
  • Number of updates: 10
  • Update frequency: every 102.1 days
  • Top authors: susheelhbti (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /375 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼14.26ms] Passed 4 tests

A check of server-side resources used by Saksh appointment booking system
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0923.50 ▼15.97
Dashboard /wp-admin3.42 ▲0.0842.78 ▼20.88
Posts /wp-admin/edit.php3.54 ▲0.1845.74 ▼4.43
Add New Post /wp-admin/post-new.php6.01 ▲0.1279.58 ▼15.75
Media Library /wp-admin/upload.php3.35 ▲0.1233.56 ▲1.20

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: 2 new tables, 6 new options
New tables
wp_time_slots
wp_events
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Saksh 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 /2,486 ▼30114.37 ▼0.270.69 ▼1.1617.26 ▼26.76
Dashboard /wp-admin2,230 ▲525.68 ▼0.0498.14 ▼14.0241.29 ▼2.69
Posts /wp-admin/edit.php2,132 ▲322.03 ▲0.0841.14 ▲4.1829.63 ▼5.70
Add New Post /wp-admin/post-new.php1,552 ▲2623.07 ▲0.04637.36 ▼101.2667.49 ▲0.76
Media Library /wp-admin/upload.php1,426 ▲264.27 ▲0.09101.30 ▲0.7542.96 ▲0.02

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 2 tables in the database
    • wp_time_slots
    • wp_events
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/saksh-text-to-voice-system/saksh_admin/admin_report.php on line 6
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/saksh-text-to-voice-system/saksh_admin/admin_report.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/saksh-text-to-voice-system/saksh_wchook.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/saksh-text-to-voice-system/saksh_admin/time_slots.php:302
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/saksh-text-to-voice-system/saksh_admin/admin_report.php on line 6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: appointment, appointments booking, reservation, calendar, booking calendar...

saksh-text-to-voice-system/saksh_appointment.php 85% from 13 tests

The main PHP script in "Saksh appointment booking system" version 1.0.0 is automatically included on every request by WordPress
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 150 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("saksh-text-to-voice-system.php" instead of "saksh_appointment.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
Success! There were no dangerous files found in this plugin722 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP774597642
JavaScript183280

PHP code Passed 2 tests

This is a short overview 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.11
Average class complexity2.67
▷ Minimum class complexity2.00
▷ Maximum class complexity4.00
Average method complexity1.21
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods24
▷ Static methods729.17%
▷ Public methods24100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions20
▷ Named functions1890.00%
▷ Anonymous functions210.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin