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
Please fix the following installer errors
- The plugin did not install without errors
- > Error in wp-content/plugins/a2z-ups-shipping/a2zups_basic.php+34
Uncaught Error: Call to undefined function WC() in wp-content/plugins/a2z-ups-shipping/a2zups_basic.php:34
Stack trace:
#0 wp-includes/class-wp-hook.php(312): hit_woo_ups_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.56MB] [CPU: ▲3.90ms] Passed 4 tests
This is a short check of server-side resources used by Automated UPS Shipping for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.03 ▲0.56 | 37.89 ▲1.75 |
Dashboard /wp-admin | 3.87 ▲0.56 | 50.80 ▲2.81 |
Posts /wp-admin/edit.php | 3.98 ▲0.63 | 49.48 ▲2.83 |
Add New Post /wp-admin/post-new.php | 6.45 ▲0.56 | 94.88 ▲13.18 |
Media Library /wp-admin/upload.php | 3.79 ▲0.56 | 38.56 ▲8.19 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Automated UPS Shipping for WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.22 ▼0.13 | 1.68 ▲0.11 | 39.14 ▼5.30 |
Dashboard /wp-admin | 2,198 ▲21 | 5.65 ▲0.01 | 91.27 ▼7.73 | 41.85 ▼4.71 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.97 ▼0.06 | 41.51 ▲2.76 | 39.12 ▲8.83 |
Add New Post /wp-admin/post-new.php | 1,540 ▲14 | 23.23 ▲0.12 | 599.77 ▼20.22 | 54.44 ▼2.22 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.15 ▼0.04 | 96.80 ▼0.53 | 41.58 ▼0.31 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WeightPackStrategy' not found in wp-content/plugins/a2z-ups-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-ups-shipping/controllors/classes/weight_pack/class-hit-weight-strategy-descend.php:28
- > PHP Fatal error
Uncaught Error: Class 'WeightPackStrategy' not found in wp-content/plugins/a2z-ups-shipping/controllors/classes/weight_pack/class-hit-weight-strategy-ascend.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, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: A description for screenshot #7 is missing in a2z-ups-shipping/assets to your readme.txt
a2z-ups-shipping/a2zups_basic.php 77% from 13 tests
"Automated UPS Shipping for WooCommerce" version 4.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Text Domain: The text domain should only use lowercase characters and dashes
- Main file name: The principal plugin file should be the same as the plugin slug ("a2z-ups-shipping.php" instead of "a2zups_basic.php")
- Requires at least: Required version does not 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 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected6,386 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 640 | 663 | 5,987 |
XML | 3 | 0 | 0 | 236 |
HTML | 1 | 14 | 1 | 163 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 159)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 70.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 530.00 |
Average method complexity | 9.01 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 159.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 | 113 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 101 | 89.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 10.62% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
controllors/views/ups_logo.png | 4.57KB | 2.93KB | ▼ 35.94% |
controllors/views/hups.png | 7.16KB | 3.46KB | ▼ 51.69% |