83% bookingkit

Code Review | bookingkit

WordPress plugin bookingkit scored83%from 54 tests.

About plugin

  • Plugin page: bookingkit
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6
  • WordPress version: 6.3.1
  • First release: Oct 14, 2016
  • Latest release: Oct 27, 2016
  • Number of updates: 23
  • Update frequency: every 1.3 days
  • Top authors: bookingkit (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

90+ active /2,875 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.66MB] [CPU: ▼22.45ms] Passed 4 tests

Server-side resources used by bookingkit
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.20 ▼6.16
Dashboard /wp-admin3.34 ▼0.0047.52 ▼14.22
Posts /wp-admin/edit.php3.39 ▲0.0447.96 ▼3.02
Add New Post /wp-admin/post-new.php3.17 ▼2.7138.68 ▼66.40
Media Library /wp-admin/upload.php3.26 ▲0.0438.33 ▲3.95
bookingkit /wp-admin/options-general.php?page=bookingkit_plugin3.2333.24

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

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

Browser metrics Passed 4 tests

Checking browser requirements for bookingkit
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7214.72 ▲0.152.00 ▲0.1244.01 ▲1.30
Dashboard /wp-admin2,202 ▲225.58 ▼0.1086.06 ▼6.7140.11 ▲0.18
Posts /wp-admin/edit.php2,104 ▲42.03 ▲0.0337.28 ▼3.6833.11 ▼3.10
Add New Post /wp-admin/post-new.php6,246 ▲4,71826.04 ▲3.01908.60 ▲181.0458.85 ▲6.47
Media Library /wp-admin/upload.php1,407 ▲104.16 ▼0.0399.44 ▼4.8044.08 ▼4.13
bookingkit /wp-admin/options-general.php?page=bookingkit_plugin8251.9925.4026.47

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bookingkit/bookingkit.php:232

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 34 tag instead of maximum 10
  • Plugin Name: You should set the name of your plugin on the first line ( === bookingkit === )
The official readme.txt might help

bookingkit/bookingkit.php 92% from 13 tests

The principal PHP file in "bookingkit" v. 1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 180 characters long)

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
No dangerous file extensions were detected223 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14160148
PO File1203175

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions14
▷ Named functions14100.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
There are no PNG files in this plugin