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: ▲0.06MB] [CPU: ▼8.53ms] Passed 4 tests
Server-side resources used by Rezgo Online Booking
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.41 ▼0.05 | 29.56 ▼11.45 |
Dashboard /wp-admin | 3.39 ▲0.09 | 45.05 ▼4.24 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 44.92 ▲0.68 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 74.72 ▼13.54 |
Media Library /wp-admin/upload.php | 3.34 ▲0.12 | 32.92 ▼4.90 |
Server storage [IO: ▲25.09MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please try to fix the following items
- Try to limit filesystem usage to 25MB (currently using 25.09MB)
Filesystem: 596 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
rezgo_version |
rezgo_template |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Rezgo Online Booking
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,005 ▲259 | 13.63 ▼0.72 | 8.71 ▲6.55 | 36.58 ▼12.45 |
Dashboard /wp-admin | 2,296 ▲105 | 5.85 ▲1.02 | 98.87 ▼25.38 | 43.33 ▼2.34 |
Posts /wp-admin/edit.php | 2,185 ▲96 | 2.02 ▲0.03 | 36.87 ▲1.21 | 35.93 ▼0.08 |
Add New Post /wp-admin/post-new.php | 1,564 ▲45 | 23.45 ▲0.12 | 633.24 ▼59.45 | 41.91 ▼15.03 |
Media Library /wp-admin/upload.php | 1,484 ▲93 | 4.28 ▲0.11 | 95.66 ▼6.20 | 44.11 ▼4.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 8 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- rezgo_template
- rezgo_version
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means 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
Please take a closer look at the following
- 7× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/rezgo/3ds_return_url.php
- > /wp-content/plugins/rezgo/rezgo/templates/default/sidebar_reviews.php
- > /wp-content/plugins/rezgo/rezgo/php_stripe/stripe/stripe-php/build.php
- > /wp-content/plugins/rezgo/rezgo/templates/default/tips.php
- > /wp-content/plugins/rezgo/rezgo/templates/default/error.php
- > /wp-content/plugins/rezgo/rezgo/php_stripe/stripe/stripe-php/update_certs.php
- > /wp-content/plugins/rezgo/robots.php
- 321× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Trying to get property 'switch' of non-object in wp-content/plugins/rezgo/rezgo/templates/default/tips.php on line 3
- > PHP Notice
Undefined variable: site in wp-content/plugins/rezgo/rezgo/templates/default/frame_header.php on line 5
- > PHP Notice
Undefined variable: site in wp-content/plugins/rezgo/rezgo/templates/default/booking_order.php on line 10
- > PHP Fatal error
Uncaught Error: Call to a member function sendTo() on null in wp-content/plugins/rezgo/rezgo/templates/default/gift_card_print.php:4
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/rezgo/rezgo/php_stripe/stripe/stripe-php/lib/Service/Issuing/CardholderService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/rezgo/rezgo/php_stripe/stripe/stripe-php/lib/Service/SourceService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/rezgo/rezgo/php_stripe/stripe/stripe-php/lib/Terminal/Location.php:21
- > PHP Notice
Undefined variable: site in wp-content/plugins/rezgo/rezgo/templates/default/topbar_order.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/rezgo/rezgo/php_stripe/stripe/stripe-php/lib/Service/EphemeralKeyService.php:7
- > PHP Notice
Undefined variable: site in wp-content/plugins/rezgo/rezgo/templates/default/calendar_month.php on line 2
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
rezgo/rezgo.php Passed 13 tests
The primary PHP file in "Rezgo Online Booking" version 4.7.1 is used by WordPress to initiate all plugin functionality
92 characters long description:
Connect WordPress to your Rezgo account and accept online bookings directly on your website.
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
These items require your attention
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/rezgo/rezgo/php_stripe/stripe/stripe-php/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 20 | 0 | 29 | 53,177 |
PHP | 333 | 8,148 | 10,381 | 32,386 |
CSS | 36 | 5,130 | 740 | 27,864 |
JavaScript | 31 | 1,375 | 1,441 | 8,846 |
Markdown | 3 | 635 | 0 | 944 |
HTML | 11 | 18 | 0 | 595 |
JSON | 13 | 0 | 0 | 162 |
XML | 1 | 0 | 0 | 31 |
make | 1 | 9 | 0 | 27 |
YAML | 1 | 0 | 0 | 3 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please tend to the following items
- Please reduce cyclomatic complexity of methods to less than 100 (currently 136)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 6.85 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 819.00 |
Average method complexity | 2.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 136.00 |
Code structure | ||
---|---|---|
Namespaces | 22 | |
Interfaces | 6 | |
Traits | 7 | |
Classes | 200 | |
▷ Abstract classes | 10 | 5.00% |
▷ Concrete classes | 190 | 95.00% |
▷ Final classes | 0 | 0.00% |
Methods | 843 | |
▷ Static methods | 157 | 18.62% |
▷ Public methods | 778 | 92.29% |
▷ Protected methods | 28 | 3.32% |
▷ Private methods | 37 | 4.39% |
Functions | 58 | |
▷ Named functions | 50 | 86.21% |
▷ Anonymous functions | 8 | 13.79% |
Constants | 729 | |
▷ Global constants | 56 | 7.68% |
▷ Class constants | 673 | 92.32% |
▷ Public constants | 673 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
73 PNG files occupy 3.25MB with 0.83MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
cards/box/08_title.png | 1.20KB | 1.20KB | 0.00% |
cards/adventure/06_image.png | 187.56KB | 189.26KB | 0.00% |
rezgo/templates/default/img/ticketguardian/TOURS-curv-logo.png | 3.49KB | 1.84KB | ▼ 47.16% |
rezgo/templates/default/img/ticketguardian/TSH-IC-7.png | 1.20KB | 0.61KB | ▼ 49.22% |
cards/ornament/01_title.png | 5.50KB | 3.74KB | ▼ 31.94% |