Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.36ms] Passed 4 tests
This is a short check of server-side resources used by Advanced Shipping Methods for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.96 ▼5.63 |
Dashboard /wp-admin | 3.31 ▲0.01 | 49.20 ▼0.77 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 51.04 ▼0.21 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 92.26 ▼10.82 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 42.65 ▲2.19 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Advanced Shipping Methods for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.42 ▲0.07 | 1.77 ▼0.09 | 42.75 ▲0.50 |
Dashboard /wp-admin | 2,192 ▲15 | 5.65 ▲0.08 | 87.43 ▼1.57 | 43.67 ▲1.93 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▲0.04 | 35.63 ▼0.63 | 32.72 ▼5.39 |
Add New Post /wp-admin/post-new.php | 1,528 ▼0 | 23.08 ▲0.12 | 700.87 ▲7.59 | 55.49 ▼6.85 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.17 ▲0.01 | 119.49 ▲5.25 | 53.83 ▲1.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
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
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/asm-wc/admin/partials/asm-wc-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% from 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: time based shipping, advanced shipping, woocommerce shipping methods
asm-wc/advanced-shipping-methods-for-woocommerce.php 92% from 13 tests
Analyzing the main PHP file in "Advanced Shipping Methods for WooCommerce" version 1.0.0
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("asm-wc.php" instead of "advanced-shipping-methods-for-woocommerce.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin1,842 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 166 | 137 | 881 |
PHP | 14 | 200 | 541 | 851 |
CSS | 3 | 18 | 47 | 110 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 20.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 139.00 |
Average method complexity | 5.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 4 | 11.76% |
▷ Public methods | 26 | 76.47% |
▷ Protected methods | 4 | 11.76% |
▷ Private methods | 4 | 11.76% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected