Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼7.17ms] Passed 4 tests
This is a short check of server-side resources used by WooCommerce Advanced Free Shipping
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 42.48 ▼1.95 |
Dashboard /wp-admin | 3.33 ▲0.02 | 46.60 ▼7.13 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 48.03 ▼1.33 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 88.18 ▼16.20 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.90 ▼3.39 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 89 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce Advanced Free Shipping
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.41 ▲0.01 | 1.74 ▲0.20 | 40.92 ▼8.15 |
Dashboard /wp-admin | 2,203 ▲18 | 5.80 ▲0.91 | 110.56 ▼23.53 | 45.49 ▲2.39 |
Posts /wp-admin/edit.php | 2,068 ▼24 | 2.04 ▲0.06 | 36.70 ▼2.44 | 31.76 ▼4.70 |
Add New Post /wp-admin/post-new.php | 1,543 ▲24 | 22.75 ▼0.58 | 623.61 ▼36.13 | 88.55 ▲24.07 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.09 ▼0.12 | 109.10 ▼16.89 | 47.37 ▲3.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
woocommerce-advanced-free-shipping/woocommerce-advanced-free-shipping.php 92% from 13 tests
The main PHP script in "WooCommerce Advanced Free Shipping" version 1.1.6 is automatically included on every request by WordPress
Please take the time to fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.0" instead of "3.0.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected4,409 lines of code in 79 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 59 | 1,260 | 736 | 2,692 |
PO File | 6 | 471 | 675 | 1,051 |
Sass | 2 | 39 | 7 | 311 |
JavaScript | 7 | 71 | 45 | 272 |
YAML | 1 | 1 | 0 | 42 |
JSON | 2 | 0 | 0 | 39 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 5.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 1.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 51 | |
▷ Abstract classes | 1 | 1.96% |
▷ Concrete classes | 50 | 98.04% |
▷ Final classes | 0 | 0.00% |
Methods | 227 | |
▷ Static methods | 2 | 0.88% |
▷ Public methods | 223 | 98.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 1.76% |
Functions | 15 | |
▷ Named functions | 14 | 93.33% |
▷ Anonymous functions | 1 | 6.67% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin