Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.43MB] [CPU: ▼6.82ms] Passed 4 tests
A check of server-side resources used by Cab fare calculator
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.84 ▲0.38 | 42.66 ▲3.31 |
Dashboard /wp-admin | 3.81 ▲0.50 | 50.71 ▼4.89 |
Posts /wp-admin/edit.php | 3.82 ▲0.47 | 49.63 ▼3.14 |
Add New Post /wp-admin/post-new.php | 6.38 ▲0.49 | 85.63 ▼22.55 |
Media Library /wp-admin/upload.php | 3.60 ▲0.38 | 42.88 ▲9.77 |
Settings /wp-admin/admin.php?page=configs | 3.59 | 34.93 |
Payment Methods /wp-admin/admin.php?page=paymentmethods | 3.59 | 34.82 |
Orders /wp-admin/admin.php?page=orders | 3.66 | 33.41 |
Taxi Booking /wp-admin/admin.php?page=dashboard | 3.61 | 34.76 |
Vehicles /wp-admin/admin.php?page=cars | 3.60 | 36.59 |
Server storage [IO: ▲2.82MB] [DB: ▲0.03MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 190 new files
Database: 9 new tables, 9 new options
New tables |
---|
wp_tblight_orders |
wp_tblight_order_car_rel |
wp_tblight_countries |
wp_tblight_payment_plg_cash |
wp_tblight_configs |
wp_tblight_payment_plg_paypal |
wp_tblight_cars |
wp_tblight_paymentmethods |
wp_tblight_currencies |
New WordPress options |
---|
tblight_installed_at |
can_compress_scripts |
theysaidso_admin_options |
tblight_plugin_version |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
tblight_db_version |
Browser metrics Passed 4 tests
Checking browser requirements for Cab fare calculator
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,994 ▲259 | 15.32 ▲0.76 | 1.82 ▼0.35 | 42.48 ▲0.00 |
Dashboard /wp-admin | 2,400 ▲212 | 6.93 ▲1.99 | 138.10 ▲37.36 | 43.74 ▼5.24 |
Posts /wp-admin/edit.php | 2,309 ▲220 | 3.85 ▲1.82 | 55.62 ▲14.67 | 31.62 ▼4.91 |
Add New Post /wp-admin/post-new.php | 1,593 ▲60 | 24.62 ▲1.58 | 672.84 ▼18.73 | 35.80 ▼18.05 |
Media Library /wp-admin/upload.php | 1,443 ▲55 | 4.70 ▲0.54 | 86.61 ▼21.83 | 47.11 ▼0.58 |
Settings /wp-admin/admin.php?page=configs | 1,198 | 3.61 | 54.72 | 31.97 |
Payment Methods /wp-admin/admin.php?page=paymentmethods | 1,235 | 3.62 | 46.58 | 25.05 |
Orders /wp-admin/admin.php?page=orders | 1,469 | 3.78 | 44.96 | 27.27 |
Taxi Booking /wp-admin/admin.php?page=dashboard | 1,892 | 11.05 | 69.04 | 41.97 |
Vehicles /wp-admin/admin.php?page=cars | 1,345 | 3.59 | 54.54 | 26.84 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=cars
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
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 fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/cab-fare-calculator/admin/views/paymentmethods/plugins/paypal.php
- > /wp-content/plugins/cab-fare-calculator/admin/views/paymentmethods/plugins/stripe.php
- 80× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/cab-fare-calculator/admin/views/dashboard.php:1
- > PHP Warning
Use of undefined constant TBLIGHT_PLUGIN_PATH - assumed 'TBLIGHT_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/cab-fare-calculator/admin/views/orders/edit.php on line 2
- > PHP Warning
require_once(TBLIGHT_PLUGIN_PATHadmin/models/paymentmethod.php): failed to open stream: No such file or directory in wp-content/plugins/cab-fare-calculator/admin/controllers/paymentmethod.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/cab-fare-calculator/admin/views/configs/edit_terms.php:1
- > PHP Warning
Use of undefined constant TBLIGHT_PLUGIN_PATH - assumed 'TBLIGHT_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/cab-fare-calculator/Shortcode.php on line 3
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/cab-fare-calculator/Admin.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'BookingHelper' not found in wp-content/plugins/cab-fare-calculator/admin/views/cars/details.php:3
- > PHP Fatal error
require_once(): Failed opening required 'TBLIGHT_PLUGIN_PATHclasses/company.helper.php' (include_path='.:/usr/share/php') in wp-content/plugins/cab-fare-calculator/admin/views/orders/edit.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/cab-fare-calculator/admin/views/configs/edit_general.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function current_time() in wp-content/plugins/cab-fare-calculator/views/tblight/default_step1.php:9
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=dashboard
- > Javascript (severe) in unknown
/wp-content/plugins/cab-fare-calculator/admin/js/lord-icon.js?ver=1691415088 1:262319 Uncaught DOMException: Failed to execute 'define' on 'CustomElementRegist…rd-icon" has already been used with this registry
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: shuttle booking, taxi booking, limo booking form, airport transfers, transfers booking...
cab-fare-calculator/tblight.php 92% from 13 tests
The main file in "Cab fare calculator" v. 1.1.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("cab-fare-calculator.php" instead of "tblight.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected17,188 lines of code in 114 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 57 | 1,286 | 728 | 7,461 |
CSS | 12 | 1,086 | 35 | 4,484 |
JavaScript | 23 | 378 | 241 | 3,895 |
SVG | 1 | 0 | 0 | 655 |
SQL | 12 | 0 | 0 | 599 |
PO File | 1 | 31 | 34 | 77 |
HTML | 1 | 1 | 0 | 9 |
JSON | 6 | 0 | 0 | 6 |
Markdown | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 24.62 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 143.00 |
Average method complexity | 3.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 21 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 191 | |
▷ Static methods | 58 | 30.37% |
▷ Public methods | 180 | 94.24% |
▷ Protected methods | 10 | 5.24% |
▷ Private methods | 1 | 0.52% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 9 | 81.82% |
▷ Class constants | 2 | 18.18% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
32 PNG files occupy 0.09MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/css/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
admin/images/disabled.png | 0.18KB | 0.21KB | 0.00% |
admin/images/drivenot-logo.png | 5.09KB | 2.58KB | ▼ 49.19% |
admin/css/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
admin/images/publish_x.png | 0.41KB | 0.53KB | 0.00% |