Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.81ms] Passed 4 tests
An overview of server-side resources used by ELEX ShipEngine UPS & FedEx Shipping Method
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 43.36 ▲0.11 |
Dashboard /wp-admin | 3.33 ▼0.02 | 54.31 ▼13.31 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 50.31 ▼1.63 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 85.01 ▼20.42 |
Media Library /wp-admin/upload.php | 3.26 ▲0.02 | 38.96 ▲0.49 |
Server storage [IO: ▲1.24MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for ELEX ShipEngine UPS & FedEx Shipping Method
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.15 ▼0.13 | 1.86 ▲0.20 | 45.69 ▲4.91 |
Dashboard /wp-admin | 2,201 ▲27 | 5.59 ▲0.02 | 96.64 ▲2.00 | 41.02 ▼0.33 |
Posts /wp-admin/edit.php | 2,107 ▲4 | 2.02 ▲0.02 | 41.64 ▲3.84 | 36.98 ▼1.06 |
Add New Post /wp-admin/post-new.php | 1,532 ▲4 | 23.05 ▼0.05 | 653.48 ▼34.01 | 54.68 ▼3.41 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.18 ▲0.05 | 97.21 ▼16.32 | 42.68 ▼3.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/elex-shipengine-shipping-method/review_and_troubleshoot_notify/resources/logo.php
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/elex-shipengine-shipping-method/includes/market.php:49
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/elex-shipengine-shipping-method/includes/class-wf-shipping-shipengine.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/elex-shipengine-shipping-method/includes/html-wf-services.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/elex-shipengine-shipping-method/review_and_troubleshoot_notify/resources/troubleshoot.php:59
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/elex-shipengine-shipping-method/review_and_troubleshoot_notify/resources/review.php:58
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 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
Attributes that require attention:
- Screenshots: Screenshot #3 (Domestic Rates) image missing
- Donate link: Invalid URI ("")
elex-shipengine-shipping-method/shipengine-woocommerce-shipping.php 85% from 13 tests
This is the main PHP file of "ELEX ShipEngine UPS & FedEx Shipping Method" version 1.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Requires at least: Required version must match the one declared in readme.txt ("3.0.1" instead of "2.6.0")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("elex-shipengine-shipping-method.php" instead of "shipengine-woocommerce-shipping.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin11,498 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 1,746 | 27 | 9,496 |
PHP | 14 | 259 | 195 | 1,914 |
JavaScript | 2 | 12 | 3 | 88 |
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.53 |
Average class complexity | 30.29 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 155.00 |
Average method complexity | 5.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 65.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 4 | 8.16% |
▷ Public methods | 39 | 79.59% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 20.41% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 0.94MB with 0.70MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/images/dhl.png | 75.26KB | 17.95KB | ▼ 76.15% |
resources/images/prod-logos.png | 138.04KB | 37.87KB | ▼ 72.57% |
resources/images/address_validation.png | 93.76KB | 25.80KB | ▼ 72.48% |
resources/images/australia_post.png | 82.67KB | 20.31KB | ▼ 75.44% |
resources/images/hide_shipping_method.png | 81.41KB | 18.67KB | ▼ 77.06% |