72% retreat-booking-guru-connect

Code Review | Retreat Booking Guru Connect

WordPress plugin Retreat Booking Guru Connect scored72%from 54 tests.

About plugin

  • Plugin page: retreat-booking-g...
  • Plugin version: 2.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3
  • WordPress version: 6.3.1
  • First release: Nov 23, 2015
  • Latest release: Aug 16, 2023
  • Number of updates: 49
  • Update frequency: every 57.7 days
  • Top authors: dwenaus (75.51%)ryandury (26.53%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,598 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Analyzing server-side resources used by Retreat Booking Guru Connect
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0341.54 ▼4.40
Dashboard /wp-admin3.33 ▼0.0149.05 ▼21.39
Posts /wp-admin/edit.php3.39 ▲0.0351.56 ▲1.38
Add New Post /wp-admin/post-new.php5.93 ▲0.0598.61 ▼7.10
Media Library /wp-admin/upload.php3.26 ▲0.0341.72 ▲7.43

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
rs_remote_db_version
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Retreat Booking Guru Connect
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,937 ▲17613.63 ▼0.758.93 ▲7.1939.90 ▼4.57
Dashboard /wp-admin2,257 ▲545.81 ▲0.93109.62 ▼11.3443.86 ▼5.73
Posts /wp-admin/edit.php2,140 ▲402.05 ▼0.0140.04 ▲1.8535.63 ▲0.34
Add New Post /wp-admin/post-new.php1,560 ▲1523.16 ▲0.04666.34 ▼23.8452.18 ▼6.87
Media Library /wp-admin/upload.php1,439 ▲394.22 ▼0.0398.85 ▼11.4244.27 ▼2.46
Retreat Guru Settings /wp-admin/booking-manager.php?page=options-mbm260.440.0915.59
Program & Help /wp-admin/booking-manager.php260.440.095.35

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
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • rs_remote_db_version
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/retreat-booking-guru-connect/views/admin-help.php
  • 16× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/retreat-booking-guru-connect/templates/shortcode-teachers-single.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_query_arg() in wp-content/plugins/retreat-booking-guru-connect/views/admin-main.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/retreat-booking-guru-connect/templates/archive-teacher.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/retreat-booking-guru-connect/views/admin-help.php:100
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/retreat-booking-guru-connect/templates/archive-program.php:6
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_programs_page() on null in wp-content/plugins/retreat-booking-guru-connect/templates/shortcode-programs-table.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/retreat-booking-guru-connect/templates/single-program.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/retreat-booking-guru-connect/templates/shortcode-programs-single.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'RS_Connect_Api' not found in wp-content/plugins/retreat-booking-guru-connect/views/admin-programs.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/retreat-booking-guru-connect/templates/single-teacher.php:6

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
    • > GET request to /wp-admin/booking-manager.php?page=options-mbm
    • > Network (severe)
    wp-admin/booking-manager.php?page=options-mbm - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/booking-manager.php
    • > Network (severe)
    wp-admin/booking-manager.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (coming soon.) image missing
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === retreat-booking-guru-connect === )
Please take inspiration from this readme.txt

retreat-booking-guru-connect/rs-connect.php 92% from 13 tests

"Retreat Booking Guru Connect" version 2.3.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("retreat-booking-guru-connect.php" instead of "rs-connect.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,893 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP18352941,687
CSS23321160
JavaScript39638
Bourne Shell1008

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity19.80
▷ Minimum class complexity9.00
▷ Maximum class complexity44.00
Average method complexity2.68
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods56
▷ Static methods1628.57%
▷ Public methods5191.07%
▷ Protected methods00.00%
▷ Private methods58.93%
Functions1
▷ Named functions1100.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
PNG images were not found in this plugin