Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- Install procedure had errors
- > Error in wp-content/plugins/hittech-fedex-shipping-with-live-rates-and-shipping-labels/hittech_fedex_basic.php+32
Uncaught Error: Call to undefined function WC() in wp-content/plugins/hittech-fedex-shipping-with-live-rates-and-shipping-labels/hittech_fedex_basic.php:32
Stack trace:
#0 wp-includes/class-wp-hook.php(312): hittech_hit_woo_fedex_plugin_activation()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/includes/plugin.php(720): do_action()
Server metrics [RAM: ▲0.42MB] [CPU: ▲2.13ms] Passed 4 tests
Server-side resources used by Fedex Shipping With Live rates and shipping labels.
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.89 ▲0.42 | 44.49 ▲3.31 |
Dashboard /wp-admin | 3.73 ▲0.42 | 51.17 ▲2.91 |
Posts /wp-admin/edit.php | 3.78 ▲0.42 | 46.85 ▲2.18 |
Add New Post /wp-admin/post-new.php | 6.31 ▲0.42 | 95.55 ▲0.13 |
Media Library /wp-admin/upload.php | 3.65 ▲0.42 | 37.31 ▲5.21 |
Server storage [IO: ▲4.95MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 49 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Fedex Shipping With Live rates and shipping labels.
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.73 ▼0.86 | 2.14 ▲0.48 | 42.21 ▲1.03 |
Dashboard /wp-admin | 2,209 ▲24 | 4.86 ▼0.03 | 101.83 ▼3.47 | 41.20 ▼0.58 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.00 | 33.86 ▼2.46 | 34.09 ▲0.24 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.19 ▼0.01 | 621.64 ▼43.70 | 52.34 ▲1.97 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.19 ▲0.07 | 98.55 ▲1.69 | 41.07 ▼0.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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 take a closer look at the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WeightPackStrategy' not found in wp-content/plugins/hittech-fedex-shipping-with-live-rates-and-shipping-labels/controllors/classes/weight_pack/class-hit-weight-strategy-ascend.php:7
- > PHP Fatal error
Uncaught Error: Class 'WeightPackStrategy' not found in wp-content/plugins/hittech-fedex-shipping-with-live-rates-and-shipping-labels/controllors/classes/weight_pack/class-hit-weight-strategy-simple.php:7
- > PHP Fatal error
Uncaught Error: Class 'WeightPackStrategy' not found in wp-content/plugins/hittech-fedex-shipping-with-live-rates-and-shipping-labels/controllors/classes/weight_pack/class-hit-weight-strategy-descend.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: fedex, woocommerce fedex, shipping, fedex shipping, fedex woocommerce
hittech-fedex-shipping-with-live-rates-and-shipping-labels/hittech_fedex_basic.php 77% from 13 tests
The entry point to "Fedex Shipping With Live rates and shipping labels." version 1.0.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Main file name: Name the main plugin file the same as the plugin slug ("hittech-fedex-shipping-with-live-rates-and-shipping-labels.php" instead of "hittech_fedex_basic.php")
- Requires at least: Required version must match the one declared in readme.txt ("4.0.1" instead of "2.6")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected5,836 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 622 | 521 | 4,969 |
XML | 4 | 0 | 0 | 867 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
It is recommended to fix the following
- Method cyclomatic complexity has to be reduced to less than 100 (currently 174)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 51.58 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 282.00 |
Average method complexity | 7.01 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 174.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 1 | 8.33% |
▷ Concrete classes | 11 | 91.67% |
▷ Final classes | 0 | 0.00% |
Methods | 102 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 93 | 91.18% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 8.82% |
Functions | 2 | |
▷ Named functions | 2 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
controllors/views/fedex.png | 71.44KB | 18.16KB | ▼ 74.58% |
controllors/views/hfedex.png | 5.93KB | 3.08KB | ▼ 48.01% |