83% starboard-suite-reservation-calendars

Code Review | Starboard Suite Reservation Calendars

WordPress plugin Starboard Suite Reservation Calendars scored 83% from 54 tests.

About plugin

  • Plugin page: starboard-suite-r...
  • Plugin version: 3.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3
  • WordPress version: 6.3.1
  • First release: Oct 3, 2018
  • Latest release: Jul 26, 2023
  • Number of updates: 29
  • Update frequency: every 60.6 days
  • Top authors: starboardsuite (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,397 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Starboard Suite Reservation Calendars
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.24 ▲0.14
Dashboard /wp-admin3.32 ▲0.0245.30 ▼6.41
Posts /wp-admin/edit.php3.37 ▲0.0260.90 ▲15.05
Add New Post /wp-admin/post-new.php5.90 ▲0.0283.58 ▼10.68
Media Library /wp-admin/upload.php3.25 ▲0.0233.45 ▼4.89

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Starboard Suite Reservation Calendars
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲9813.33 ▼1.031.65 ▼0.2739.73 ▼2.70
Dashboard /wp-admin2,239 ▲485.84 ▲0.9297.47 ▼6.0179.32 ▲38.93
Posts /wp-admin/edit.php2,130 ▲411.99 ▼0.0543.49 ▲7.8541.06 ▲1.60
Add New Post /wp-admin/post-new.php1,541 ▲2217.69 ▼5.43765.18 ▲89.5658.01 ▲1.82
Media Library /wp-admin/upload.php1,421 ▲334.18 ▼0.0198.46 ▼10.9572.07 ▲28.25

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/starboard-suite-reservation-calendars/starboard-suite.php

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

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Plugin Name: Please specify the plugin name on the first line ( === starboard-suite-reservation-calendars === )
  • Screenshots: These screenshots require images: #1 (Generated embedded reservations calendar), #2 (Lightframe booking overlay: customers book your activity without leaving your website)
The official readme.txt is a good inspiration

starboard-suite-reservation-calendars/starboard-suite.php 85% from 13 tests

This is the main PHP file of "Starboard Suite Reservation Calendars" version 3.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("starboard-suite-reservation-calendars.php" instead of "starboard-suite.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
Everything looks great! No dangerous files found in this plugin164 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP23535156
SVG1008

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity2.14
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods1392.86%
▷ Protected methods00.00%
▷ Private methods17.14%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin