Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼8.14ms] Passed 4 tests
This is a short check of server-side resources used by Pravel Rent & Sell Addon for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 37.49 ▼1.04 |
Dashboard /wp-admin | 3.32 ▼0.03 | 45.77 ▼14.67 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 41.94 ▼5.34 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 82.04 ▼11.52 |
Media Library /wp-admin/upload.php | 3.25 ▲0.01 | 35.02 ▲4.03 |
Server storage [IO: ▲0.89MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Pravel Rent & Sell Addon for WooCommerce: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,798 ▲37 | 14.51 ▲0.22 | 1.76 ▲0.20 | 44.47 ▲3.13 |
Dashboard /wp-admin | 2,204 ▲24 | 5.55 ▼0.08 | 95.03 ▲9.01 | 43.90 ▼0.94 |
Posts /wp-admin/edit.php | 2,110 ▲13 | 2.11 ▲0.11 | 36.13 ▼0.86 | 36.25 ▼1.71 |
Add New Post /wp-admin/post-new.php | 1,535 ▼2 | 23.14 ▲4.75 | 683.22 ▲28.48 | 57.06 ▼9.50 |
Media Library /wp-admin/upload.php | 1,406 ▲9 | 4.17 ▼0.03 | 108.88 ▲8.96 | 50.90 ▲5.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 9× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/pravel-rent-sell-addon-for-woocommerce/templates/unsubscribe.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pravel-rent-sell-addon-for-woocommerce/includes/add_to_checkout_functions.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pravel-rent-sell-addon-for-woocommerce/admin/notification_settings.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pravel-rent-sell-addon-for-woocommerce/templates/booking_template.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/pravel-rent-sell-addon-for-woocommerce/admin/core_function.php:10
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/pravel-rent-sell-addon-for-woocommerce/admin/add_payment_method.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/pravel-rent-sell-addon-for-woocommerce/index.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/pravel-rent-sell-addon-for-woocommerce/includes/add_to_cart_function.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/pravel-rent-sell-addon-for-woocommerce/admin/pravel_settings_tab.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4 in pravel-rent-sell-addon-for-woocommerce/assets to your readme.txt
- Tags: Please delete some tags, you are using 15 tag instead of maximum 10
pravel-rent-sell-addon-for-woocommerce/index.php 92% from 13 tests
"Pravel Rent & Sell Addon for WooCommerce" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("pravel-rent-sell-addon-for-woocommerce.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin11,745 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 2,199 | 7,002 | 7,629 |
PHP | 10 | 461 | 95 | 2,156 |
CSS | 4 | 71 | 80 | 1,960 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 44.40 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 84.00 |
Average method complexity | 6.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 6 | 16.22% |
▷ Public methods | 37 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 21 | |
▷ Named functions | 21 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 0.06MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |
assets/css/images/ui-icons_454545_256x240.png | 3.69KB | 4.18KB | 0.00% |
images/buy-now-button.png | 19.00KB | 10.23KB | ▼ 46.18% |
images/Doneplugin02_round.png | 14.64KB | 7.26KB | ▼ 50.40% |
assets/images/sort_both.png | 0.20KB | 0.29KB | 0.00% |