84% buk-appointments

Code Review | Buk for WordPress

WordPress plugin Buk for WordPress scored84%from 54 tests.

About plugin

  • Plugin page: buk-appointments
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: Dec 18, 2020
  • Latest release: Nov 17, 2023
  • Number of updates: 25
  • Update frequency: every 42.8 days
  • Top authors: uvstudio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,208 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼3.80ms] Passed 4 tests

An overview of server-side resources used by Buk for WordPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.06 ▼1.75
Dashboard /wp-admin3.31 ▼0.0446.56 ▼14.51
Posts /wp-admin/edit.php3.36 ▲0.0049.09 ▲5.81
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.73 ▲2.17
Media Library /wp-admin/upload.php3.23 ▲0.0030.89 ▼1.11

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Buk for WordPress
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲4314.25 ▲0.012.01 ▲0.0541.66 ▼1.75
Dashboard /wp-admin2,198 ▲245.61 ▲0.0594.49 ▼12.3741.70 ▼0.56
Posts /wp-admin/edit.php2,100 ▼32.03 ▲0.0642.04 ▲3.4935.39 ▲3.24
Add New Post /wp-admin/post-new.php1,535 ▲925.21 ▲1.56602.91 ▼24.3262.93 ▲6.93
Media Library /wp-admin/upload.php1,391 ▼94.16 ▼0.0199.53 ▼2.0445.08 ▲3.09

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/buk-appointments/buk.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: barbers, schedulling, hair, online booking, appointments

buk-appointments/buk.php 85% from 13 tests

Analyzing the main PHP file in "Buk for WordPress" version 1.0.7
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("buk-appointments.php" instead of "buk.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 363 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected135 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PO File24650118
PHP181117

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.08
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%
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