84% musubi-bookings

Code Review | Musubi Bookings Plugin

WordPress plugin Musubi Bookings Plugin scored84%from 54 tests.

About plugin

  • Plugin page: musubi-bookings
  • Plugin version: 0.1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.6
  • WordPress version: 6.3.1
  • First release: Jun 3, 2018
  • Latest release: Jun 4, 2018
  • Number of updates: 14
  • Update frequency: every 0.9 days
  • Top authors: dvlyon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /611 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.02MB] [CPU: ▼8.11ms] Passed 4 tests

A check of server-side resources used by Musubi Bookings Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.75 ▼3.08
Dashboard /wp-admin3.33 ▲0.0347.84 ▼5.65
Posts /wp-admin/edit.php3.38 ▲0.0247.90 ▲1.69
Add New Post /wp-admin/post-new.php5.91 ▲0.0280.71 ▼23.70
Media Library /wp-admin/upload.php3.25 ▲0.0233.98 ▼0.02

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_musubibookings_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Musubi Bookings Plugin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.43 ▲0.051.64 ▼0.2340.95 ▼5.21
Dashboard /wp-admin2,206 ▲154.87 ▼0.03103.79 ▼3.0339.16 ▼5.51
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0037.11 ▲0.4230.70 ▼4.25
Add New Post /wp-admin/post-new.php1,533 ▲1223.04 ▼0.17683.98 ▼7.6956.24 ▼2.27
Media Library /wp-admin/upload.php1,385 ▼34.24 ▲0.0897.80 ▼16.3239.57 ▼6.71

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

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)
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/musubi-bookings/musubibookings.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: appointments, online, bookings

musubi-bookings/musubibookings.php 92% from 13 tests

The main file in "Musubi Bookings Plugin" v. 0.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("musubi-bookings.php" instead of "musubibookings.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected82 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1272482

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.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
PNG images were not found in this plugin