Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- The plugin did not install without errors
- > Error in wp-content/plugins/a2z-fedex-shipping/a2zfedex_basic.php+32
Uncaught Error: Call to undefined function WC() in wp-content/plugins/a2z-fedex-shipping/a2zfedex_basic.php:32
Stack trace:
#0 wp-includes/class-wp-hook.php(309): hit_woo_fedex_plugin_activation()
#1 wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(474): WP_Hook->do_action()
#3 wp-admin/includes/plugin.php(716): do_action()
Server metrics [RAM: ▲0.46MB] [CPU: ▼311.24ms] Passed 4 tests
An overview of server-side resources used by Automated FedEx live/manual rates with shipping labels.
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.01 ▲0.49 | 56.00 ▲4.20 |
Dashboard /wp-admin | 3.89 ▲0.48 | 34.95 ▲1.36 |
Posts /wp-admin/edit.php | 4.13 ▲0.48 | 40.06 ▲0.87 |
Add New Post /wp-admin/post-new.php | 7.36 ▲0.39 | 95.33 ▼1,247.89 |
Media Library /wp-admin/upload.php | 3.78 ▲0.48 | 24.75 ▲0.72 |
Server storage [IO: ▲4.65MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 43 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Automated FedEx live/manual rates with shipping labels.
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,795 ▲41 | 16.42 ▲0.51 | 6.50 ▲0.29 | 2.81 ▼0.02 |
Dashboard /wp-admin | 2,892 ▲31 | 6.35 ▼0.07 | 121.85 ▼17.18 | 158.12 ▼8.75 |
Posts /wp-admin/edit.php | 2,694 ▲3 | 3.43 ▲0.00 | 65.37 ▲0.99 | 142.57 ▼4.66 |
Add New Post /wp-admin/post-new.php | 1,660 ▼1 | 16.32 ▲0.21 | 416.57 ▼41.58 | 158.72 ▼6.10 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.73 ▼0.01 | 135.14 ▼10.26 | 186.06 ▼0.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully
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
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
Almost there! Just fix the following items
- 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/a2z-fedex-shipping/controllors/classes/weight_pack/class-hit-weight-strategy-simple.php:28
- > PHP Fatal error
Uncaught Error: Class 'WeightPackStrategy' not found in wp-content/plugins/a2z-fedex-shipping/controllors/classes/weight_pack/class-hit-weight-strategy-ascend.php:28
- > PHP Fatal error
Uncaught Error: Class 'WeightPackStrategy' not found in wp-content/plugins/a2z-fedex-shipping/controllors/classes/weight_pack/class-hit-weight-strategy-descend.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: woocommerce fedex, shipping, fedex shipping, fedex woocommerce, fedex
a2z-fedex-shipping/a2zfedex_basic.php 77% from 13 tests
"Automated FedEx live/manual rates with shipping labels." version 3.1.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("a2z-fedex-shipping.php" instead of "a2zfedex_basic.php")
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.0.1" instead of "2.6")
- Text Domain: The text domain should only use lowercase characters and dashes
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
Success! There were no dangerous files found in this plugin6,366 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 699 | 710 | 5,499 |
XML | 4 | 0 | 0 | 867 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
These items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 195)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 63.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 404.00 |
Average method complexity | 8.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 195.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 | 101 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 92 | 91.09% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 8.91% |
Functions | 1 | |
▷ Named functions | 1 | 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
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% |