Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.66ms] Passed 4 tests
Server-side resources used by Canada Post Shipping For WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 34.34 ▼0.90 |
Dashboard /wp-admin | 3.32 ▲0.01 | 46.09 ▼3.96 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.34 ▲0.31 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 84.33 ▼6.08 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.75 ▲1.45 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Canada Post Shipping For WooCommerce: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.19 ▼1.19 | 1.72 ▲0.04 | 45.14 ▲7.48 |
Dashboard /wp-admin | 2,203 ▲15 | 5.81 ▼0.05 | 99.18 ▼4.35 | 38.22 ▼1.98 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▲0.07 | 39.22 ▼2.57 | 35.83 ▼2.62 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.20 ▲5.66 | 694.30 ▲15.39 | 51.93 ▲1.86 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.18 ▼0.06 | 104.35 ▼2.00 | 44.98 ▼0.02 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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 items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/canada-post-shipping-for-woocommerce/canada-post-shipping-for-woocommerce-shipping-method.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 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
5 plugin tags: woocommerce, shipping, shipping rates, canada post shipping, canada post
canada-post-shipping-for-woocommerce/canada-post-shipping-for-woocommerce.php 92% from 13 tests
"Canada Post Shipping For WooCommerce" version 2.9.13's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("3.0.1" instead of "3.0.0")
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 detected411 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 86 | 16 | 411 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 34.50 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 6.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 46.15% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 53.85% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.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
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.12MB with 0.08MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
premium_features.png | 118.65KB | 34.90KB | ▼ 70.58% |