84% vello-booking-calendar

Code Review | Vello Booking Calendar

WordPress plugin Vello Booking Calendar scored84%from 54 tests.

About plugin

  • Plugin page: vello-booking-cal...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-5.9
  • WordPress version: 6.3.1
  • First release: Mar 8, 2019
  • Latest release: May 10, 2022
  • Number of updates: 15
  • Update frequency: every 77.7 days
  • Top authors: vellodev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /3,309 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.01MB] [CPU: ▼6.09ms] Passed 4 tests

This is a short check of server-side resources used by Vello Booking Calendar
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0135.08 ▼3.63
Dashboard /wp-admin3.32 ▼0.0246.73 ▼12.89
Posts /wp-admin/edit.php3.38 ▲0.0244.25 ▲0.09
Add New Post /wp-admin/post-new.php5.90 ▲0.0278.55 ▼7.68
Media Library /wp-admin/upload.php3.25 ▲0.0237.90 ▼0.14

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Vello Booking Calendar
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.42 ▼0.111.82 ▼0.1641.03 ▲0.28
Dashboard /wp-admin2,210 ▲335.55 ▼0.0784.73 ▼2.7985.64 ▲45.74
Posts /wp-admin/edit.php2,115 ▲151.97 ▼0.0236.99 ▼1.7934.49 ▼4.16
Add New Post /wp-admin/post-new.php1,553 ▲2723.21 ▲0.22747.92 ▲71.6448.73 ▼7.35
Media Library /wp-admin/upload.php1,418 ▲154.21 ▲0.0299.92 ▼1.6881.16 ▲32.60

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/vello-booking-calendar/vello-booking-calendar.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (Admin menu for Vello Id) image required
The official readme.txt might help

vello-booking-calendar/vello-booking-calendar.php Passed 13 tests

"Vello Booking Calendar" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
52 characters long description:
Plugin to Show Vello Booking Calendar with Shortcode

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 plugin131 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PO File2182080
PHP1181751

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Functions6
▷ Named functions6100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/logo-vello.png1.80KB0.48KB▼ 73.48%