Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/easync-booking/easync.php+878
session_start(): A session had already been started - ignoring
Server metrics [RAM: ▼1.95MB] [CPU: ▼44.08ms] Passed 4 tests
This is a short check of server-side resources used by Free Booking Plugin for Hotels, Restaurant and Car Rental - eaSYNC
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.04 ▼1.42 | 12.88 ▼28.51 |
Dashboard /wp-admin | 2.06 ▼1.25 | 15.40 ▼35.04 |
Posts /wp-admin/edit.php | 2.06 ▼1.30 | 16.08 ▼30.57 |
Add New Post /wp-admin/post-new.php | 2.06 ▼3.83 | 14.72 ▼82.18 |
Media Library /wp-admin/upload.php | 2.06 ▼1.17 | 21.98 ▼9.40 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 2.06 | 15.89 |
Server storage [IO: ▲12.68MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 1,003 new files
Database: 7 new tables, 10 new options
New tables |
---|
wp_sync_restau_tables |
wp_sync_restau_entries |
wp_sync_payments |
wp_sync_hotel_entries |
wp_sync_cancel_requests |
wp_sync_rent_car_entries |
wp_sync_options |
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
fs_debug_mode |
fs_accounts |
db_upgraded |
fs_active_plugins |
jal_db_version |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Free Booking Plugin for Hotels, Restaurant and Car Rental - eaSYNC
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,950 ▲215 | 13.64 ▼1.11 | 6.51 ▲4.46 | 28.19 ▼19.50 |
Dashboard /wp-admin | 2,235 ▲44 | 5.86 ▲0.95 | 113.63 ▲1.01 | 86.67 ▲34.75 |
Posts /wp-admin/edit.php | 2,145 ▲56 | 2.20 ▲0.19 | 44.18 ▲7.78 | 36.00 ▼0.46 |
Add New Post /wp-admin/post-new.php | 1,544 ▲11 | 21.89 ▼1.27 | 748.51 ▲161.54 | 52.87 ▲2.06 |
Media Library /wp-admin/upload.php | 1,429 ▲38 | 4.21 ▲0.02 | 105.14 ▲10.79 | 88.21 ▲47.64 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,109 | 1.91 | 32.76 | 26.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/easync-booking/easync.php+878
session_start(): A session had already been started - ignoring
- This plugin does not fully uninstall, leaving 7 tables in the database
- wp_sync_payments
- wp_sync_options
- wp_sync_cancel_requests
- wp_sync_restau_entries
- wp_sync_rent_car_entries
- wp_sync_restau_tables
- wp_sync_hotel_entries
- This plugin did not uninstall successfully, leaving 10 options in the database
- jal_db_version
- fs_active_plugins
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- fs_debug_mode
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- fs_accounts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=freemius
- > Notice in wp-content/plugins/easync-booking/easync.php+878
session_start(): A session had already been started - ignoring
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=freemius
- > Notice in wp-content/plugins/easync-booking/easync.php+5169
Undefined offset: 0
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=freemius
- > Notice in wp-content/plugins/easync-booking/easync.php+5169
Trying to get property 'option_value' of non-object
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/easync-booking/forms/car-rental/search-car.php
- 355× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/easync-booking/lib/CreditNote.php:40
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/easync-booking/lib/ApplePayDomain.php:14
- > PHP Fatal error
Uncaught Error: Class 'net\\authorize\\api\\controller\\base\\ApiOperationBase' not found in wp-content/plugins/easync-booking/forms/sdk-php-master/lib/net/authorize/api/controller/SecurePaymentContainerController.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/easync-booking/lib/Service/SourceService.php:7
- > PHP Fatal error
Uncaught Error: Class 'net\\authorize\\api\\contract\\v1\\ProfileTransAmountType' not found in wp-content/plugins/easync-booking/forms/sdk-php-master/lib/net/authorize/api/contract/v1/ProfileTransRefundType.php:11
- > PHP Fatal error
Uncaught Error: Class 'net\\authorize\\api\\contract\\v1\\ANetApiResponseType' not found in wp-content/plugins/easync-booking/forms/sdk-php-master/lib/net/authorize/api/contract/v1/GetCustomerProfileResponse.php:8
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/easync-booking/lib/Customer.php:41
- > PHP Fatal error
Uncaught Error: Class 'net\\authorize\\api\\controller\\base\\ApiOperationBase' not found in wp-content/plugins/easync-booking/forms/sdk-php-master/lib/net/authorize/api/controller/ARBGetSubscriptionStatusController.php:7
- > PHP Fatal error
Uncaught Error: Class 'net\\authorize\\api\\controller\\base\\ApiOperationBase' not found in wp-content/plugins/easync-booking/forms/sdk-php-master/lib/net/authorize/api/controller/DeleteCustomerShippingAddressController.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/easync-booking/lib/BitcoinTransaction.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 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
Attributes that need to be fixed:
- Screenshots: Add descriptions for screenshots #5, #6, #7 in easync-booking/assets to your readme.txt
- Requires php: Invalid version format
easync-booking/easync.php 92% from 13 tests
The main PHP script in "Free Booking Plugin for Hotels, Restaurant and Car Rental - eaSYNC" version 1.3.8 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("easync-booking.php" instead of "easync.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected141,525 lines of code in 931 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 644 | 16,161 | 40,922 | 79,870 |
JavaScript | 27 | 2,873 | 18,303 | 40,890 |
YAML | 220 | 1 | 0 | 8,880 |
CSS | 30 | 1,076 | 503 | 7,449 |
XSD | 1 | 46 | 889 | 3,974 |
Markdown | 2 | 111 | 0 | 349 |
JSON | 4 | 1 | 0 | 74 |
XML | 1 | 9 | 3 | 37 |
SVG | 2 | 0 | 0 | 2 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please fix the following
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 16.24 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 2.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 40 | |
Interfaces | 10 | |
Traits | 7 | |
Classes | 526 | |
▷ Abstract classes | 13 | 2.47% |
▷ Concrete classes | 513 | 97.53% |
▷ Final classes | 0 | 0.00% |
Methods | 4,196 | |
▷ Static methods | 359 | 8.56% |
▷ Public methods | 3,682 | 87.75% |
▷ Protected methods | 99 | 2.36% |
▷ Private methods | 415 | 9.89% |
Functions | 418 | |
▷ Named functions | 233 | 55.74% |
▷ Anonymous functions | 185 | 44.26% |
Constants | 919 | |
▷ Global constants | 101 | 10.99% |
▷ Class constants | 818 | 89.01% |
▷ Public constants | 818 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
24 PNG files occupy 0.09MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-icons_777620_256x240.png | 4.57KB | 4.18KB | ▼ 8.43% |
css/images/ui-icons_555555_256x240.png | 6.91KB | 4.18KB | ▼ 39.47% |
images/sort_asc.png | 0.40KB | 0.24KB | ▼ 40.05% |
images/sunrise.png | 1.13KB | 0.89KB | ▼ 21.81% |
images/sort_desc.png | 0.38KB | 0.22KB | ▼ 42.53% |