94% thefork-widgets

Code Review | TheFork Widgets

WordPress plugin TheFork Widgets scored 94% from 54 tests.

About plugin

  • Plugin page: thefork-widgets
  • Plugin version: 2.0.5
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.9
  • WordPress version: 5.9.2
  • First release: Jul 5, 2019
  • Latest release: Apr 5, 2022
  • Number of updates: 53
  • Update frequency: every 19.0 days
  • Top authors: llillo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active / 2,260 total downloads

Benchmarks

Plugin footprint Passed 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.04MB] [CPU: ▼307.11ms] Passed 4 tests

This is a short check of server-side resources used by TheFork Widgets
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0669.10 ▼4.83
Dashboard /wp-admin3.48 ▲0.0740.37 ▼0.82
Posts /wp-admin/edit.php3.70 ▲0.0645.75 ▲1.48
Add New Post /wp-admin/post-new.php6.94 ▼0.03113.33 ▼1,224.25
Media Library /wp-admin/upload.php3.35 ▲0.0637.89 ▲7.12
Booking button /wp-admin/admin.php?page=booking-button3.3228.61
Get your ID /wp-admin/admin.php?page=get-id3.3226.73
Embedded booking calendar /wp-admin/admin.php?page=plugin-options3.3223.97

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for TheFork Widgets
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,021 ▲26716.35 ▲0.8518.34 ▲8.633.65 ▲0.05
Dashboard /wp-admin3,001 ▲826.46 ▲0.07196.73 ▼13.52223.68 ▲16.27
Posts /wp-admin/edit.php2,765 ▲473.34 ▼0.0887.26 ▲5.61203.34 ▲20.08
Add New Post /wp-admin/post-new.php1,692 ▲7916.55 ▼5.84662.81 ▲72.50216.18 ▲6.28
Media Library /wp-admin/upload.php1,774 ▲485.78 ▲0.05184.26 ▼13.07279.99 ▲36.32
Booking button /wp-admin/admin.php?page=booking-button1,2472.6571.13152.24
Get your ID /wp-admin/admin.php?page=get-id1,0752.8578.12119.62
Embedded booking calendar /wp-admin/admin.php?page=plugin-options1,2252.6888.24183.44

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 4× PHP files output text when accessed directly:
    • > /wp-content/plugins/thefork-widgets/includes/button.php
    • > /wp-content/plugins/thefork-widgets/thefork-widgets.php
    • > /wp-content/plugins/thefork-widgets/includes/shortcodes.php
    • > /wp-content/plugins/thefork-widgets/includes/admin.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: thefork bookings, thefork, widgets, calendario reservas, reservation lafourchette...

thefork-widgets/thefork-widgets.php Passed 13 tests

Analyzing the main PHP file in "TheFork Widgets" version 2.0.5
52 characters long description:
Install the Thefork reservation widget by shortcodes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected839 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2109154454
PHP412334259
CSS2229126

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/logo-thefork-white_16x16.png0.44KB0.46KB0.00%