Benchmarks
Plugin footprint 65% 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.90MB] [CPU: ▼29.27ms] Passed 4 tests
Analyzing server-side resources used by Bookero.pl - system rezerwacji online
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 34.91 ▼5.83 |
Dashboard /wp-admin | 3.05 ▼0.26 | 22.34 ▼23.39 |
Posts /wp-admin/edit.php | 3.05 ▼0.31 | 24.13 ▼20.02 |
Add New Post /wp-admin/post-new.php | 3.05 ▼2.84 | 24.47 ▼63.07 |
Media Library /wp-admin/upload.php | 3.05 ▼0.18 | 21.72 ▼10.58 |
Ustawienia /wp-admin/admin.php?page=bookero-settings | 3.05 | 23.76 |
Kalendarz /wp-admin/admin.php?page=bookero-panel | 3.05 | 22.38 |
Pomoc /wp-admin/admin.php?page=bookero-help | 3.05 | 22.19 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Bookero.pl - system rezerwacji online: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲83 | 14.28 ▼0.21 | 1.94 ▲0.21 | 40.60 ▼2.88 |
Dashboard /wp-admin | 2,225 ▲48 | 5.52 ▼0.03 | 82.54 ▼20.94 | 70.29 ▲25.87 |
Posts /wp-admin/edit.php | 2,127 ▲30 | 1.99 ▲0.00 | 39.45 ▲4.47 | 38.92 ▲6.10 |
Add New Post /wp-admin/post-new.php | 1,571 ▲20 | 23.33 ▲5.19 | 737.21 ▲83.07 | 59.20 ▼7.99 |
Media Library /wp-admin/upload.php | 1,424 ▲24 | 4.17 ▼0.02 | 97.60 ▲1.83 | 75.88 ▲35.98 |
Ustawienia /wp-admin/admin.php?page=bookero-settings | 902 | 2.05 | 27.40 | 42.54 |
Kalendarz /wp-admin/admin.php?page=bookero-panel | 843 | 2.14 | 26.02 | 28.28 |
Pomoc /wp-admin/admin.php?page=bookero-help | 837 | 1.99 | 26.11 | 29.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The plugin did not uninstall gracefully
- > User notice in wp-includes/functions.php+5905
Function add_menu_page was called incorrectly. The seventh parameter passed to add_menu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 6.0.0.)
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=bookero-help
- > User notice in wp-includes/functions.php+5905
Function add_menu_page was called incorrectly. The seventh parameter passed to add_menu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 6.0.0.)
SRP 0% 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 take a closer look at the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/bookeropl/views/partials/tabs.php
- > /wp-content/plugins/bookeropl/views/help.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/bookeropl/bookero-plugin.php:22
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/bookeropl/views/dashboard.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: rezerwacje, system rezerwacji online, system rezerwacji, rezerwacje online, formularz rezerwacji
bookeropl/bookero-plugin.php 85% from 13 tests
The main PHP file in "Bookero.pl - system rezerwacji online" ver. 1.4 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bookeropl.php" instead of "bookero-plugin.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
Everything looks great! No dangerous files found in this plugin451 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 75 | 115 | 451 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 14.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 3.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 4 | 13.79% |
▷ Public methods | 29 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/bookero-logo.png | 15.58KB | 1.27KB | ▼ 91.87% |