Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼5.25ms] Passed 4 tests
A check of server-side resources used by Deliver via Shipos for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 38.90 ▼2.52 |
Dashboard /wp-admin | 3.40 ▲0.09 | 47.85 ▼3.21 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 51.90 ▲2.55 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 84.78 ▼12.97 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 32.91 ▼2.31 |
Server storage [IO: ▲1.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 125 new files
Database: no new tables, 8 new options
New WordPress options |
---|
dvsfw_install_date |
can_compress_scripts |
dvsfw_dev_mode |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Deliver via Shipos for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲74 | 14.67 ▲0.34 | 2.01 ▲0.21 | 38.84 ▼3.29 |
Dashboard /wp-admin | 2,201 ▲21 | 5.60 ▼0.04 | 93.55 ▼3.74 | 44.13 ▼1.87 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▼0.01 | 36.04 ▼1.14 | 33.51 ▲0.68 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.56 ▲0.40 | 683.90 ▲37.18 | 55.37 ▲1.51 |
Media Library /wp-admin/upload.php | 1,409 ▲6 | 4.18 ▼0.01 | 96.70 ▲0.59 | 44.78 ▲1.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 8 options in the database
- dvsfw_dev_mode
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- dvsfw_install_date
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-shipos-delivery/includes/Pickup.php:89
- > PHP Fatal error
Uncaught Error: Call to undefined function WCShiposDelivery\\add_filter() in wp-content/plugins/wc-shipos-delivery/class/class-settings.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wc-shipos-delivery/includes/matat-actions.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5 in wc-shipos-delivery/assets to your readme.txt
wc-shipos-delivery/wc-shipos-delivery.php Passed 13 tests
Analyzing the main PHP file in "Deliver via Shipos for WooCommerce" version 1.1.4
61 characters long description:
A plugin for Ship os Delivery orders from within WooCommerce.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin19,420 lines of code in 117 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 267 | 1,856 | 10,925 |
Sass | 87 | 1,417 | 1,188 | 5,870 |
PHP | 12 | 338 | 320 | 1,535 |
CSS | 5 | 142 | 0 | 792 |
PO File | 1 | 116 | 128 | 265 |
JSON | 1 | 0 | 0 | 29 |
SVG | 4 | 0 | 0 | 4 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 13.75 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 50 | |
▷ Static methods | 10 | 20.00% |
▷ Public methods | 44 | 88.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 12.00% |
Functions | 25 | |
▷ Named functions | 23 | 92.00% |
▷ Anonymous functions | 2 | 8.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/matatlogo.png | 29.80KB | 10.57KB | ▼ 64.53% |