Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.65MB] [CPU: ▲0.91ms] Passed 4 tests
Analyzing server-side resources used by Turisbook Booking System
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.15 ▲0.69 | 43.45 ▲5.56 |
Dashboard /wp-admin | 3.98 ▲0.68 | 52.38 ▲8.16 |
Posts /wp-admin/edit.php | 4.03 ▲0.68 | 47.75 ▲3.68 |
Add New Post /wp-admin/post-new.php | 6.54 ▲0.66 | 83.41 ▼10.01 |
Media Library /wp-admin/upload.php | 3.84 ▲0.61 | 39.49 ▲4.42 |
Turisbook Booking System /wp-admin/tools.php?page=turisbook-booking-system | 3.84 | 37.50 |
Server storage [IO: ▲1.17MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 112 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Turisbook Booking System: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,974 ▲213 | 13.88 ▼0.53 | 18.52 ▲16.84 | 41.19 ▲2.07 |
Dashboard /wp-admin | 2,226 ▲49 | 5.58 ▲0.04 | 84.31 ▼4.27 | 39.76 ▼0.83 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 2.04 ▲0.04 | 35.14 ▼0.97 | 32.01 ▼1.68 |
Add New Post /wp-admin/post-new.php | 1,546 ▲18 | 23.10 ▲0.01 | 671.15 ▼5.55 | 65.22 ▲7.84 |
Media Library /wp-admin/upload.php | 1,431 ▲34 | 4.19 ▲0.00 | 97.36 ▼0.76 | 43.94 ▼5.80 |
Turisbook Booking System /wp-admin/tools.php?page=turisbook-booking-system | 1,036 | 2.04 | 25.52 | 27.01 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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 take a closer look at the following
- 6× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/turisbook-booking-system/public/partials/turisbook-booking-system-grid.php
- > /wp-content/plugins/turisbook-booking-system/public/partials/turisbook-booking-system-seasons.php
- > /wp-content/plugins/turisbook-booking-system/public/partials/turisbook-booking-system-amenities.php
- > /wp-content/plugins/turisbook-booking-system/public/partials/turisbook-booking-system-resume-body.php
- > /wp-content/plugins/turisbook-booking-system/public/partials/turisbook-booking-system-room-map.php
- > /wp-content/plugins/turisbook-booking-system/public/partials/turisbook-booking-system-public-display.php
- 74× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/turisbook-booking-system/public/partials/turisbook-booking-system-resume-body.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/turisbook-booking-system/public/partials/payments/turisbook-booking-system-cc.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/turisbook-booking-system/public/partials/turisbook-calendar.php:68
- > PHP Notice
Undefined variable: selected in wp-content/plugins/turisbook-booking-system/public/partials/payments/turisbook-booking-system-cc.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/turisbook-booking-system/public/partials/turisbook-booking-system-confirmation.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/turisbook-booking-system/public/shortcodes/turisbook-booking-system-map.php:26
- > PHP Notice
Undefined variable: units in wp-content/plugins/turisbook-booking-system/public/partials/turisbook-booking-system-grid.php on line 9
- > PHP Notice
Undefined variable: prev_year in wp-content/plugins/turisbook-booking-system/public/partials/turisbook-calendar.php on line 66
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/turisbook-booking-system/public/partials/taxonomy-turisbook_amenity.php:2
- > PHP Warning
include(TURISBOOK_PUBLIC_PATH/partials/turisbook-booking-system-resume-body-price.php): failed to open stream: No such file or directory in wp-content/plugins/turisbook-booking-system/public/partials/turisbook-booking-system-resume-body.php on line 45
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: turisbook, booking
turisbook-booking-system/turisbook-booking-system.php Passed 13 tests
The main PHP file in "Turisbook Booking System" ver. 1.2.9 adds more information about the plugin and also serves as the entry point for this plugin
56 characters long description:
Connect your webiste with the Turisbook.com platform API
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin21,527 lines of code in 96 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 14 | 384 | 102 | 11,312 |
JavaScript | 20 | 716 | 324 | 5,514 |
PHP | 60 | 907 | 621 | 3,866 |
PO File | 2 | 389 | 474 | 835 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 16.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 121.00 |
Average method complexity | 2.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 73 | |
▷ Static methods | 8 | 10.96% |
▷ Public methods | 59 | 80.82% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 19.18% |
Functions | 50 | |
▷ Named functions | 49 | 98.00% |
▷ Anonymous functions | 1 | 2.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/poweredby_logo.png | 1.80KB | 1.62KB | ▼ 9.73% |
public/img/visa.png | 23.69KB | 8.65KB | ▼ 63.47% |
public/img/mastercard.png | 28.63KB | 10.54KB | ▼ 63.19% |