Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▲2.23ms] Passed 4 tests
An overview of server-side resources used by Astro Booking Engine
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 57.82 ▲12.46 |
Dashboard /wp-admin | 3.39 ▲0.05 | 58.40 ▼4.72 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 60.80 ▲10.90 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 92.65 ▼9.72 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 55.19 ▲21.17 |
Booking engine /wp-admin/admin.php?page=astro-booking-engine | 3.72 | 70.04 |
Server storage [IO: ▲3.50MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 426 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_astro_be |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Astro Booking Engine
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,958 ▲212 | 13.88 ▼0.70 | 10.77 ▲8.77 | 43.71 ▼0.36 |
Dashboard /wp-admin | 2,243 ▲66 | 5.96 ▲0.27 | 95.56 ▲4.86 | 66.28 ▲20.98 |
Posts /wp-admin/edit.php | 2,168 ▲68 | 2.39 ▲0.39 | 40.72 ▲5.52 | 34.03 ▼6.39 |
Add New Post /wp-admin/post-new.php | 1,739 ▲213 | 22.88 ▲5.31 | 684.00 ▲33.36 | 40.43 ▼11.61 |
Media Library /wp-admin/upload.php | 1,452 ▲58 | 4.48 ▲0.24 | 94.40 ▼5.08 | 85.87 ▲42.71 |
Booking engine /wp-admin/admin.php?page=astro-booking-engine | 5,654 | 2.19 | 36.69 | 44.28 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- widget_astro_be
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 15× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/astro-booking-engine/includes/tabs/tab-settings-verticalbooking.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/astro-booking-engine/templates/iperbooking.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/astro-booking-engine/templates/passepartout.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/astro-booking-engine/includes/tabs/tab-settings.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/astro-booking-engine/includes/classes/class-astro-booking-engine-widget.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/astro-booking-engine/templates/simplebooking.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/astro-booking-engine/astro-booking-engine-admin.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/astro-booking-engine/templates/verticalbooking.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/astro-booking-engine/includes/tabs/tab-settings-passepartout.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/astro-booking-engine/includes/tabs/tab-layout.php:2
- > 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 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: hotel widget, booking engine, hotel booking engine, hotel booking, reservation widget...
astro-booking-engine/astro-booking-engine.php 85% from 13 tests
The primary PHP file in "Astro Booking Engine" version 1.2.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Requires PHP: Required version must be the same as the one declared in readme.txt ("7.0" instead of "7.2")
- Requires at least: Required version must be the same as the one declared in readme.txt ("6.0.1" instead of "5.2")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin48,309 lines of code in 109 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 83 | 1,470 | 2,230 | 43,288 |
PHP | 18 | 404 | 179 | 4,168 |
PO File | 2 | 341 | 547 | 525 |
JavaScript | 6 | 113 | 99 | 328 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 2.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 21 | |
▷ Named functions | 21 | 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 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
312 PNG files occupy 0.99MB with 0.37MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendors/jquery-ui-themes/themes/start/images/ui-icons_fcd113_256x240.png | 4.56KB | 4.18KB | ▼ 8.31% |
vendors/jquery-ui-themes/themes/trontastic/images/ui-icons_ffffff_256x240.png | 6.39KB | 4.18KB | ▼ 34.52% |
vendors/jquery-ui-themes/themes/humanity/images/ui-bg_highlight-hard_75_f5f5b5_1x100.png | 0.42KB | 0.16KB | ▼ 62.82% |
vendors/jquery-ui-themes/themes/eggplant/images/ui-icons_8d78a5_256x240.png | 4.56KB | 4.18KB | ▼ 8.31% |
vendors/jquery-ui-themes/themes/blitzer/images/ui-bg_glass_55_fbf8ee_1x400.png | 0.44KB | 0.13KB | ▼ 70.00% |