Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.32MB] [CPU: ▼5.43ms] Passed 4 tests
A check of server-side resources used by ParkingPro Booking Widgets
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.80 ▲0.33 | 37.37 ▼2.80 |
Dashboard /wp-admin | 3.63 ▲0.28 | 49.11 ▼12.58 |
Posts /wp-admin/edit.php | 3.75 ▲0.39 | 53.29 ▲3.55 |
Add New Post /wp-admin/post-new.php | 6.24 ▲0.34 | 95.04 ▼9.01 |
Media Library /wp-admin/upload.php | 3.56 ▲0.32 | 37.01 ▲2.69 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 32 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_parkingpro_booking_widgets_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
ParkingPro Booking Widgets: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,989 ▲242 | 13.94 ▼0.33 | 10.23 ▲8.48 | 36.23 ▼8.44 |
Dashboard /wp-admin | 2,259 ▲82 | 5.70 ▲0.04 | 94.97 ▼6.41 | 40.59 ▼4.51 |
Posts /wp-admin/edit.php | 2,169 ▲66 | 2.28 ▲0.28 | 44.48 ▲5.76 | 34.11 ▼1.84 |
Add New Post /wp-admin/post-new.php | 1,559 ▲14 | 23.16 ▼2.06 | 664.56 ▲11.53 | 36.61 ▼22.89 |
Media Library /wp-admin/upload.php | 1,467 ▲67 | 4.39 ▲0.19 | 100.52 ▲3.69 | 41.69 ▼0.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_parkingpro_booking_widgets_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 24× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: parkingpro_booking_widgets_colors_button_hover_text in wp-content/plugins/parkingpro-booking-widgets/public/partials/parkingpro-booking-widgets-public-display.php on line 126
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/parkingpro-booking-widgets/public/partials/parkingpro-booking-widgets-public-display.php on line 139
- > PHP Notice
Undefined variable: parkingpro_booking_widgets_remember_widget_fields in wp-content/plugins/parkingpro-booking-widgets/public/partials/parkingpro-booking-widgets-public-display.php on line 23
- > PHP Notice
Undefined variable: parkingpro_booking_widgets_colors_button_background in wp-content/plugins/parkingpro-booking-widgets/public/partials/parkingpro-booking-widgets-public-display.php on line 75
- > PHP Notice
Undefined variable: parkingpro_booking_widgets_colors_border in wp-content/plugins/parkingpro-booking-widgets/public/partials/parkingpro-booking-widgets-public-display.php on line 87
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_timezone_string() in wp-content/plugins/parkingpro-booking-widgets/public/partials/parkingpro-booking-widgets-public-thank-you-display.php:17
- > PHP Notice
Undefined variable: parkingpro_booking_widgets_display_services in wp-content/plugins/parkingpro-booking-widgets/public/partials/parkingpro-booking-widgets-public-display.php on line 139
- > PHP Fatal error
Uncaught Error: Class 'NumberFormatter' not found in wp-content/plugins/parkingpro-booking-widgets/public/partials/parkingpro-booking-widgets-public-product-selection-display.php:17
- > PHP Notice
Undefined variable: parkingpro_booking_widgets_size in wp-content/plugins/parkingpro-booking-widgets/public/partials/parkingpro-booking-widgets-public-display.php on line 141
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/parkingpro-booking-widgets/admin/partials/parkingpro-booking-widgets-admin-display.php:16
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: parking, booking, widget, parkingpro
parkingpro-booking-widgets/parkingpro-booking-widgets.php Passed 13 tests
Analyzing the main PHP file in "ParkingPro Booking Widgets" version 1.2.44
92 characters long description:
ParkingPro Booking Widgets plugin: easily add a booking widget or shortcode to your website.
Code Analysis Passed 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 detected5,644 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 636 | 726 | 2,426 |
JavaScript | 4 | 86 | 33 | 1,424 |
CSS | 4 | 169 | 22 | 1,112 |
PO File | 2 | 282 | 424 | 682 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 33.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 234.00 |
Average method complexity | 5.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 64.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 | 49 | |
▷ Static methods | 2 | 4.08% |
▷ Public methods | 43 | 87.76% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 12.24% |
Functions | 7 | |
▷ Named functions | 3 | 42.86% |
▷ Anonymous functions | 4 | 57.14% |
Constants | 1 | |
▷ Global constants | 1 | 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
There are no PNG files in this plugin