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
Installer ran successfully
Server metrics [RAM: ▲0.63MB] [CPU: ▼5.74ms] Passed 4 tests
Server-side resources used by TIM: Travel Information Manager
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 20.41 ▼16.22 |
Dashboard /wp-admin | 4.12 ▲0.81 | 49.92 ▲2.32 |
Posts /wp-admin/edit.php | 4.17 ▲0.81 | 52.37 ▲8.07 |
Add New Post /wp-admin/post-new.php | 6.72 ▲0.83 | 82.46 ▼10.87 |
Media Library /wp-admin/upload.php | 4.04 ▲0.81 | 36.91 ▲1.80 |
Server storage [IO: ▲5.63MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 345 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for TIM: Travel Information Manager
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,201 ▲430 | 14.48 ▲0.09 | 13.03 ▲11.34 | 44.98 ▲4.30 |
Dashboard /wp-admin | 2,296 ▲105 | 4.96 ▼0.92 | 104.76 ▲3.56 | 75.46 ▲36.84 |
Posts /wp-admin/edit.php | 2,194 ▲105 | 2.24 ▲0.20 | 37.32 ▲1.80 | 34.79 ▼1.19 |
Add New Post /wp-admin/post-new.php | 1,592 ▲61 | 17.48 ▼1.07 | 760.46 ▲116.87 | 35.63 ▼23.34 |
Media Library /wp-admin/upload.php | 1,484 ▲96 | 4.37 ▲0.19 | 98.50 ▲0.16 | 73.02 ▲29.63 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- 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 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/tim-travel-information-manager/public/templates/checkout/payment-gateways/paypal.php
- 209× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: item in wp-content/plugins/tim-travel-information-manager/public/layouts/travelo/tours/detail.php on line 4
- > PHP Notice
Trying to get property 'price_list_id' of non-object in wp-content/plugins/tim-travel-information-manager/public/templates/cart/tim-cart-detail.php on line 12
- > PHP Notice
Undefined variable: item in wp-content/plugins/tim-travel-information-manager/public/layouts/argox/hotels/detail.php on line 11
- > PHP Fatal error
Uncaught Error: Call to a member function get_miscellaneous() on null in wp-content/plugins/tim-travel-information-manager/public/templates/hotels/modals/tim-hotel-detail-modal.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/tim-travel-information-manager/admin/partials/_general-options.php:28
- > PHP Notice
Undefined index: response in wp-content/plugins/tim-travel-information-manager/public/pages/payment/bac_process.php on line 3
- > PHP Warning
Use of undefined constant TIM_TRAVEL_MANAGER_POST_TYPE_PACKAGES - assumed 'TIM_TRAVEL_MANAGER_POST_TYPE_PACKAGES' (this will throw an Error in a future version of PHP) in wp-content/plugins/tim-travel-information-manager/public/templates/packages/tim-package-detail.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/tim-travel-information-manager/admin/partials/_notification-options.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/tim-travel-information-manager/public/layouts/travelo/tours/detail.php:38
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/tim-travel-information-manager/public/templates/checkout/payment-gateways/paypal.php on line 14
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were 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
5 plugin tags: vacation packages, hotels, transportation, travel, tours
tim-travel-information-manager/tim-travel-information-manager.php Passed 13 tests
This is the main PHP file of "TIM: Travel Information Manager" version 1.5.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
38 characters long description:
Tim plugin. Travel Information Manager
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected26,898 lines of code in 231 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 95 | 3,218 | 1,439 | 13,088 |
CSS | 27 | 153 | 836 | 4,172 |
JavaScript | 95 | 1,165 | 592 | 3,930 |
LESS | 8 | 995 | 926 | 3,412 |
PO File | 2 | 742 | 1,944 | 1,556 |
SVG | 3 | 0 | 1 | 723 |
JSX | 1 | 0 | 2 | 17 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 49.17 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 145.00 |
Average method complexity | 3.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 47.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 201 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 168 | 83.58% |
▷ Protected methods | 19 | 9.45% |
▷ Private methods | 14 | 6.97% |
Functions | 19 | |
▷ Named functions | 17 | 89.47% |
▷ Anonymous functions | 2 | 10.53% |
Constants | 37 | |
▷ Global constants | 37 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
49 PNG files occupy 0.44MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/libs/datepicker/images/ui-icons_004276_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
public/layouts/argox/screenshot.png | 45.00KB | 20.10KB | ▼ 55.34% |
public/img/bcr-payments.png | 5.54KB | 3.80KB | ▼ 31.28% |
public/css/img/list.png | 0.17KB | 0.10KB | ▼ 41.01% |
public/libs/fancybox/fancybox_overlay.png | 0.98KB | 0.09KB | ▼ 90.43% |