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.08MB] [CPU: ▼2.96ms] Passed 4 tests
An overview of server-side resources used by RnB Lite - WooCommerce Booking and Rental System
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 40.39 ▼12.71 |
Dashboard /wp-admin | 3.39 ▲0.08 | 48.45 ▼2.39 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 50.81 ▲0.91 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 98.06 ▲2.34 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 37.20 ▲2.36 |
Server storage [IO: ▲3.36MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 71 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by RnB Lite - WooCommerce Booking and Rental System
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲37 | 13.68 ▼0.52 | 1.80 ▼0.35 | 42.31 ▼1.57 |
Dashboard /wp-admin | 2,214 ▲26 | 4.85 ▼0.04 | 104.51 ▼13.17 | 37.82 ▼6.47 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.06 ▲0.04 | 42.10 ▲5.42 | 37.16 ▲1.98 |
Add New Post /wp-admin/post-new.php | 1,547 ▲11 | 23.28 ▲0.14 | 636.47 ▼13.24 | 57.40 ▲5.02 |
Media Library /wp-admin/upload.php | 1,399 ▲8 | 4.22 ▼0.01 | 98.30 ▼7.93 | 45.77 ▲0.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 8× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/booking-and-rental-system-woocommerce/includes/Admin/views/html-own-availability.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/booking-and-rental-system-woocommerce/includes/Admin/views/admin-rnb-addons.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/booking-and-rental-system-woocommerce/includes/Admin/views/html-additional-feature-meta.php:15
- > PHP Fatal error
Uncaught Error: Class 'WC_Product' not found in wp-content/plugins/booking-and-rental-system-woocommerce/includes/class-rnb-lite-redq_rental.php:6
- > PHP Fatal error
Trait 'RnbLite\\Traits\\Assets_Trait' not found in wp-content/plugins/booking-and-rental-system-woocommerce/includes/Assets.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/booking-and-rental-system-woocommerce/includes/Admin/views/html-attribute-info-meta.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/booking-and-rental-system-woocommerce/includes/views/pricing-info.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/booking-and-rental-system-woocommerce/includes/Admin/views/html-attribute-info-meta.php:26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Donate link: Invalid URI found ("")
- Tags: You are using too many tags: 12 tag instead of maximum 10
booking-and-rental-system-woocommerce/rnb-lite.php 85% from 13 tests
The entry point to "RnB Lite - WooCommerce Booking and Rental System" version 2.1.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("booking-and-rental-system-woocommerce.php" instead of "rnb-lite.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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
No dangerous file extensions were detected23,440 lines of code in 54 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 12 | 9,299 |
CSS | 8 | 1,780 | 103 | 6,331 |
JavaScript | 12 | 664 | 395 | 5,782 |
PHP | 29 | 372 | 726 | 1,998 |
JSON | 2 | 0 | 0 | 30 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 13.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 3.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 90 | |
▷ Static methods | 22 | 24.44% |
▷ Public methods | 87 | 96.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 3.33% |
Functions | 9 | |
▷ Named functions | 6 | 66.67% |
▷ Anonymous functions | 3 | 33.33% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
assets/css/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |