Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.88MB] [CPU: ▼4.97ms] Passed 4 tests
Server-side resources used by FlagShip WooCommerce Extension
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.52 ▲1.06 | 47.01 ▲7.48 |
Dashboard /wp-admin | 4.37 ▲1.07 | 53.92 ▲0.87 |
Posts /wp-admin/edit.php | 4.42 ▲1.06 | 55.59 ▼1.12 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.32 | 71.47 ▼27.12 |
Media Library /wp-admin/upload.php | 4.29 ▲1.06 | 45.85 ▲11.95 |
Package boxes /wp-admin/admin.php?page=flagship/boxes | 4.29 | 36.49 |
Shipment /wp-admin/admin.php?page=flagship/ship | 4.27 | 37.35 |
Manage shipment /wp-admin/admin.php?page=flagship/manage | 4.27 | 41.23 |
Server storage [IO: ▲1.91MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 294 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
recovery_mode_email_last_sent |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by FlagShip WooCommerce Extension
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,870 ▲124 | 13.21 ▼1.14 | 1.71 ▼0.06 | 40.72 ▲0.20 |
Dashboard /wp-admin | 2,276 ▲85 | 5.88 ▼0.02 | 108.03 ▼2.03 | 40.75 ▲0.18 |
Posts /wp-admin/edit.php | 2,159 ▲70 | 2.06 ▲0.05 | 41.29 ▼0.13 | 34.93 ▼1.45 |
Add New Post /wp-admin/post-new.php | 45 ▼1,474 | 0.44 ▼23.11 | 0.07 ▼696.00 | 10.81 ▼44.32 |
Media Library /wp-admin/upload.php | 1,455 ▲67 | 4.25 ▼0.06 | 99.98 ▼16.97 | 79.22 ▲29.84 |
Package boxes /wp-admin/admin.php?page=flagship/boxes | 1,350 | 2.58 | 51.33 | 28.82 |
Shipment /wp-admin/admin.php?page=flagship/ship | 1,487 | 8.95 | 340.23 | 71.57 |
Manage shipment /wp-admin/admin.php?page=flagship/manage | 1,484 | 8.91 | 305.56 | 43.09 |
Settings /wp-admin/admin.php?page=flagship\/settings | 28 | 0.44 | 0.07 | 3.95 |
Visit FlagShip site /wp-admin/admin.php?page=flagship\/site | 28 | 0.44 | 0.09 | 4.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- recovery_mode_email_last_sent
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=flagship/boxes
- > Notice in wp-content/plugins/flagship-shipping-extension-for-woocommerce/templates/list_boxes.php+83
Trying to get property 'name' of non-object
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 156× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/flagship-shipping-extension-for-woocommerce/vendor/flagshipcompany/flagship-api-sdk/Shipping/Tests/PrepareShipmentTests.php:8
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/flagship-shipping-extension-for-woocommerce/vendor/flagshipcompany/flagship-api-sdk/Shipping/Tests/CancelManifestByIdTests.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\VarDumper\\Dumper\\DataDumperInterface' not found in wp-content/plugins/flagship-shipping-extension-for-woocommerce/vendor/symfony/var-dumper/Dumper/AbstractDumper.php:22
- > PHP Fatal error
Uncaught Error: Class 'Flagship\\Shipping\\Exceptions\\SmartshipException' not found in wp-content/plugins/flagship-shipping-extension-for-woocommerce/vendor/flagshipcompany/flagship-api-sdk/Shipping/Exceptions/ConfirmManifestByIdException.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/flagship-shipping-extension-for-woocommerce/vendor/flagshipcompany/flagship-api-sdk/Shipping/Tests/AvailableServicesCollectionTests.php:10
- > PHP Fatal error
Uncaught Error: Class 'Flagship\\Apis\\Requests\\ApiRequest' not found in wp-content/plugins/flagship-shipping-extension-for-woocommerce/vendor/flagshipcompany/flagship-api-sdk/Shipping/Requests/CreatePickupRequest.php:11
- > PHP Fatal error
Uncaught Error: Class 'Flagship\\Apis\\Requests\\ApiRequest' not found in wp-content/plugins/flagship-shipping-extension-for-woocommerce/vendor/flagshipcompany/flagship-api-sdk/Shipping/Requests/GetManifestsListRequest.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/flagship-shipping-extension-for-woocommerce/templates/_order_filter.php:3
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Console\\Command\\Command' not found in wp-content/plugins/flagship-shipping-extension-for-woocommerce/vendor/symfony/var-dumper/Command/ServerDumpCommand.php:37
- > PHP Fatal error
Uncaught Error: Class 'Illuminate\\Support\\Collection' not found in wp-content/plugins/flagship-shipping-extension-for-woocommerce/vendor/flagshipcompany/flagship-api-sdk/Shipping/Collections/ManifestListCollection.php:10
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=flagship/manage
- > Console-api (warning) in unknown
https://connect.facebook.net/en_US/fbevents.js 23:44173 "[Meta Pixel] - Duplicate Pixel ID: 716045552184381."
- > GET request to /wp-admin/admin.php?page=flagship\/settings
- > Network (severe)
wp-admin/admin.php?page=flagship\/settings - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=flagship\/site
- > Network (severe)
wp-admin/admin.php?page=flagship\/site - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
6 plugin tags: courier, ecommerce, commerce, woocommerce, shipping...
flagship-shipping-extension-for-woocommerce/flagship-woocommerce-shipping-method.php 92% from 13 tests
The main PHP script in "FlagShip WooCommerce Extension" version 1.0.23 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("flagship-shipping-extension-for-woocommerce.php" instead of "flagship-woocommerce-shipping-method.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin38,429 lines of code in 282 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 251 | 4,555 | 4,963 | 27,192 |
JavaScript | 5 | 1,159 | 1,494 | 9,441 |
JSON | 7 | 0 | 0 | 597 |
Markdown | 6 | 90 | 0 | 374 |
PO File | 2 | 176 | 176 | 372 |
Bourne Shell | 2 | 39 | 19 | 145 |
CSS | 2 | 1 | 0 | 138 |
YAML | 3 | 21 | 0 | 85 |
XML | 2 | 1 | 1 | 55 |
HTML | 1 | 1 | 0 | 15 |
SVG | 1 | 0 | 0 | 15 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 12.03 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 166.00 |
Average method complexity | 2.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 73.00 |
Code structure | ||
---|---|---|
Namespaces | 30 | |
Interfaces | 11 | |
Traits | 4 | |
Classes | 212 | |
▷ Abstract classes | 4 | 1.89% |
▷ Concrete classes | 208 | 98.11% |
▷ Final classes | 10 | 4.81% |
Methods | 1,906 | |
▷ Static methods | 275 | 14.43% |
▷ Public methods | 1,668 | 87.51% |
▷ Protected methods | 195 | 10.23% |
▷ Private methods | 43 | 2.26% |
Functions | 196 | |
▷ Named functions | 58 | 29.59% |
▷ Anonymous functions | 138 | 70.41% |
Constants | 67 | |
▷ Global constants | 7 | 10.45% |
▷ Class constants | 60 | 89.55% |
▷ Public constants | 40 | 66.67% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected