Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.14MB] [CPU: ▲68.58ms] Passed 4 tests
An overview of server-side resources used by RentSyst - CRM solution for fleet management
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▼0.62 | 122.72 ▲78.81 |
Dashboard /wp-admin | 2.89 ▼0.46 | 141.04 ▲77.18 |
Posts /wp-admin/edit.php | 2.89 ▼0.47 | 142.32 ▲91.83 |
Add New Post /wp-admin/post-new.php | 2.89 ▼3.00 | 125.69 ▲26.50 |
Media Library /wp-admin/upload.php | 2.89 ▼0.34 | 178.47 ▲144.45 |
Catalog Options /wp-admin/admin.php?page=catalog-options | 2.89 | 147.05 |
Rentsyst /wp-admin/admin.php?page=rentsyst | 2.89 | 120.34 |
Design /wp-admin/admin.php?page=rentsyst-design | 2.89 | 161.72 |
Server storage [IO: ▲25.56MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please fix the following
- Try to limit filesystem usage to 25MB (currently using 25.56MB)
Filesystem: 403 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_rentsyst_formsearch |
widget_theysaidso_widget |
db_upgraded |
rentsyst_confirmation_page_id |
theysaidso_admin_options |
widget_rentstyst |
widget_recent-comments |
widget_recent-posts |
widget_rentstyst_filter |
can_compress_scripts |
Browser metrics Passed 4 tests
RentSyst - CRM solution for fleet management: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲68 | 14.39 ▲0.12 | 1.60 ▼0.11 | 39.71 ▼5.59 |
Dashboard /wp-admin | 2,238 ▲61 | 5.63 ▼0.11 | 93.48 ▼4.94 | 55.86 ▲12.34 |
Posts /wp-admin/edit.php | 2,149 ▲46 | 1.97 ▼0.04 | 40.16 ▲0.33 | 50.25 ▲19.13 |
Add New Post /wp-admin/post-new.php | 1,696 ▲170 | 21.01 ▼2.08 | 659.42 ▲53.45 | 54.07 ▼3.60 |
Media Library /wp-admin/upload.php | 1,443 ▲40 | 4.20 ▼0.03 | 112.77 ▲16.83 | 61.13 ▲15.48 |
Catalog Options /wp-admin/admin.php?page=catalog-options | 1,021 | 2.01 | 27.91 | 45.94 |
Rentsyst /wp-admin/admin.php?page=rentsyst | 1,156 | 2.17 | 29.11 | 35.30 |
Design /wp-admin/admin.php?page=rentsyst-design | 1,057 | 13.88 | 417.47 | 110.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/rentsyst/includes/RS_Company.php+111
Trying to get property 'withCoupon' of non-object
- This plugin did not uninstall successfully, leaving 9 options in the database
- widget_rentstyst_filter
- widget_rentsyst_formsearch
- widget_rentstyst
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=rentsyst-design
- > Notice in wp-content/plugins/rentsyst/includes/RS_Company.php+111
Trying to get property 'withCoupon' of non-object
SRP 0% 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
- 4× PHP files output text when accessed directly:
- > /wp-content/plugins/rentsyst/includes/templates/catalog.php
- > /wp-content/plugins/rentsyst/includes/templates/payment_error.php
- > /wp-content/plugins/rentsyst/includes/templates/single.php
- > /wp-content/plugins/rentsyst/includes/templates/payment_success.php
- 132× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
Use of undefined constant WP_RENTSYST_PLUGIN_DIR - assumed 'WP_RENTSYST_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/rentsyst/site/partials/booking-button.php on line 26
- > PHP Fatal error
Uncaught Error: Class 'rentsyst\\admin\\controllers\\Rentsyst_BaseController' not found in wp-content/plugins/rentsyst/admin/controllers/Rentsyst_DesignV2Controller.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/rentsyst/includes/blocks/index.php:3
- > PHP Notice
Undefined variable: settings in wp-content/plugins/rentsyst/site/partials/booking-v2.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/rentsyst/site/partials/filter.php:14
- > PHP Warning
require_once(WP_RENTSYST_PLUGIN_DIR/includes/RS_Company.php): failed to open stream: No such file or directory in wp-content/plugins/rentsyst/includes/shortcodes/company.php on line 5
- > PHP Fatal error
Uncaught Error: Call to a member function getId() on null in wp-content/plugins/rentsyst/public/templates/single-vehicle.php:8
- > PHP Fatal error
require_once(): Failed opening required 'WP_RENTSYST_PLUGIN_DIR/admin/components/Rentsyst_OrderListTable.php' (include_path='.:/usr/share/php') in wp-content/plugins/rentsyst/admin/pages/orders.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'WP_RENTSYST_PLUGIN_DIR/includes/Rentsyst_CatalogFilter.php' (include_path='.:/usr/share/php') in wp-content/plugins/rentsyst/site/templates/rentsyst-catalog.php on line 5
- > PHP Warning
Use of undefined constant WP_RENTSYST_PLUGIN_DIR - assumed 'WP_RENTSYST_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/rentsyst/admin/controllers/Rentsyst_OrdersController.php on line 3
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=rentsyst-design
- > Console-api (warning) in unknown
https://maps.googleapis.com/maps/api/js?key=AIzaSyAddwFzEu83xzv_3kQjwLOrK3d35bmiOKg&libraries=places&ver=2.0.14 240:51 "Google Maps JavaScript API has been loaded directly without a callback. This is not supported and can lead to race conditions and suboptimal performance. For supported loading patterns please see https://goo.gle/js-api-loading"
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: Add descriptions for screenshots #10, #2, #4, #6, #8 in rentsyst/assets to your readme.txt
- Screenshots: Screenshot #9 (10.) image not found
rentsyst/rentsyst.php Passed 13 tests
This is the main PHP file of "RentSyst - CRM solution for fleet management" version 2.0.14, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
40 characters long description:
Pocket office for a car rental business.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected39,572 lines of code in 203 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 64 | 4,103 | 4,273 | 17,959 |
CSS | 22 | 1,007 | 45 | 10,169 |
PHP | 97 | 1,379 | 1,296 | 8,713 |
SVG | 8 | 0 | 3 | 1,587 |
HTML | 3 | 9 | 1 | 879 |
JSON | 8 | 0 | 0 | 263 |
Markdown | 1 | 1 | 0 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 10.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 48 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 48 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 347 | |
▷ Static methods | 91 | 26.22% |
▷ Public methods | 294 | 84.73% |
▷ Protected methods | 5 | 1.44% |
▷ Private methods | 48 | 13.83% |
Functions | 62 | |
▷ Named functions | 11 | 17.74% |
▷ Anonymous functions | 51 | 82.26% |
Constants | 32 | |
▷ Global constants | 5 | 15.62% |
▷ Class constants | 27 | 84.38% |
▷ Public constants | 27 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
17 PNG files occupy 0.67MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources-v2/static/media/rentsyst-logo.cc8bc9a55ba9af1eaa67.png | 26.52KB | 11.65KB | ▼ 56.08% |
resources-v2/rentsyst-logo.png | 26.52KB | 11.65KB | ▼ 56.08% |
resources-v1/tinymce/plugins/help/img/logo.png | 12.90KB | 7.62KB | ▼ 40.95% |
resources/tinymce/plugins/help/img/logo.png | 12.90KB | 7.62KB | ▼ 40.95% |
site/img/icon-close.png | 0.22KB | 0.26KB | 0.00% |