Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Error in wp-content/plugins/a2z-fedex-shipping/a2zfedex_basic.php+41
Uncaught Error: Call to undefined function WC() in wp-content/plugins/a2z-fedex-shipping/a2zfedex_basic.php:41
Stack trace:
#0 wp-includes/class-wp-hook.php(312): 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.52MB] [CPU: ▼1.06ms] Passed 4 tests
A check of server-side resources used by Automated FedEx live/manual rates with shipping labels - HPOS supported
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.98 ▲0.52 | 42.28 ▲0.06 |
Dashboard /wp-admin | 3.83 ▲0.52 | 47.96 ▼0.46 |
Posts /wp-admin/edit.php | 3.94 ▲0.58 | 49.86 ▲7.02 |
Add New Post /wp-admin/post-new.php | 6.41 ▲0.52 | 96.74 ▼5.96 |
Media Library /wp-admin/upload.php | 3.75 ▲0.52 | 35.61 ▲2.12 |
Server storage [IO: ▲4.72MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 45 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Automated FedEx live/manual rates with shipping labels - HPOS supported
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.70 ▼0.01 | 1.82 ▼0.18 | 43.65 ▼1.13 |
Dashboard /wp-admin | 2,195 ▲24 | 5.62 ▼0.02 | 97.46 ▼3.92 | 37.08 ▼6.18 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 2.00 ▼0.01 | 39.99 ▲1.60 | 36.17 ▲0.21 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 22.99 ▼0.31 | 744.94 ▲139.71 | 52.75 ▲4.97 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.19 ▼0.01 | 99.20 ▼5.16 | 43.85 ▼1.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > 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-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-descend.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: fedex woocommerce, fedex, shipping, fedex shipping, woocommerce fedex
a2z-fedex-shipping/a2zfedex_basic.php 77% from 13 tests
The main PHP script in "Automated FedEx live/manual rates with shipping labels - HPOS supported" version 4.4.4 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("a2z-fedex-shipping.php" instead of "a2zfedex_basic.php")
- Text Domain: The text domain should only use lowercase characters and dashes
- 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 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin7,579 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 672 | 758 | 6,677 |
XML | 4 | 0 | 0 | 870 |
JSON | 1 | 0 | 0 | 32 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
It is recommended to fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 293)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 80.77 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 491.00 |
Average method complexity | 9.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 293.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 1 | 7.69% |
▷ Concrete classes | 12 | 92.31% |
▷ Final classes | 0 | 0.00% |
Methods | 119 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 100 | 84.03% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 19 | 15.97% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.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/hfedex.png | 5.93KB | 3.08KB | ▼ 48.01% |
controllors/views/fedex.png | 71.44KB | 18.16KB | ▼ 74.58% |