Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼141.32ms] Passed 4 tests
Server-side resources used by WP e-Commerce Default Lowest Shipping Choice
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.01 | 33.02 ▲0.54 |
Dashboard /wp-admin | 3.06 ▲0.01 | 44.34 ▲7.70 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 45.66 ▼0.58 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 86.87 ▼564.12 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 32.66 ▼1.12 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
WP e-Commerce Default Lowest Shipping Choice: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 16.05 ▲0.64 | 8.32 ▼2.46 | 50.46 ▲7.56 |
Dashboard /wp-admin | 2,966 ▲32 | 5.90 ▼0.08 | 151.14 ▲14.05 | 114.31 ▲6.44 |
Posts /wp-admin/edit.php | 2,739 ▲3 | 2.72 ▲0.01 | 77.42 ▲12.69 | 90.01 ▲6.17 |
Add New Post /wp-admin/post-new.php | 1,672 ▲2 | 18.88 ▼0.27 | 378.26 ▲11.00 | 105.98 ▼2.50 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.03 ▼0.02 | 152.13 ▼4.46 | 119.82 ▲1.23 |
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
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-e-commerce-default-lowest-shipping-choice/wp-e-commerce-default-lowest-shipping-choice.php:37
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 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
3 plugin tags: shipping, default, wp e-commerce
wp-e-commerce-default-lowest-shipping-choice/wp-e-commerce-default-lowest-shipping-choice.php Passed 13 tests
The main PHP file in "WP e-Commerce Default Lowest Shipping Choice" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
131 characters long description:
This plugin changes the checkout logic for WP e-Commerce stores so that the lowest priced shipping rate will be selected by default
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
Good job! No executable or dangerous file extensions detected18 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 9 | 33 | 18 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin