Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼7.71ms] Passed 4 tests
This is a short check of server-side resources used by Oscar Hotel Booking Engine
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 36.97 ▼11.66 |
Dashboard /wp-admin | 3.37 ▲0.02 | 46.04 ▼17.04 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 47.35 ▼5.18 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 97.74 ▲7.05 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 36.48 ▲3.05 |
Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 54 new files
Database: no new tables, 8 new options
New WordPress options |
---|
ohbe_settings |
db_upgraded |
widget_recent-comments |
widget_ohbe_search_widget |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Oscar Hotel Booking Engine
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,964 ▲218 | 15.12 ▲0.77 | 20.96 ▲19.03 | 37.12 ▼8.03 |
Dashboard /wp-admin | 2,241 ▲53 | 4.99 ▲0.13 | 109.34 ▲4.10 | 72.06 ▲34.12 |
Posts /wp-admin/edit.php | 2,126 ▲37 | 2.30 ▲0.29 | 33.92 ▼2.30 | 34.68 ▲1.92 |
Add New Post /wp-admin/post-new.php | 1,546 ▲13 | 23.08 ▲0.07 | 788.58 ▲99.72 | 37.20 ▼25.68 |
Media Library /wp-admin/upload.php | 1,423 ▲35 | 4.33 ▲0.11 | 99.32 ▼11.17 | 79.85 ▲34.59 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_ohbe_search_widget
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Please fix the following
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/oscar-hotel-booking-engine/includes/admin/help-en.php
- > /wp-content/plugins/oscar-hotel-booking-engine/includes/admin/help-es.php
- > /wp-content/plugins/oscar-hotel-booking-engine/includes/admin/help-nl.php
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/oscar-hotel-booking-engine/includes/admin/widgets/ohbe-search-widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/oscar-hotel-booking-engine/oscar-hotel-booking-engine.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/oscar-hotel-booking-engine/includes/templates/OHBE-virtual-page-creator.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/oscar-hotel-booking-engine/includes/templates/pages/booking.php:3
- > PHP Fatal error
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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Tags: Too many tags (17 tag instead of maximum 10); only the first 5 tags are used in your directory listing
oscar-hotel-booking-engine/oscar-hotel-booking-engine.php 85% from 13 tests
The main PHP script in "Oscar Hotel Booking Engine" version 4.3 is automatically included on every request by WordPress
It is important to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 163 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin3,036 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 170 | 527 | 1,472 |
PO File | 9 | 351 | 45 | 819 |
JavaScript | 4 | 29 | 43 | 298 |
SVG | 1 | 0 | 0 | 288 |
Sass | 6 | 37 | 23 | 156 |
CSS | 3 | 1 | 5 | 3 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 22.17 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 2.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 74 | |
▷ Static methods | 44 | 59.46% |
▷ Public methods | 72 | 97.30% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 2.70% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 7 | 87.50% |
▷ Class constants | 1 | 12.50% |
▷ Public constants | 1 | 100.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 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/redforts-icon.png | 0.56KB | 0.40KB | ▼ 28.07% |