Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼149.71ms] Passed 4 tests
This is a short check of server-side resources used by WC Tiered Shipping
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.00 | 28.61 ▲5.21 |
Dashboard /wp-admin | 3.06 ▼0.00 | 35.23 ▼6.78 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 33.23 ▼0.34 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 73.46 ▼592.77 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 28.56 ▲1.04 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
WC Tiered Shipping: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,667 ▲66 | 15.65 ▲0.01 | 4.83 ▼0.85 | 76.23 ▼1.02 |
Dashboard /wp-admin | 2,926 ▲27 | 6.02 ▼0.14 | 115.94 ▼14.68 | 167.04 ▼6.01 |
Posts /wp-admin/edit.php | 2,737 ▼3 | 3.23 ▼0.01 | 64.38 ▼1.92 | 136.26 ▼9.41 |
Add New Post /wp-admin/post-new.php | 3,807 ▲77 | 18.72 ▲3.40 | 435.50 ▲8.19 | 156.14 ▼9.36 |
Media Library /wp-admin/upload.php | 1,752 ▲3 | 5.45 ▼0.01 | 143.99 ▲0.51 | 176.33 ▼11.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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 take a closer look at the following
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wc-tiered-shipping/inc/add.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function ThreePM\\WCTieredShipping\\add_action() in wp-content/plugins/wc-tiered-shipping/inc/set-assets.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function ThreePM\\WCTieredShipping\\is_admin() in wp-content/plugins/wc-tiered-shipping/inc/plugins-page.php:47
- > PHP Fatal error
Uncaught Error: Call to undefined function ThreePM\\WCTieredShipping\\add_action() in wp-content/plugins/wc-tiered-shipping/inc/activate.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-tiered-shipping/inc/init.php:226
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
3 plugin tags: flat rate, woocommerce, shipping
wc-tiered-shipping/wc-tiered-shipping.php Passed 13 tests
Analyzing the main PHP file in "WC Tiered Shipping" version 3.1.1
89 characters long description:
This WordPress plugin adds a tiered flat rate shipping option for the WooCommerce plugin.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected260 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 79 | 114 | 213 |
JavaScript | 2 | 14 | 20 | 47 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 5.25 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
No PNG files were detected