Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲8.58MB] [CPU: ▲63.38ms] 75% from 4 tests
Server-side resources used by VikBooking Hotel Booking Engine & PMS
It is recommended to improve the following
- Extra RAM: The extra memory usage must be under 5MB (currently 8.58MB on /wp-admin/upload.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.07 ▲4.60 | 106.13 ▲63.71 |
Dashboard /wp-admin | 13.36 ▲10.01 | 117.26 ▲57.20 |
Posts /wp-admin/edit.php | 13.22 ▲9.86 | 127.33 ▲74.66 |
Add New Post /wp-admin/post-new.php | 15.80 ▲9.91 | 167.38 ▲61.42 |
Media Library /wp-admin/upload.php | 13.16 ▲9.93 | 106.86 ▲71.17 |
Server storage [IO: ▲22.34MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 1,421 new files
Database: 44 new tables, 14 new options
New tables |
---|
wp_vikbooking_greview_service |
wp_vikbooking_optionals |
wp_vikbooking_restrictions |
wp_vikbooking_translations |
wp_vikbooking_reminders |
wp_vikbooking_dispcost |
wp_vikbooking_seasons |
wp_vikbooking_categories |
wp_vikbooking_tmplock |
wp_vikbooking_operators |
... |
New WordPress options |
---|
vikbooking_license_hash |
widget_recent-comments |
theysaidso_admin_options |
vikbooking_license_expdate |
vikbooking_hide_vcmad |
widget_recent-posts |
vikbooking_changelog |
widget_mod_vikbooking_horizontalsearch |
widget_theysaidso_widget |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
VikBooking Hotel Booking Engine & PMS: 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,086 ▲324 | 14.78 ▲0.44 | 9.08 ▲6.86 | 35.82 ▼7.95 |
Dashboard /wp-admin | 2,397 ▲223 | 5.69 ▲0.05 | 118.10 ▲16.70 | 45.04 ▲2.10 |
Posts /wp-admin/edit.php | 2,202 ▲102 | 2.66 ▲0.66 | 44.97 ▲6.88 | 31.24 ▼4.67 |
Add New Post /wp-admin/post-new.php | 6,253 ▲4,716 | 23.66 ▲0.47 | 970.87 ▲295.42 | 36.12 ▼18.87 |
Media Library /wp-admin/upload.php | 1,491 ▲91 | 5.12 ▲0.91 | 112.56 ▲3.15 | 46.82 ▲1.67 |
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
- The uninstall procedure has failed, leaving 8 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_mod_vikbooking_horizontalsearch
- widget_mod_vikbooking_currencyconverter
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% 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)
Good news, no errors were detected
SRP 50% 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 fix the following
- 612× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/vikbooking/admin/views/editbusy/tmpl/default.php
- > /wp-content/plugins/vikbooking/admin/helpers/widgets/forecast.php
- > /wp-content/plugins/vikbooking/admin/layouts/sidepanel/multitasking.php
- > /wp-content/plugins/vikbooking/admin/helpers/src/notification/display/reminder.php
- > /wp-content/plugins/vikbooking/admin/views/gotopro/view.html.php
- > /wp-content/plugins/vikbooking/libraries/html/rss/config.php
- > /wp-content/plugins/vikbooking/admin/helpers/src/notification/displayer.php
- > /wp-content/plugins/vikbooking/admin/helpers/src/factory/aware.php
- > /wp-content/plugins/vikbooking/libraries/html/form/control/close.php
- > /wp-content/plugins/vikbooking/libraries/html/changelog/section/close.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Tags: You are using too many tags: 13 tag instead of maximum 10
vikbooking/vikbooking.php Passed 13 tests
This is the main PHP file of "VikBooking Hotel Booking Engine & PMS" version 1.6.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
55 characters long description:
Certified Booking Engine for Hotels and Accommodations.
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected313,935 lines of code in 780 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 655 | 22,625 | 68,994 | 223,486 |
CSS | 41 | 430 | 501 | 36,872 |
JavaScript | 34 | 3,647 | 3,305 | 19,513 |
PO File | 2 | 5,490 | 6,282 | 15,625 |
SVG | 4 | 0 | 8 | 8,380 |
XSLT | 1 | 108 | 59 | 3,164 |
XSD | 4 | 2 | 4 | 2,719 |
SQL | 16 | 156 | 42 | 2,260 |
Markdown | 4 | 716 | 0 | 1,224 |
XML | 16 | 31 | 2 | 638 |
JSON | 1 | 0 | 0 | 52 |
HTML | 2 | 0 | 0 | 2 |
PHP code 0% from 2 tests
A short review of cyclomatic complexity and code structure
Please tend to the following items
- Class cyclomatic complexity should be reduced to less than 1000 (currently 4,415)
- Method cyclomatic complexity should be reduced to less than 100 (currently 2,239)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 64.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4,415.00 |
Average method complexity | 8.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2,239.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 11 | |
Traits | 5 | |
Classes | 463 | |
▷ Abstract classes | 57 | 12.31% |
▷ Concrete classes | 406 | 87.69% |
▷ Final classes | 52 | 12.81% |
Methods | 4,113 | |
▷ Static methods | 883 | 21.47% |
▷ Public methods | 3,242 | 78.82% |
▷ Protected methods | 695 | 16.90% |
▷ Private methods | 176 | 4.28% |
Functions | 391 | |
▷ Named functions | 5 | 1.28% |
▷ Anonymous functions | 386 | 98.72% |
Constants | 241 | |
▷ Global constants | 187 | 77.59% |
▷ Class constants | 54 | 22.41% |
▷ Public constants | 54 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
547 PNG files occupy 3.05MB with 0.74MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/resources/countries/MNG.png | 0.39KB | 0.39KB | ▼ 1.74% |
admin/resources/countries/CHN.png | 0.31KB | 0.30KB | ▼ 5.61% |
modules/mod_vikbooking_horizontalsearch/images/arrow.png | 47.02KB | 0.18KB | ▼ 99.61% |
admin/resources/countries/VUT.png | 0.58KB | 0.58KB | 0.00% |
admin/resources/countries/ROM.png | 0.15KB | 0.13KB | ▼ 14.47% |