Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼4.87ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce Calculate Shipping Button
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.81 ▲1.19 |
Dashboard /wp-admin | 3.34 ▲0.04 | 44.73 ▼4.62 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 44.27 ▼2.98 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 88.45 ▼9.97 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 34.00 ▼1.92 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by WooCommerce Calculate Shipping Button
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.57 ▼0.81 | 5.21 ▲3.34 | 39.87 ▼2.21 |
Dashboard /wp-admin | 2,203 ▲11 | 5.95 ▲1.02 | 97.18 ▼14.90 | 39.23 ▼3.58 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.01 ▲0.02 | 39.64 ▲0.53 | 33.94 ▲4.58 |
Add New Post /wp-admin/post-new.php | 1,529 ▼6 | 23.05 ▼0.16 | 587.52 ▼75.01 | 56.94 ▼1.18 |
Media Library /wp-admin/upload.php | 1,382 ▼9 | 4.23 ▲0.00 | 93.36 ▼4.26 | 43.24 ▼1.58 |
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
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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 items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/woocommerce-calculate-shipping-button/gstudio_calculateshippingbtn.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues 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
3 plugin tags: woocommerce, shipping calculator, wordpress
woocommerce-calculate-shipping-button/gstudio_calculateshippingbtn.php 92% from 13 tests
The main file in "WooCommerce Calculate Shipping Button" v. 3.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("woocommerce-calculate-shipping-button.php" instead of "gstudio_calculateshippingbtn.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected530 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 103 | 73 | 504 |
CSS | 1 | 3 | 0 | 16 |
JavaScript | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-5.png | 15.88KB | 8.50KB | ▼ 46.46% |
screenshot-1.png | 33.14KB | 16.75KB | ▼ 49.46% |
screenshot-2.png | 5.76KB | 3.63KB | ▼ 37.04% |
screenshot-3.png | 9.25KB | 5.46KB | ▼ 41.04% |
screenshot-4.png | 7.32KB | 4.61KB | ▼ 37.00% |