Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.30MB] [CPU: ▼9.38ms] Passed 4 tests
Analyzing server-side resources used by SKSoftware Postone for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.33 | 36.12 ▼4.83 |
Dashboard /wp-admin | 3.65 ▲0.30 | 48.04 ▼18.52 |
Posts /wp-admin/edit.php | 3.70 ▲0.34 | 50.52 ▼13.63 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.29 | 96.47 ▼0.52 |
Media Library /wp-admin/upload.php | 3.51 ▲0.27 | 39.69 ▲1.07 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by SKSoftware Postone for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,918 ▲172 | 13.54 ▼0.81 | 9.46 ▲7.83 | 36.11 ▼7.51 |
Dashboard /wp-admin | 2,204 ▲24 | 5.66 ▲0.00 | 89.00 ▼10.54 | 41.52 ▲0.17 |
Posts /wp-admin/edit.php | 2,115 ▲10 | 2.01 ▲0.01 | 41.17 ▲1.62 | 37.11 ▲1.55 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 22.93 ▼0.10 | 656.43 ▼24.87 | 49.99 ▼3.41 |
Media Library /wp-admin/upload.php | 1,412 ▲18 | 4.19 ▼0.00 | 105.68 ▲3.27 | 44.55 ▼0.69 |
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 did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
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
Almost there! Just fix the following items
- 11× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/sksoftware-postone-for-woocommerce/admin/partials/settings_table_row_html.php on line 5
- > PHP Notice
Undefined variable: key in wp-content/plugins/sksoftware-postone-for-woocommerce/admin/partials/meta_box_form_field.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/sksoftware-postone-for-woocommerce/admin/partials/meta_box_output.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/sksoftware-postone-for-woocommerce/admin/partials/settings_table_html.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/sksoftware-postone-for-woocommerce/admin/partials/settings_table_decimal_html.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/sksoftware-postone-for-woocommerce/admin/partials/meta_box_form_field.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/sksoftware-postone-for-woocommerce/admin/partials/settings_table_select_html.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/sksoftware-postone-for-woocommerce/admin/partials/settings_table_row_html.php:15
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/sksoftware-postone-for-woocommerce/includes/class-sksoftware-postone-for-woocommerce-shipping-method.php:21
- > PHP Notice
Undefined variable: key in wp-content/plugins/sksoftware-postone-for-woocommerce/admin/partials/meta_box_form_field.php on line 3
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: postone shipping, postone, woocommerce, shipping
sksoftware-postone-for-woocommerce/sksoftware-postone-for-woocommerce.php Passed 13 tests
The main PHP file in "SKSoftware Postone for WooCommerce" ver. 1.0.5 adds more information about the plugin and also serves as the entry point for this plugin
63 characters long description:
This plugin integrates PostOne shipping method for WooCommerce.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin2,388 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 458 | 1,089 | 1,985 |
CSS | 2 | 34 | 7 | 208 |
JavaScript | 6 | 33 | 11 | 195 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 9.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 2.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 90 | |
▷ Static methods | 2 | 2.22% |
▷ Public methods | 66 | 73.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 24 | 26.67% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin