Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.31MB] [CPU: ▲105.54ms] Passed 4 tests
This is a short check of server-side resources used by RentMy Real-Time Rental Management Plugin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▼0.62 | 478.58 ▲430.52 |
Dashboard /wp-admin | 3.94 ▲0.64 | 56.92 ▼0.59 |
Posts /wp-admin/edit.php | 3.95 ▲0.59 | 45.82 ▼0.31 |
Add New Post /wp-admin/post-new.php | 6.52 ▲0.63 | 92.00 ▼7.45 |
Media Library /wp-admin/upload.php | 3.86 ▲0.63 | 5,514.66 ▲5,476.55 |
RentMy /wp-admin/options-general.php?page=rentmy | 4.07 | 171.34 |
Server storage [IO: ▲2.06MB] [DB: ▲0.01MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Just a few items left to fix
- You have illegally modified 1 file (4.00KB) outside of "wp-content/plugins/rentmy-online-rental-shop/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 100 new files
Database: no new tables, 22 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
rentmy.page_url.products_list_with_filter |
rentmy.page_url.package_details |
rentmy.page_url.products_list |
widget_rentmy_category_widget |
rentmy.page_url.checkout |
widget_rentmy_order_summary_widget |
theysaidso_admin_options |
rentmy.page_url.customer_login |
... |
Browser metrics Passed 4 tests
A check of browser resources used by RentMy Real-Time Rental Management Plugin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,306 ▲545 | 18.24 ▲3.84 | 226.75 ▲225.01 | 79.04 ▲34.75 |
Dashboard /wp-admin | 2,228 ▲22 | 5.88 ▲0.00 | 98.18 ▼18.27 | 69.93 ▲24.36 |
Posts /wp-admin/edit.php | 2,119 ▲19 | 2.00 ▼0.05 | 34.50 ▼6.74 | 34.11 ▼2.26 |
Add New Post /wp-admin/post-new.php | 1,545 ▼9 | 21.39 ▲3.18 | 743.12 ▲75.93 | 58.80 ▲1.19 |
Media Library /wp-admin/upload.php | 1,413 ▲13 | 4.20 ▼0.19 | 95.56 ▼14.37 | 81.59 ▲35.15 |
RentMy /wp-admin/options-general.php?page=rentmy | 1,812 | 2.02 | 26.45 | 33.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 22 options in the database
- rentmy.order
- widget_recent-posts
- widget_rentmy_tags_widget
- rentmy.page_url.product_details
- widget_rentmy_category_widget
- widget_recent-comments
- rentmy.page_url.checkout
- widget_rentmy_minicart_widget
- can_compress_scripts
- theysaidso_admin_options
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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
Almost there! Just fix the following items
- 40× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/rentmy-online-rental-shop/includes/class-rentmy-tags-widgets.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/rentmy-online-rental-shop/short-codes/rentmy-mini-cart.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/rentmy-online-rental-shop/short-codes/rentmy-cart-details.php:63
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/rentmy-online-rental-shop/short-codes/rentmy-grid.php:86
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/rentmy-online-rental-shop/short-codes/rentmy-order-details.php:283
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/rentmy-online-rental-shop/short-codes/rentmy-product-details-slider.php:59
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/rentmy-online-rental-shop/includes/class-rentmy-order-summary-widgets.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/rentmy-online-rental-shop/short-codes/rentmy-customer-reset-password.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/rentmy-online-rental-shop/short-codes/rentmy-search.php:16
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/rentmy-online-rental-shop/includes/class-rentmy-search-widgets.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
9 plugin tags: inventory management, booking system, rental, rental software, asset management...
rentmy-online-rental-shop/rentmy.php 92% from 13 tests
The main file in "RentMy Real-Time Rental Management Plugin" v. 3.16.16 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: Please rename the main PHP file in this plugin to the plugin slug ("rentmy-online-rental-shop.php" instead of "rentmy.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
There were no executable files found in this plugin29,041 lines of code in 80 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 49 | 1,931 | 1,289 | 11,892 |
JavaScript | 8 | 1,073 | 583 | 6,456 |
CSS | 6 | 961 | 56 | 6,029 |
Vuejs Component | 17 | 438 | 392 | 4,664 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 26.53 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 132.00 |
Average method complexity | 3.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 68.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 168 | |
▷ Static methods | 5 | 2.98% |
▷ Public methods | 166 | 98.81% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 1.19% |
Functions | 74 | |
▷ Named functions | 72 | 97.30% |
▷ Anonymous functions | 2 | 2.70% |
Constants | 14 | |
▷ Global constants | 14 | 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
16 PNG files occupy 0.39MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/logo.png | 6.73KB | 3.58KB | ▼ 46.76% |
assets/images/card.png | 3.50KB | 3.41KB | ▼ 2.81% |
assets/images/truck.png | 15.92KB | 6.25KB | ▼ 60.76% |
assets/images/delivery.png | 10.69KB | 7.24KB | ▼ 32.23% |
assets/images/shipping-bold.png | 5.88KB | 1.47KB | ▼ 74.92% |