Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.93MB] [CPU: ▼29.31ms] Passed 4 tests
Analyzing server-side resources used by Baggage Freight Shipping Australia
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 37.11 ▼5.04 |
Dashboard /wp-admin | 3.02 ▼0.29 | 24.82 ▼18.79 |
Posts /wp-admin/edit.php | 3.02 ▼0.34 | 24.01 ▼17.18 |
Add New Post /wp-admin/post-new.php | 3.02 ▼2.87 | 23.27 ▼71.67 |
Media Library /wp-admin/upload.php | 3.02 ▼0.21 | 22.23 ▼9.59 |
Baggagefreight Shipping /wp-admin/admin.php?page=baggage-freight/baggage_shipping.php | 3.02 | 23.93 |
Registration /wp-admin/admin.php?page=store_owner | 3.02 | 22.14 |
Product Freight Values /wp-admin/admin.php?page=upload_package | 3.02 | 20.96 |
Payment Options /wp-admin/admin.php?page=payment_option | 3.02 | 21.50 |
Shipping Label /wp-admin/admin.php?page=bf_label | 3.02 | 21.27 |
Settings /wp-admin/admin.php?page=store_settings | 3.02 | 21.33 |
Default Freight Settings /wp-admin/admin.php?page=freight_settings | 3.02 | 23.39 |
Server storage [IO: ▲0.95MB] [DB: ▲0.08MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 30 new files
Database: 5 new tables, 7 new options
New tables |
---|
baggage_settings |
baggage_excel |
baggage_storeowner |
baggage_order |
baggage_dimensions |
New WordPress options |
---|
widget_theysaidso_widget |
recovery_mode_email_last_sent |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Baggage Freight Shipping Australia: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,847 ▲112 | 13.21 ▼1.17 | 1.77 ▼0.00 | 37.96 ▼7.81 |
Dashboard /wp-admin | 2,253 ▲64 | 4.89 ▼0.05 | 111.18 ▼5.45 | 41.22 ▼2.93 |
Posts /wp-admin/edit.php | 2,136 ▲47 | 2.00 ▼0.02 | 40.20 ▼2.49 | 35.31 ▼2.08 |
Add New Post /wp-admin/post-new.php | 1,579 ▲51 | 18.34 ▼0.21 | 594.00 ▼23.35 | 54.34 ▼3.72 |
Media Library /wp-admin/upload.php | 1,429 ▲41 | 4.26 ▲0.12 | 100.94 ▲0.22 | 40.93 ▼1.95 |
Baggagefreight Shipping /wp-admin/admin.php?page=baggage-freight/baggage_shipping.php | 709 | 1.14 | 7.00 | 20.76 |
Registration /wp-admin/admin.php?page=store_owner | 709 | 1.14 | 6.61 | 20.03 |
Product Freight Values /wp-admin/admin.php?page=upload_package | 709 | 1.14 | 6.61 | 14.13 |
Payment Options /wp-admin/admin.php?page=payment_option | 709 | 1.53 | 6.83 | 20.61 |
Shipping Label /wp-admin/admin.php?page=bf_label | 842 | 2.01 | 23.78 | 25.50 |
Settings /wp-admin/admin.php?page=store_settings | 709 | 1.14 | 7.60 | 15.64 |
Default Freight Settings /wp-admin/admin.php?page=freight_settings | 901 | 2.06 | 25.57 | 25.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- recovery_mode_email_last_sent
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 119 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=freight_settings
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/admin.php?page=baggage-freight/baggage_shipping.php
- > Error in wp-content/plugins/baggage-freight/dashboard.php+5
Uncaught Error: Call to undefined function mysql_query() in wp-content/plugins/baggage-freight/dashboard.php:5
Stack trace:
#0 wp-content/plugins/baggage-freight/baggage_shipping.php(164): include()
#1 wp-includes/class-wp-hook.php(310): pro_admin_dashboard()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 {main}
thrown- > GET request to /wp-admin/admin.php?page=store_owner
- > Error in wp-content/plugins/baggage-freight/store-owner.php+5
Uncaught Error: Call to undefined function mysql_query() in wp-content/plugins/baggage-freight/store-owner.php:5
Stack trace:
#0 wp-content/plugins/baggage-freight/baggage_shipping.php(170): include()
#1 wp-includes/class-wp-hook.php(310): pro_admin_store_owner()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 {main}
thrown- > GET request to /wp-admin/admin.php?page=upload_package
- > Parse error in wp-content/plugins/baggage-freight/freader/reader.php+101
syntax error, unexpected 'new' (T_NEW)
- > GET request to /wp-admin/admin.php?page=payment_option
- > Error in wp-content/plugins/baggage-freight/bf_payment.php+7
Uncaught Error: Call to undefined function mysql_query() in wp-content/plugins/baggage-freight/bf_payment.php:7
Stack trace:
#0 wp-content/plugins/baggage-freight/baggage_shipping.php(203): include()
#1 wp-includes/class-wp-hook.php(310): pro_payment_option()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 {main}
thrown- > GET request to /wp-admin/admin.php?page=bf_label
- > Notice in wp-content/plugins/baggage-freight/bf_label.php+21
Trying to get property 'Email' of non-object
- > GET request to /wp-admin/admin.php?page=bf_label
- > Notice in wp-content/plugins/baggage-freight/bf_label.php+22
Trying to get property 'Password' of non-object
- > GET request to /wp-admin/admin.php?page=store_settings
- > Error in wp-content/plugins/baggage-freight/bf_settings.php+7
Uncaught Error: Call to undefined function mysql_query() in wp-content/plugins/baggage-freight/bf_settings.php:7
Stack trace:
#0 wp-content/plugins/baggage-freight/baggage_shipping.php(193): include()
#1 wp-includes/class-wp-hook.php(310): pro_admin_bf_settings()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 {main}
thrown- > GET request to /wp-admin/admin.php?page=freight_settings
- > Notice in wp-content/plugins/baggage-freight/bf_freightsettings.php+7
Trying to get property 'height' of non-object
- > GET request to /wp-admin/admin.php?page=freight_settings
- > Notice in wp-content/plugins/baggage-freight/bf_freightsettings.php+8
Trying to get property 'width' of non-object
- > GET request to /wp-admin/admin.php?page=freight_settings
- > Notice in wp-content/plugins/baggage-freight/bf_freightsettings.php+9
Trying to get property 'length' of non-object
- > GET request to /wp-admin/admin.php?page=freight_settings
- > Notice in wp-content/plugins/baggage-freight/bf_freightsettings.php+43
Undefined variable: msg
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 fix the following
- 16× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined index: action in wp-content/plugins/baggage-freight/packed_items.php on line 180
- > PHP Fatal error
Uncaught Error: Call to undefined function mysql_query() in wp-content/plugins/baggage-freight/store-owner.php:5
- > PHP Fatal error
Uncaught Error: Call to a member function get_row() on null in wp-content/plugins/baggage-freight/bf_freightsettings.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function mysql_query() in wp-content/plugins/baggage-freight/bf_settings.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function mysql_query() in wp-content/plugins/baggage-freight/dashboard.php:5
- > PHP Parse error
syntax error, unexpected 'new' (T_NEW) in wp-content/plugins/baggage-freight/freader/reader.php on line 101
- > PHP Fatal error
Uncaught Error: Call to a member function get_row() on null in wp-content/plugins/baggage-freight/packed_items.php:203
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/baggage-freight/class-wc-baggagefreight.php:565
- > PHP Notice
Undefined index: action_s in wp-content/plugins/baggage-freight/packed_items.php on line 157
- > PHP Notice
Undefined index: updatep in wp-content/plugins/baggage-freight/packed_items.php on line 2
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
- Donate link: Invalid url: "N.A"
baggage-freight/baggage_shipping.php 92% from 13 tests
The principal PHP file in "Baggage Freight Shipping Australia" v. 0.1.0 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("baggage-freight.php" instead of "baggage_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
Good job! No executable or dangerous file extensions detected4,145 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 2,575 | 83 | 3,156 |
JavaScript | 1 | 135 | 97 | 989 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 76.00 |
▷ Minimum class complexity | 34.00 |
▷ Maximum class complexity | 118.00 |
Average method complexity | 7.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 19 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 40 | |
▷ Global constants | 40 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
10 PNG files occupy 0.71MB with 0.40MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/registration.png | 42.62KB | 13.98KB | ▼ 67.20% |
images/Settings.png | 68.24KB | 26.53KB | ▼ 61.12% |
screenshot/1.png | 175.01KB | 62.44KB | ▼ 64.32% |
images/logo_bf.png | 16.69KB | 12.54KB | ▼ 24.87% |
screenshot/2.png | 88.80KB | 34.25KB | ▼ 61.43% |