Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼295.92ms] Passed 4 tests
A check of server-side resources used by Funbutler Booking
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.05 | 54.11 ▼3.16 |
Dashboard /wp-admin | 3.46 ▲0.05 | 41.20 ▲8.67 |
Posts /wp-admin/edit.php | 3.69 ▲0.05 | 40.64 ▲2.54 |
Add New Post /wp-admin/post-new.php | 6.93 ▼0.04 | 94.58 ▼1,184.35 |
Media Library /wp-admin/upload.php | 3.35 ▲0.05 | 25.77 ▲1.30 |
Funbutler /wp-admin/options-general.php?page=procommerca-options-page | 3.29 | 22.29 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 1 new option
New WordPress options |
---|
procommerca-settings |
Browser metrics Passed 4 tests
Funbutler Booking: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,825 ▲103 | 24.89 ▲8.85 | 288.12 ▲282.46 | 2.91 ▲0.51 |
Dashboard /wp-admin | 2,893 ▲39 | 6.14 ▼0.07 | 116.97 ▼20.23 | 153.79 ▼9.51 |
Posts /wp-admin/edit.php | 2,693 ▼1 | 3.24 ▲0.01 | 62.00 ▼4.70 | 139.59 ▼6.32 |
Add New Post /wp-admin/post-new.php | 1,714 ▲53 | 20.74 ▲3.90 | 452.07 ▲40.54 | 161.76 ▲8.42 |
Media Library /wp-admin/upload.php | 1,703 ▲5 | 5.53 ▼0.00 | 153.53 ▲2.08 | 185.16 ▼4.60 |
Funbutler /wp-admin/options-general.php?page=procommerca-options-page | 1,022 | 2.41 | 52.73 | 107.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 1 option in the database
- procommerca-settings
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=procommerca-options-page
- > Notice in wp-content/plugins/procommerca-booking/settings-page.php+61
Undefined index: test-mode
- > GET request to /wp-admin/options-general.php?page=procommerca-options-page
- > Notice in wp-content/plugins/procommerca-booking/settings-page.php+62
Undefined index: api-key
- > GET request to /wp-admin/options-general.php?page=procommerca-options-page
- > Notice in wp-content/plugins/procommerca-booking/settings-page.php+100
Undefined index: disconnect
- > GET request to /wp-admin/options-general.php?page=procommerca-options-page
- > Notice in wp-content/plugins/procommerca-booking/settings-page.php+101
Undefined index: client-id
- > GET request to /wp-admin/options-general.php?page=procommerca-options-page
- > Notice in wp-content/plugins/procommerca-booking/settings-page.php+241
Undefined variable: notice
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/procommerca-booking/shortcodes.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/procommerca-booking/inc/settings.inc.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/procommerca-booking/settings-page-legacy.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/procommerca-booking/menu-item.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function procommerca_get_settings() in wp-content/plugins/procommerca-booking/settings-page.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: escape room, booking, playland, funbutler, lasertag...
procommerca-booking/plugin.php 92% from 13 tests
This is the main PHP file of "Funbutler Booking" version 0.14, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("procommerca-booking.php" instead of "plugin.php")
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
There were no executable files found in this plugin587 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 107 | 29 | 517 |
Sass | 1 | 3 | 0 | 42 |
CSS | 1 | 3 | 0 | 28 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
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 | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128x128.png | 6.61KB | 3.24KB | ▼ 50.94% |
assets/icon-256x256.png | 21.82KB | 5.22KB | ▼ 76.08% |