Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.24ms] Passed 4 tests
Server-side resources used by WC Tiered Shipping
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.58 ▲0.21 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.87 ▼6.09 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.13 ▲1.05 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.44 ▼6.41 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.93 ▼0.67 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by WC Tiered Shipping
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 13.26 ▼1.12 | 1.68 ▼0.28 | 44.32 ▼0.88 |
Dashboard /wp-admin | 2,209 ▲24 | 5.90 ▼0.15 | 110.28 ▼4.67 | 41.38 ▼3.77 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 1.99 ▼0.03 | 39.86 ▲3.07 | 35.26 ▼1.22 |
Add New Post /wp-admin/post-new.php | 1,514 ▼19 | 17.54 ▼5.63 | 673.14 ▲14.21 | 63.68 ▲12.05 |
Media Library /wp-admin/upload.php | 1,385 ▼0 | 4.31 ▲0.06 | 96.70 ▲0.52 | 43.59 ▲3.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
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
Everything seems fine, however this is by no means an exhaustive test
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
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > 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 add_action() in wp-content/plugins/wc-tiered-shipping/inc/init.php:226
- > 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
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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: woocommerce, flat rate, shipping
wc-tiered-shipping/wc-tiered-shipping.php Passed 13 tests
The main PHP file in "WC Tiered Shipping" ver. 3.1.1 adds more information about the plugin and also serves as the entry point for this plugin
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 file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin260 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
This is a short overview of cyclomatic complexity and code structure for this plugin
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 images were found in this plugin