83% funbutler-booking

Code Review | Funbutler Booking System

WordPress plugin Funbutler Booking System scored83%from 54 tests.

About plugin

  • Plugin page: funbutler-booking
  • Plugin version: 1.0.8
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.1.0
  • WordPress version: 6.3.1
  • First release: Feb 2, 2022
  • Latest release: Nov 10, 2022
  • Number of updates: 10
  • Update frequency: every 28.9 days
  • Top authors: funbutler (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /562 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.25ms] Passed 4 tests

This is a short check of server-side resources used by Funbutler Booking System
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.43 ▼0.0324.43 ▼17.87
Dashboard /wp-admin3.36 ▲0.0650.42 ▲3.87
Posts /wp-admin/edit.php3.41 ▲0.0549.97 ▲3.46
Add New Post /wp-admin/post-new.php5.94 ▲0.0591.87 ▲4.01
Media Library /wp-admin/upload.php3.28 ▲0.0534.58 ▲1.55
Funbutler /wp-admin/options-general.php?page=funbutler-options-page3.2529.54

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
funbutler-settings
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Funbutler Booking System
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,849 ▲9223.81 ▲9.43323.46 ▲321.5144.58 ▼5.89
Dashboard /wp-admin2,210 ▲224.83 ▼0.07110.68 ▲7.6144.84 ▼0.09
Posts /wp-admin/edit.php2,093 ▲12.01 ▼0.0435.16 ▼2.7831.86 ▼4.81
Add New Post /wp-admin/post-new.php1,536 ▲2223.01 ▲5.31659.51 ▼23.5657.17 ▼0.49
Media Library /wp-admin/upload.php1,395 ▲134.14 ▼0.0895.78 ▼1.0940.38 ▼5.91
Funbutler /wp-admin/options-general.php?page=funbutler-options-page8522.1528.8625.33

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 7 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • funbutler-settings
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
  • 9× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/funbutler-booking/api/connect-client.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/funbutler-booking/shortcodes.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/funbutler-booking/api/connect-client.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/funbutler-booking/settings-page.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/funbutler-booking/api/disconnect-client.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/funbutler-booking/api/connect-client.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/funbutler-booking/menu-item.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/funbutler-booking/api/get-settings.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/funbutler-booking/api/get-client-data.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
  • Screenshots: No descriptions were found for these screenshots #1, #2 in funbutler-booking/assets to your readme.txt
You can take inspiration from this readme.txt

funbutler-booking/plugin.php 92% from 13 tests

The entry point to "Funbutler Booking System" version 1.0.8 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("funbutler-booking.php" instead of "plugin.php")

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
Everything looks great! No dangerous files found in this plugin473 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP1211210403
Sass13042
CSS13028

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 2.46MB with 1.56MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-256x256.png21.82KB5.22KB▼ 76.08%
assets/screenshot-1.png2,499.67KB1,242.21KB▼ 50.30%