Benchmarks
Plugin footprint 65% 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.48MB] [CPU: ▲2.33ms] Passed 4 tests
An overview of server-side resources used by Mypacco
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.03 ▲0.57 | 49.07 ▲9.80 |
Dashboard /wp-admin | 3.77 ▲0.46 | 50.04 ▲3.03 |
Posts /wp-admin/edit.php | 3.88 ▲0.53 | 49.42 ▲1.57 |
Add New Post /wp-admin/post-new.php | 6.35 ▲0.46 | 91.91 ▼3.30 |
Media Library /wp-admin/upload.php | 3.69 ▲0.46 | 43.18 ▲8.02 |
Orders /wp-admin/admin.php?page=mypacco-orders | 3.65 | 38.37 |
Manage Warehouse /wp-admin/admin.php?page=mypacco-manage-warehouse | 3.65 | 36.41 |
/wp-admin/admin.php?page=mypacco_add_warehouse | 3.66 | 37.65 |
/wp-admin/admin.php?page=mypacco_add_order | 3.65 | 37.88 |
Mypacco /wp-admin/admin.php?page=mypacco-menu | 3.65 | 37.91 |
Validate Pincode /wp-admin/admin.php?page=mypacco-validate-pincode | 3.65 | 37.45 |
Track Orders /wp-admin/admin.php?page=mypacco-track-orders | 3.65 | 36.44 |
Configuration /wp-admin/admin.php?page=mypacco-config | 3.65 | 37.73 |
/wp-admin/admin.php?page=mypacco_edit_order | 3.63 | 36.77 |
Server storage [IO: ▲0.38MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 36 new files
Database: 4 new tables, 6 new options
New tables |
---|
wp_mypacco_order_master |
wp_mypacco_warehouse |
wp_mypacco_setup |
wp_mypacco_order_item_master |
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Mypacco
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,145 ▲410 | 18.19 ▲3.81 | 15.77 ▲14.16 | 33.13 ▼11.44 |
Dashboard /wp-admin | 2,323 ▲132 | 7.46 ▲2.56 | 135.40 ▲30.00 | 43.41 ▲2.20 |
Posts /wp-admin/edit.php | 2,215 ▲126 | 4.27 ▲2.20 | 62.28 ▲26.46 | 47.95 ▲12.95 |
Add New Post /wp-admin/post-new.php | 1,626 ▲91 | 24.87 ▲1.61 | 657.78 ▼31.97 | 38.04 ▼25.62 |
Media Library /wp-admin/upload.php | 1,514 ▲129 | 6.79 ▲2.60 | 121.23 ▲13.56 | 39.72 ▼5.73 |
Orders /wp-admin/admin.php?page=mypacco-orders | 858 | 3.90 | 45.35 | 30.79 |
Manage Warehouse /wp-admin/admin.php?page=mypacco-manage-warehouse | 895 | 3.88 | 48.67 | 28.24 |
/wp-admin/admin.php?page=mypacco_add_warehouse | 869 | 3.81 | 49.31 | 29.08 |
/wp-admin/admin.php?page=mypacco_add_order | 1,096 | 3.79 | 49.06 | 30.86 |
Mypacco /wp-admin/admin.php?page=mypacco-menu | 923 | 3.75 | 49.07 | 25.44 |
Validate Pincode /wp-admin/admin.php?page=mypacco-validate-pincode | 895 | 3.87 | 48.68 | 28.30 |
Track Orders /wp-admin/admin.php?page=mypacco-track-orders | 858 | 3.93 | 48.43 | 24.71 |
Configuration /wp-admin/admin.php?page=mypacco-config | 911 | 3.85 | 49.35 | 29.23 |
/wp-admin/admin.php?page=mypacco_edit_order | 1,007 | 4.19 | 45.88 | 31.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The uninstall procedure failed, leaving 4 tables in the database
- wp_mypacco_order_item_master
- wp_mypacco_setup
- wp_mypacco_warehouse
- wp_mypacco_order_master
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 10 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mypacco_edit_order
- > POST request to /wp-admin/admin-ajax.php?action=reaload_status
- > Warning in wp-content/plugins/mypacco/mypacco.php+907
Illegal string offset 'access_token'
- 10 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mypacco_edit_order
- > POST request to /wp-admin/admin-ajax.php?action=reaload_status
- > Notice in wp-content/plugins/mypacco/mypacco.php+907
Uninitialized string offset: 0
- > GET request to /wp-admin/admin.php?page=mypacco_edit_order
- > Notice in wp-content/plugins/mypacco/mypacco.php+2464
Undefined index: id
- 13 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mypacco_edit_order
- > Notice in wp-content/plugins/mypacco/mypacco.php+2542
Undefined offset: 0
- > GET request to /wp-admin/admin.php?page=mypacco_edit_order
- > Notice in wp-content/plugins/mypacco/mypacco.php+2486
Trying to get property 'delivery_fullname' of non-object
- > GET request to /wp-admin/admin.php?page=mypacco_edit_order
- > Notice in wp-content/plugins/mypacco/mypacco.php+2487
Trying to get property 'order_id' of non-object
- > GET request to /wp-admin/admin.php?page=mypacco_edit_order
- > Notice in wp-content/plugins/mypacco/mypacco.php+2500
Trying to get property 'delivery_state' of non-object
- > GET request to /wp-admin/admin.php?page=mypacco_edit_order
- > Notice in wp-content/plugins/mypacco/mypacco.php+2506
Trying to get property 'delivery_mobile' of non-object
- > GET request to /wp-admin/admin.php?page=mypacco_edit_order
- > Notice in wp-content/plugins/mypacco/mypacco.php+2508
Trying to get property 'delivery_pincode' of non-object
- > GET request to /wp-admin/admin.php?page=mypacco_edit_order
- > Notice in wp-content/plugins/mypacco/mypacco.php+2510
Trying to get property 'delivery_country' of non-object
- > GET request to /wp-admin/admin.php?page=mypacco_edit_order
- > Notice in wp-content/plugins/mypacco/mypacco.php+2514
Trying to get property 'delivery_email' of non-object
- > GET request to /wp-admin/admin.php?page=mypacco_edit_order
- > Notice in wp-content/plugins/mypacco/mypacco.php+2518
Trying to get property 'delivery_city' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mypacco_edit_order
- > Notice in wp-content/plugins/mypacco/mypacco.php+2523
Trying to get property 'transport_mode' of non-object
- > GET request to /wp-admin/admin.php?page=mypacco_edit_order
- > Notice in wp-content/plugins/mypacco/mypacco.php+2536
Trying to get property 'delivery_address' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mypacco_edit_order
- > Notice in wp-content/plugins/mypacco/mypacco.php+2542
Trying to get property 'payment_type' of non-object
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
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mypacco/mypacco.php:176
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
10 plugin tags: shipping, shipping cost, shipping product, international shipping, shipping rate...
mypacco/mypacco.php 92% from 13 tests
The primary PHP file in "Mypacco" version 0.9.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 600 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected6,575 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 8 | 498 | 893 | 2,959 |
PHP | 2 | 418 | 377 | 2,096 |
CSS | 6 | 284 | 169 | 1,520 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 35 | |
▷ Named functions | 35 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
17 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/datatable/images/sort_both.png | 1.11KB | 0.29KB | ▼ 74.12% |
assets/images/woocommerce_module.png | 11.42KB | 5.52KB | ▼ 51.65% |
assets/css/datatable/images/forward_enabled.png | 1.05KB | 0.19KB | ▼ 82.26% |
assets/images/mypacco-logo.png | 4.02KB | 2.57KB | ▼ 36.04% |
assets/js/datatable/images/sort_desc.png | 1.10KB | 0.25KB | ▼ 77.73% |