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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.06 | 69.10 ▼4.83 |
Dashboard /wp-admin | 3.48 ▲0.07 | 40.37 ▼0.82 |
Posts /wp-admin/edit.php | 3.70 ▲0.06 | 45.75 ▲1.48 |
Add New Post /wp-admin/post-new.php | 6.94 ▼0.03 | 113.33 ▼1,224.25 |
Media Library /wp-admin/upload.php | 3.35 ▲0.06 | 37.89 ▲7.12 |
Booking button /wp-admin/admin.php?page=booking-button | 3.32 | 28.61 |
Get your ID /wp-admin/admin.php?page=get-id | 3.32 | 26.73 |
Embedded booking calendar /wp-admin/admin.php?page=plugin-options | 3.32 | 23.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,021 ▲267 | 16.35 ▲0.85 | 18.34 ▲8.63 | 3.65 ▲0.05 |
Dashboard /wp-admin | 3,001 ▲82 | 6.46 ▲0.07 | 196.73 ▼13.52 | 223.68 ▲16.27 |
Posts /wp-admin/edit.php | 2,765 ▲47 | 3.34 ▼0.08 | 87.26 ▲5.61 | 203.34 ▲20.08 |
Add New Post /wp-admin/post-new.php | 1,692 ▲79 | 16.55 ▼5.84 | 662.81 ▲72.50 | 216.18 ▲6.28 |
Media Library /wp-admin/upload.php | 1,774 ▲48 | 5.78 ▲0.05 | 184.26 ▼13.07 | 279.99 ▲36.32 |
Booking button /wp-admin/admin.php?page=booking-button | 1,247 | 2.65 | 71.13 | 152.24 |
Get your ID /wp-admin/admin.php?page=get-id | 1,075 | 2.85 | 78.12 | 119.62 |
Embedded booking calendar /wp-admin/admin.php?page=plugin-options | 1,225 | 2.68 | 88.24 | 183.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 109 | 154 | 454 |
PHP | 4 | 123 | 34 | 259 |
CSS | 2 | 22 | 9 | 126 |
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 code | 0.33 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/logo-thefork-white_16x16.png | 0.44KB | 0.46KB | 0.00% |