Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲3.95MB] [CPU: ▲21.76ms] Passed 4 tests
A check of server-side resources used by VikRentCar Car Rental Management System
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.92 ▲3.46 | 59.90 ▲20.06 |
Dashboard /wp-admin | 7.46 ▲4.15 | 65.69 ▲19.18 |
Posts /wp-admin/edit.php | 7.51 ▲4.15 | 71.03 ▲18.71 |
Add New Post /wp-admin/post-new.php | 10.01 ▲4.12 | 130.44 ▲45.86 |
Media Library /wp-admin/upload.php | 7.31 ▲4.08 | 60.62 ▲29.07 |
Server storage [IO: ▲15.27MB] [DB: ▲0.04MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 1,308 new files
Database: 36 new tables, 14 new options
New tables |
---|
wp_vikrentcar_gpayments |
wp_vikrentcar_hourscharges |
wp_vikrentcar_condtexts |
wp_vikrentcar_cronjobs |
wp_vikrentcar_oohfees |
wp_vikrentcar_orders |
wp_vikrentcar_translations |
wp_vikrentcar_oohfees_locxref |
wp_vikrentcar_busy |
wp_vikrentcar_wpshortcodes |
... |
New WordPress options |
---|
widget_theysaidso_widget |
vikrentcar_changelog |
db_upgraded |
widget_mod_vikrentcar_search |
vikrentcar_software_version |
vikrentcar_license_key |
vikrentcar_license_expdate |
widget_mod_vikrentcar_cars |
theysaidso_admin_options |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
A check of browser resources used by VikRentCar Car Rental Management System
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,933 ▲198 | 14.09 ▼0.14 | 6.55 ▲4.77 | 38.58 ▼3.33 |
Dashboard /wp-admin | 2,242 ▲51 | 4.96 ▲0.09 | 109.13 ▲9.82 | 37.54 ▼2.79 |
Posts /wp-admin/edit.php | 2,125 ▲36 | 2.22 ▲0.20 | 38.40 ▲3.48 | 34.38 ▲2.94 |
Add New Post /wp-admin/post-new.php | 6,414 ▲4,885 | 24.45 ▲1.36 | 908.04 ▲312.01 | 54.51 ▲1.25 |
Media Library /wp-admin/upload.php | 1,418 ▲30 | 4.25 ▲0.09 | 92.06 ▼5.00 | 43.44 ▼2.67 |
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
Please fix the following items
- The uninstall procedure failed, leaving 2 tables in the database
- wp_vikrentcar_cars_icals
- wp_vikrentcar_restrictions
- Zombie WordPress options were found after uninstall: 9 options
- widget_mod_vikrentcar_search
- widget_mod_vikrentcar_currencyconverter
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_mod_vikrentcar_cars
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 480× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/vikrentcar/libraries/adapter/user/user.php
- > /wp-content/plugins/vikrentcar/libraries/adapter/application/route.php
- > /wp-content/plugins/vikrentcar/libraries/html/changelog/section/close.php
- > /wp-content/plugins/vikrentcar/libraries/adapter/html/classes/access.php
- > /wp-content/plugins/vikrentcar/libraries/adapter/acl/access.php
- > /wp-content/plugins/vikrentcar/admin/helpers/conditional_rule.php
- > /wp-content/plugins/vikrentcar/site/helpers/checkin_pdf_tmpl.php
- > /wp-content/plugins/vikrentcar/libraries/adapter/toolbar/button/link.php
- > /wp-content/plugins/vikrentcar/libraries/update/manager.php
- > /wp-content/plugins/vikrentcar/libraries/system/mce.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: rent, car rental, hire, rent a car, rental management...
vikrentcar/vikrentcar.php Passed 13 tests
Analyzing the main PHP file in "VikRentCar Car Rental Management System" version 1.3.1
38 characters long description:
Robust Car Rental Management Software.
Code Analysis 0% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Please fix the following items
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/vikrentcar/site/helpers/tcpdf/tcpdf.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 544 | 12,715 | 43,968 | 130,462 |
CSS | 38 | 2,470 | 322 | 26,368 |
JavaScript | 24 | 3,559 | 1,972 | 16,635 |
PO File | 2 | 3,569 | 4,199 | 9,333 |
SVG | 6 | 0 | 12 | 6,660 |
SQL | 6 | 51 | 2 | 869 |
Markdown | 3 | 453 | 0 | 820 |
XML | 14 | 40 | 2 | 706 |
JSON | 1 | 0 | 0 | 38 |
HTML | 5 | 0 | 0 | 9 |
PHP code 0% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
These items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 5,383)
- Please reduce cyclomatic complexity of methods to less than 100 (currently 1,575)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 51.39 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5,383.00 |
Average method complexity | 7.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1,575.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 8 | |
Traits | 5 | |
Classes | 345 | |
▷ Abstract classes | 53 | 15.36% |
▷ Concrete classes | 292 | 84.64% |
▷ Final classes | 8 | 2.74% |
Methods | 2,879 | |
▷ Static methods | 602 | 20.91% |
▷ Public methods | 2,238 | 77.74% |
▷ Protected methods | 575 | 19.97% |
▷ Private methods | 66 | 2.29% |
Functions | 98 | |
▷ Named functions | 5 | 5.10% |
▷ Anonymous functions | 93 | 94.90% |
Constants | 188 | |
▷ Global constants | 169 | 89.89% |
▷ Class constants | 19 | 10.11% |
▷ Public constants | 19 | 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
435 PNG files occupy 1.31MB with 0.33MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/resources/countries/PER.png | 0.14KB | 0.12KB | ▼ 13.10% |
admin/resources/countries/TCA.png | 0.95KB | 0.96KB | 0.00% |
admin/resources/images/hourly_tab.png | 1.89KB | 2.00KB | 0.00% |
admin/resources/plus-btn.png | 50.01KB | 0.27KB | ▼ 99.45% |
admin/resources/countries/CIV.png | 0.14KB | 0.13KB | ▼ 12.16% |