Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.71MB] [CPU: ▼0.71ms] Passed 4 tests
This is a short check of server-side resources used by Fast Courier - Shipping & Freight
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.12 ▲0.65 | 27.96 ▼11.82 |
Dashboard /wp-admin | 4.05 ▲0.74 | 50.89 ▲1.68 |
Posts /wp-admin/edit.php | 4.10 ▲0.74 | 54.18 ▲1.96 |
Add New Post /wp-admin/post-new.php | 6.59 ▲0.70 | 99.64 ▲15.36 |
Media Library /wp-admin/upload.php | 3.97 ▲0.74 | 39.59 ▲5.34 |
Server storage [IO: ▲10.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 306 new files
Database: 3 new tables, 6 new options
New tables |
---|
wp_product_fc_packages |
wp_fc_cron_logs |
wp_fc_packages |
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Fast Courier - Shipping & Freight
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,488 ▼274 | 14.37 ▼0.34 | 0.59 ▼0.99 | 17.00 ▼22.11 |
Dashboard /wp-admin | 2,214 ▲37 | 4.96 ▼0.69 | 100.09 ▼2.09 | 87.79 ▲39.10 |
Posts /wp-admin/edit.php | 2,134 ▲34 | 2.57 ▲0.60 | 40.57 ▼0.16 | 30.82 ▼9.41 |
Add New Post /wp-admin/post-new.php | 1,712 ▲186 | 22.94 ▲0.08 | 612.35 ▲24.39 | 49.01 ▼2.58 |
Media Library /wp-admin/upload.php | 1,498 ▲95 | 4.65 ▲0.45 | 104.20 ▲2.58 | 66.71 ▲23.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The plugin did not uninstall successfully, leaving 3 tables in the database
- wp_product_fc_packages
- wp_fc_cron_logs
- wp_fc_packages
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- 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
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/fast-courier-shipping-freight/views/views/common/loader.php
- > /wp-content/plugins/fast-courier-shipping-freight/views/views/location-add.php
- 102× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'FastCourier\\FastCourierLocation' not found in wp-content/plugins/fast-courier-shipping-freight/views/views/merchant.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fast-courier-shipping-freight/functions.php:79
- > PHP Fatal error
Uncaught Error: Class 'DVDoug\\BoxPacker\\Test\\TestItem' not found in wp-content/plugins/fast-courier-shipping-freight/vendor/dvdoug/boxpacker/tests/Test/ConstrainedPlacementByCountTestItem.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function fc_format_order_filters() in wp-content/plugins/fast-courier-shipping-freight/views/views/unprocessed-orders.php:4
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/fast-courier-shipping-freight/vendor/dvdoug/boxpacker/tests/OrientatedItemTest.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function fc_format_order_filters() in wp-content/plugins/fast-courier-shipping-freight/views/views/fallback-orders.php:4
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/fast-courier-shipping-freight/views/views/single-order.php on line 7
- > PHP Notice
Undefined variable: order in wp-content/plugins/fast-courier-shipping-freight/views/woocommerce/order/order-details.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'DVDoug\\BoxPacker\\Test\\TestItem' not found in wp-content/plugins/fast-courier-shipping-freight/vendor/dvdoug/boxpacker/tests/Test/ConstrainedTestItem.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_js() in wp-content/plugins/fast-courier-shipping-freight/configs.php:23
- > 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 errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Donate link: Please fix this invalid url: "#"
fast-courier-shipping-freight/settings.php 85% from 13 tests
"Fast Courier - Shipping & Freight" version 3.1.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 271 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("fast-courier-shipping-freight.php" instead of "settings.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Please fix the following items
- Do not include executable or dangerous files in your plugin
- .ps1 - Windows PowerShell Cmdlet in Windows
- ☣ wp-content/plugins/fast-courier-shipping-freight/vendor/dvdoug/boxpacker/docs/build.ps1
- .ps1 - Windows PowerShell Cmdlet in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 24 | 5,965 | 139 | 15,328 |
JavaScript | 74 | 3,550 | 1,152 | 14,746 |
PHP | 118 | 2,373 | 2,854 | 13,852 |
Markdown | 4 | 159 | 0 | 609 |
YAML | 5 | 48 | 3 | 243 |
HTML | 1 | 31 | 0 | 234 |
JSON | 4 | 0 | 0 | 212 |
reStructuredText | 9 | 151 | 287 | 201 |
Cucumber | 3 | 22 | 0 | 165 |
Python | 1 | 39 | 92 | 40 |
XML | 1 | 5 | 1 | 26 |
make | 1 | 4 | 6 | 10 |
Dockerfile | 1 | 1 | 0 | 2 |
PowerShell | 1 | 0 | 0 | 2 |
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 | 9.15 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 2.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 7 | |
Traits | 2 | |
Classes | 66 | |
▷ Abstract classes | 2 | 3.03% |
▷ Concrete classes | 64 | 96.97% |
▷ Final classes | 0 | 0.00% |
Methods | 475 | |
▷ Static methods | 109 | 22.95% |
▷ Public methods | 444 | 93.47% |
▷ Protected methods | 7 | 1.47% |
▷ Private methods | 24 | 5.05% |
Functions | 67 | |
▷ Named functions | 47 | 70.15% |
▷ Anonymous functions | 20 | 29.85% |
Constants | 17 | |
▷ Global constants | 4 | 23.53% |
▷ Class constants | 13 | 76.47% |
▷ Public constants | 13 | 100.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
12 PNG files occupy 0.32MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
views/images/favicon-16x16.png | 0.63KB | 0.71KB | 0.00% |
views/images/fast-courier-login-page.png | 29.31KB | 11.45KB | ▼ 60.93% |
views/images/icon-master.png | 1.98KB | 1.77KB | ▼ 10.36% |
views/images/fast-courier-configuration.png | 46.76KB | 14.82KB | ▼ 68.31% |
views/images/fast-courier-dark.png | 4.67KB | 4.07KB | ▼ 12.76% |