Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.17MB] [CPU: ▼1.45ms] Passed 4 tests
An overview of server-side resources used by Bookingenius
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 42.13 ▼1.31 |
Dashboard /wp-admin | 3.47 ▲0.17 | 48.03 ▼2.84 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 48.16 ▲0.69 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.17 | 95.99 ▼2.35 |
Media Library /wp-admin/upload.php | 3.39 ▲0.17 | 37.96 ▲6.01 |
Server storage [IO: ▲3.07MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 106 new files
Database: no new tables, 21 new options
New WordPress options |
---|
form_styles |
bookingenius_form_labels |
channel_3_label |
bookingenius_form_orientation |
multi_room_styles |
widget_recent-posts |
use_theme_calendar_skin |
db_upgraded |
bookingenius_icon_pos |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
Bookingenius: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲82 | 13.22 ▼1.19 | 2.83 ▲0.50 | 44.33 ▼0.71 |
Dashboard /wp-admin | 2,221 ▲30 | 5.80 ▼0.10 | 99.72 ▼3.46 | 39.46 ▼1.87 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 2.01 ▲0.01 | 40.02 ▲2.71 | 35.05 ▼3.69 |
Add New Post /wp-admin/post-new.php | 1,543 ▲29 | 23.18 ▲5.45 | 664.00 ▼10.28 | 61.95 ▲4.32 |
Media Library /wp-admin/upload.php | 1,409 ▲21 | 4.23 ▲0.02 | 95.20 ▼16.56 | 42.57 ▼0.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% 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 0% 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
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/bookingenius-booking-engine/bookingenius-booking-engine.php
- 13× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/bookingenius-booking-engine/config/plugin.php:164
- > PHP Fatal error
Uncaught Error: Call to a member function options() on null in wp-content/plugins/bookingenius-booking-engine/views/form.php:2
- > PHP Fatal error
Uncaught Error: Class 'Begenius\\Plugin' not found in wp-content/plugins/bookingenius-booking-engine/Bookingenius/class-bookingengine.php:12
- > PHP Notice
Undefined variable: plugin in wp-content/plugins/bookingenius-booking-engine/views/form.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'Begenius\\DynamicCss' not found in wp-content/plugins/bookingenius-booking-engine/Bookingenius/class-defaulttheme.php:7
- > PHP Fatal error
Uncaught Error: Class 'Begenius\\DynamicCss' not found in wp-content/plugins/bookingenius-booking-engine/Bookingenius/class-calendarskin.php:7
- > PHP Fatal error
Uncaught Error: Class 'Begenius\\PluginOption' not found in wp-content/plugins/bookingenius-booking-engine/vendor/Begenius/class-dropdownoption.php:7
- > PHP Fatal error
Uncaught Error: Class 'Begenius\\Serializer' not found in wp-content/plugins/bookingenius-booking-engine/vendor/Begenius/class-xmlserializer.php:7
- > PHP Fatal error
Uncaught Error: Class 'Begenius\\PluginOption' not found in wp-content/plugins/bookingenius-booking-engine/vendor/Begenius/class-checkboxoption.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/bookingenius-booking-engine/views/admin-page.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% 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:
- Donate link: Invalid url: "none"
- Screenshots: Screenshot #1 (http://comments.reputationgenius.it/bg-reputationgenius/bg-reputationgenius-screenshot-1.jpg) image required
bookingenius-booking-engine/bookingenius-booking-engine.php Passed 13 tests
"Bookingenius" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
51 characters long description:
Integration widget for BookinGenius Booking Engine.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin13,442 lines of code in 64 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 15 | 2 | 77 | 5,955 |
SVG | 1 | 0 | 0 | 2,671 |
JavaScript | 16 | 367 | 535 | 2,340 |
PHP | 26 | 298 | 69 | 1,982 |
PO File | 6 | 177 | 177 | 494 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 4.19 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 4 | 19.05% |
▷ Concrete classes | 17 | 80.95% |
▷ Final classes | 0 | 0.00% |
Methods | 66 | |
▷ Static methods | 12 | 18.18% |
▷ Public methods | 57 | 86.36% |
▷ Protected methods | 7 | 10.61% |
▷ Private methods | 2 | 3.03% |
Functions | 13 | |
▷ Named functions | 11 | 84.62% |
▷ Anonymous functions | 2 | 15.38% |
Constants | 12 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 12 | 100.00% |
▷ Public constants | 12 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/flags/en.png | 4.33KB | 2.13KB | ▼ 50.70% |
assets/img/flags/fr.png | 2.85KB | 2.03KB | ▼ 28.97% |
assets/img/flags/pt.png | 3.77KB | 1.93KB | ▼ 48.82% |
assets/img/flags/de.png | 3.22KB | 1.86KB | ▼ 42.23% |
assets/img/flags/it.png | 3.19KB | 1.98KB | ▼ 37.78% |