Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▲0.36ms] Passed 4 tests
Analyzing server-side resources used by SafeRoute WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 34.75 ▼3.49 |
Dashboard /wp-admin | 3.35 ▲0.05 | 52.13 ▲0.41 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 49.82 ▲5.21 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 85.83 ▼0.71 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 39.49 ▲8.02 |
Server storage [IO: ▲0.25MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 19 new options
New WordPress options |
---|
send_orders_as_confirmed |
statuses_matching_option |
hide_checkout_billing_block |
widget_recent-posts |
show_details_in_delivery_name |
saferoute_admin_notices |
can_compress_scripts |
card_cod_pay_method_option |
saferoute_shop_id |
price_declared_percent |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for SafeRoute WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲66 | 14.60 ▲0.33 | 1.66 ▼0.05 | 38.18 ▼5.77 |
Dashboard /wp-admin | 2,233 ▲56 | 4.84 ▼0.83 | 88.42 ▲2.85 | 40.50 ▲1.13 |
Posts /wp-admin/edit.php | 2,138 ▲38 | 2.27 ▲0.27 | 53.81 ▲19.65 | 36.00 ▼1.17 |
Add New Post /wp-admin/post-new.php | 1,564 ▲36 | 18.42 ▼4.73 | 604.83 ▲9.38 | 77.38 ▲27.53 |
Media Library /wp-admin/upload.php | 1,441 ▲38 | 4.29 ▲0.10 | 99.92 ▲1.22 | 46.39 ▲2.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- saferoute_admin_notices
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
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
Good news, no errors were detected
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
Please fix the following items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/saferoute-woocommerce/views/checkout-widget-block.php:2
- > PHP Fatal error
Uncaught Error: Class 'SafeRouteWooCommerceBase' not found in wp-content/plugins/saferoute-woocommerce/includes/SafeRouteWooCommerceAdminApi.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/saferoute-woocommerce/views/admin-settings-page.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% 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
7 plugin tags: saferoute, delivery, cdek, boxberry, woocommerce...
saferoute-woocommerce/saferoute_woocommerce.php 85% from 13 tests
The main file in "SafeRoute WooCommerce" v. 3.2.12 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("saferoute-woocommerce.php" instead of "saferoute_woocommerce.php")
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin3,221 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 373 | 551 | 2,061 |
PO File | 1 | 329 | 365 | 673 |
JavaScript | 4 | 84 | 58 | 375 |
CSS | 2 | 25 | 12 | 112 |
PHP code Passed 2 tests
This is a very shot 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.40 |
Average class complexity | 26.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 93.00 |
Average method complexity | 3.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 2 | 22.22% |
Methods | 77 | |
▷ Static methods | 66 | 85.71% |
▷ Public methods | 61 | 79.22% |
▷ Protected methods | 1 | 1.30% |
▷ Private methods | 15 | 19.48% |
Functions | 38 | |
▷ Named functions | 4 | 10.53% |
▷ Anonymous functions | 34 | 89.47% |
Constants | 51 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 51 | 100.00% |
▷ Public constants | 50 | 98.04% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin