Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲3.41MB] [CPU: ▲13.45ms] Passed 4 tests
A check of server-side resources used by VikRentItems Flexible Rental Management System
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.48 ▲3.02 | 56.88 ▲19.48 |
Dashboard /wp-admin | 6.83 ▲3.53 | 69.66 ▲23.77 |
Posts /wp-admin/edit.php | 6.94 ▲3.59 | 60.79 ▲17.21 |
Add New Post /wp-admin/post-new.php | 9.50 ▲3.61 | 98.27 ▼6.65 |
Media Library /wp-admin/upload.php | 6.75 ▲3.52 | 62.08 ▲24.08 |
Server storage [IO: ▲10.60MB] [DB: ▲0.04MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 956 new files
Database: 35 new tables, 14 new options
New tables |
---|
wp_vikrentitems_caratteristiche |
wp_vikrentitems_customers_orders |
wp_vikrentitems_relations |
wp_vikrentitems_tmplock |
wp_vikrentitems_texts |
wp_vikrentitems_busy |
wp_vikrentitems_dispcost |
wp_vikrentitems_discountsquants |
wp_vikrentitems_categories |
wp_vikrentitems_iva |
... |
New WordPress options |
---|
vikrentitems_software_version |
widget_recent-comments |
widget_recent-posts |
widget_mod_vikrentitems_items |
vikrentitems_changelog |
db_upgraded |
vikrentitems_license_hash |
vikrentitems_license_expdate |
widget_theysaidso_widget |
widget_mod_vikrentitems_summary |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for VikRentItems Flexible Rental Management System
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,922 ▲161 | 13.58 ▼0.76 | 9.56 ▲7.91 | 45.07 ▲4.03 |
Dashboard /wp-admin | 2,228 ▲51 | 5.67 ▲0.01 | 89.63 ▲0.80 | 39.01 ▲1.53 |
Posts /wp-admin/edit.php | 2,112 ▲9 | 2.19 ▲0.19 | 36.86 ▼0.08 | 35.48 ▲3.28 |
Add New Post /wp-admin/post-new.php | 6,202 ▲4,674 | 25.02 ▲1.76 | 839.68 ▲134.27 | 87.51 ▲17.39 |
Media Library /wp-admin/upload.php | 1,436 ▲39 | 4.30 ▲0.13 | 102.68 ▼5.04 | 41.99 ▼3.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 9 options
- theysaidso_admin_options
- widget_mod_vikrentitems_summary
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_mod_vikrentitems_search
- widget_recent-posts
- widget_theysaidso_widget
- widget_mod_vikrentitems_items
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 425× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/vikrentitems/site/helpers/tcpdf/fonts/helvetica.php
- > /wp-content/plugins/vikrentitems/libraries/update/changelog.php
- > /wp-content/plugins/vikrentitems/site/helpers/tcpdf/fonts/pdfahelveticabi.php
- > /wp-content/plugins/vikrentitems/admin/views/iva/tmpl/default.php
- > /wp-content/plugins/vikrentitems/admin/views/shortcode/view.html.php
- > /wp-content/plugins/vikrentitems/modules/mod_vikrentitems_summary/helper.php
- > /wp-content/plugins/vikrentitems/site/helpers/tcpdf/config/lang/glg.php
- > /wp-content/plugins/vikrentitems/admin/views/managediscount/tmpl/default.php
- > /wp-content/plugins/vikrentitems/libraries/adapter/application/version.php
- > /wp-content/plugins/vikrentitems/site/helpers/tcpdf/config/lang/mkd.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 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
10 plugin tags: hire, items rental, storage rent, bikes, rent...
vikrentitems/vikrentitems.php Passed 13 tests
The main PHP file in "VikRentItems Flexible Rental Management System" ver. 1.1.5 adds more information about the plugin and also serves as the entry point for this plugin
34 characters long description:
Multi-purpose items rental system.
Code Analysis 0% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
These items require your attention
- Do not include executable or dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/vikrentitems/site/helpers/tcpdf/tcpdf.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 424 | 8,825 | 32,039 | 109,458 |
CSS | 25 | 342 | 197 | 14,892 |
SVG | 4 | 0 | 8 | 8,381 |
JavaScript | 10 | 1,425 | 885 | 5,003 |
PO File | 1 | 1,414 | 1,653 | 3,680 |
SQL | 2 | 42 | 2 | 772 |
Markdown | 3 | 411 | 0 | 746 |
XML | 13 | 26 | 2 | 378 |
JSON | 1 | 0 | 0 | 38 |
HTML | 4 | 0 | 0 | 8 |
PHP code 0% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please tend to the following items
- Class cyclomatic complexity should be reduced to less than 1000 (currently 5,381)
- Please reduce cyclomatic complexity of methods to less than 100 (currently 1,257)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 63.68 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5,381.00 |
Average method complexity | 8.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1,257.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 248 | |
▷ Abstract classes | 38 | 15.32% |
▷ Concrete classes | 210 | 84.68% |
▷ Final classes | 4 | 1.90% |
Methods | 2,230 | |
▷ Static methods | 528 | 23.68% |
▷ Public methods | 1,742 | 78.12% |
▷ Protected methods | 460 | 20.63% |
▷ Private methods | 28 | 1.26% |
Functions | 53 | |
▷ Named functions | 4 | 7.55% |
▷ Anonymous functions | 49 | 92.45% |
Constants | 165 | |
▷ Global constants | 151 | 91.52% |
▷ Class constants | 14 | 8.48% |
▷ Public constants | 14 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
274 compressed PNG files occupy 0.95MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/resources/countries/TTO.png | 0.75KB | 0.87KB | 0.00% |
site/resources/images/ui-icons_454545_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |
admin/resources/countries/CHE.png | 0.46KB | 0.72KB | 0.00% |
admin/resources/countries/TMP.png | 0.64KB | 0.80KB | 0.00% |
admin/resources/countries/LTU.png | 0.44KB | 0.69KB | 0.00% |