Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/official-sendle-shipping-method/sendle-shipment-booking.php+558
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.38MB] [CPU: ▼52.69ms] Passed 4 tests
Analyzing server-side resources used by Sendle Shipping Plugin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.62 ▼0.84 | 8.06 ▼35.01 |
Dashboard /wp-admin | 2.64 ▼0.71 | 10.95 ▼51.30 |
Posts /wp-admin/edit.php | 2.64 ▼0.72 | 11.00 ▼37.88 |
Add New Post /wp-admin/post-new.php | 2.64 ▼3.25 | 11.66 ▼86.57 |
Media Library /wp-admin/upload.php | 2.64 ▼0.59 | 8.64 ▼23.66 |
Cancel Sendle Order /wp-admin/admin.php?page=cancel-sendle | 2.64 | 9.85 |
Track Shipment /wp-admin/admin.php?page=track-shipment | 2.64 | 9.54 |
Sendle Email Template /wp-admin/admin.php?page=ossm_sendle_trackingemailtemplate | 2.64 | 9.72 |
Download Shipping Label /wp-admin/admin.php?page=download-shipping-label | 2.64 | 10.11 |
Sendle Settings /wp-admin/admin.php?page=wc-settings&tab=shipping§ion=ossmsendle | 2.64 | 8.95 |
Create Sendle Shipment /wp-admin/admin.php?page=create-shipment | 2.64 | 10.04 |
View Sendle Order Details /wp-admin/admin.php?page=viewdetails-sendle | 2.64 | 10.05 |
Validate Sendle /wp-admin/admin.php?page=ossm_validate_sendle | 2.64 | 10.47 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 19 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_sendlelogs |
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
recovery_mode_email_last_sent |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Sendle Shipping Plugin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲48 | 14.30 ▼0.41 | 1.71 ▼0.13 | 40.23 ▼3.68 |
Dashboard /wp-admin | 2,201 ▲24 | 5.62 ▼0.02 | 95.17 ▼6.92 | 42.02 ▼8.75 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 1.98 ▲0.03 | 41.01 ▲3.84 | 37.14 ▲0.47 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 22.99 ▲0.08 | 636.18 ▼49.21 | 54.85 ▼9.52 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.11 ▼0.08 | 101.37 ▼3.19 | 40.75 ▼2.41 |
Cancel Sendle Order /wp-admin/admin.php?page=cancel-sendle | 683 | 1.12 | 6.82 | 22.74 |
Track Shipment /wp-admin/admin.php?page=track-shipment | 796 | 2.00 | 23.94 | 23.63 |
Sendle Email Template /wp-admin/admin.php?page=ossm_sendle_trackingemailtemplate | 845 | 2.11 | 26.52 | 26.10 |
Download Shipping Label /wp-admin/admin.php?page=download-shipping-label | 778 | 1.99 | 21.29 | 24.78 |
Sendle Settings /wp-admin/admin.php?page=wc-settings&tab=shipping§ion=ossmsendle | 28 | 0.41 | 0.11 | 3.53 |
Create Sendle Shipment /wp-admin/admin.php?page=create-shipment | 764 | 1.99 | 24.05 | 24.34 |
View Sendle Order Details /wp-admin/admin.php?page=viewdetails-sendle | 761 | 2.00 | 24.05 | 23.45 |
Validate Sendle /wp-admin/admin.php?page=ossm_validate_sendle | 680 | 1.51 | 6.61 | 15.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/official-sendle-shipping-method/sendle-shipment-booking.php+558
Trying to access array offset on value of type bool
- Zombie tables detected upon uninstall: 1 table
- wp_sendlelogs
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- recovery_mode_email_last_sent
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- 87 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ossm_validate_sendle
- > Notice in wp-content/plugins/official-sendle-shipping-method/validate-sendle.php+21
Trying to access array offset on value of type bool
- > GET request to /wp-admin/admin.php?page=cancel-sendle
- > Notice in wp-content/plugins/official-sendle-shipping-method/cancel-shipment.php+47
Undefined index: sendle_order_id
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=viewdetails-sendle
- > Notice in wp-content/plugins/official-sendle-shipping-method/sendle-shipping-function.php+793
Undefined index: oid
- > GET request to /wp-admin/admin.php?page=cancel-sendle
- > Error in wp-content/plugins/official-sendle-shipping-method/cancel-shipment.php+49
Uncaught Error: Class 'WC_Order' not found in wp-content/plugins/official-sendle-shipping-method/cancel-shipment.php:49
Stack trace:
#0 wp-includes/class-wp-hook.php(310): ossm_cancel_sendle()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/admin.php(259): do_action()
#4 {main}
thrown- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=track-shipment
- > Notice in wp-content/plugins/official-sendle-shipping-method/track-shipment.php+12
Undefined index: sendle_reference
- > GET request to /wp-admin/admin.php?page=track-shipment
- > Notice in wp-content/plugins/official-sendle-shipping-method/track-shipment.php+49
Undefined index: state
- > GET request to /wp-admin/admin.php?page=download-shipping-label
- > Notice in wp-content/plugins/official-sendle-shipping-method/download-label.php+8
Undefined index: pdfdlink
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=viewdetails-sendle
- > Notice in wp-content/plugins/official-sendle-shipping-method/sendle-shipping-function.php+809
Undefined variable: sendle_order_id
- > GET request to /wp-admin/admin.php?page=ossm_validate_sendle
- > Error in wp-content/plugins/official-sendle-shipping-method/validate-sendle.php+52
Uncaught Error: Class 'WC_Countries' not found in wp-content/plugins/official-sendle-shipping-method/validate-sendle.php:52
Stack trace:
#0 wp-includes/class-wp-hook.php(310): ossm_validate_sendle()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/admin.php(259): do_action()
#4 {main}
thrown
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
The following issues need your attention
- 11× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/official-sendle-shipping-method/sendle-admin-feature.php:3
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/official-sendle-shipping-method/sendle-logs.php on line 56
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/official-sendle-shipping-method/sendle-shipping-global.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/official-sendle-shipping-method/joovii-sendle-shipping.php:46
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/official-sendle-shipping-method/sendle-shipping-zone.php:193
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/official-sendle-shipping-method/cancel-shipment.php:3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/official-sendle-shipping-method/sendle-logs.php on line 56
- > PHP Fatal error
Uncaught Error: Call to undefined function maybe_unserialize() in wp-content/plugins/official-sendle-shipping-method/sendle-shipment-booking.php:557
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/official-sendle-shipping-method/frontend-tracking.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/official-sendle-shipping-method/sendle-widget.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=wc-settings&tab=shipping§ion=ossmsendle
- > Network (severe)
wp-admin/admin.php?page=wc-settings&tab=shipping§ion=ossmsendle - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== official-sendle-shipping-method ===
)
official-sendle-shipping-method/joovii-sendle-shipping.php 77% from 13 tests
The entry point to "Sendle Shipping Plugin" version 5.16 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/lang")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("official-sendle-shipping-method.php" instead of "joovii-sendle-shipping.php")
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 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
No dangerous file extensions were detected2,975 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 435 | 178 | 2,944 |
JavaScript | 1 | 0 | 0 | 21 |
CSS | 1 | 0 | 0 | 10 |
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.40 |
Average class complexity | 11.60 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 3.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.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 | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 66 | |
▷ Named functions | 66 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin