Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.78ms] Passed 4 tests
Server-side resources used by Colissimo Officiel : Méthodes de livraison pour WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.20 ▼0.46 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.07 ▼2.78 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.49 ▲1.20 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 76.04 ▼12.12 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 31.88 ▲0.25 |
Server storage [IO: ▲3.14MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 242 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Colissimo Officiel : Méthodes de livraison pour WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.35 ▼0.21 | 1.74 ▼0.05 | 44.48 ▲7.64 |
Dashboard /wp-admin | 2,198 ▲21 | 5.56 ▼0.05 | 82.89 ▼2.67 | 35.79 ▼7.81 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.03 ▲0.05 | 33.70 ▼3.10 | 35.85 ▲2.40 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.76 ▲0.06 | 695.05 ▲24.59 | 67.19 ▲12.23 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.23 ▲0.05 | 96.44 ▲0.02 | 40.86 ▼5.35 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 27× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/colissimo-shipping-methods-for-woocommerce/admin/init.php
- > /wp-content/plugins/colissimo-shipping-methods-for-woocommerce/includes/invoices/lpc_invoice_generate_action.php
- > /wp-content/plugins/colissimo-shipping-methods-for-woocommerce/admin/labels/generate/lpc_label_inward_generate_action.php
- > /wp-content/plugins/colissimo-shipping-methods-for-woocommerce/resources/hooksDescriptions.php
- > /wp-content/plugins/colissimo-shipping-methods-for-woocommerce/admin/labels/deletion/lpc_label_inward_delete_action.php
- > /wp-content/plugins/colissimo-shipping-methods-for-woocommerce/index.php
- > /wp-content/plugins/colissimo-shipping-methods-for-woocommerce/public/init.php
- > /wp-content/plugins/colissimo-shipping-methods-for-woocommerce/admin/labels/download/lpc_label_outward_download_action.php
- > /wp-content/plugins/colissimo-shipping-methods-for-woocommerce/admin/bordereau/lpc_bordereau_download_action.php
- > /wp-content/plugins/colissimo-shipping-methods-for-woocommerce/includes/tracking/lpc_update_statuses_action.php
- 235× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/colissimo-shipping-methods-for-woocommerce/admin/partials/settings/select_field.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/colissimo-shipping-methods-for-woocommerce/admin/partials/orders/lpc_orders_header.php:2
- > PHP Warning
Use of undefined constant LPC_INCLUDES - assumed 'LPC_INCLUDES' (this will throw an Error in a future version of PHP) in wp-content/plugins/colissimo-shipping-methods-for-woocommerce/includes/label/lpc_label_generation_api.php on line 3
- > PHP Warning
Use of undefined constant DS - assumed 'DS' (this will throw an Error in a future version of PHP) in wp-content/plugins/colissimo-shipping-methods-for-woocommerce/includes/shipping/lpc_expert_ddp.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'LPC_INCLUDESpick_upDSlpc_pick_up_widget_api.php' (include_path='.:/usr/share/php') in wp-content/plugins/colissimo-shipping-methods-for-woocommerce/admin/pickup/lpc_admin_pickup_widget.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/colissimo-shipping-methods-for-woocommerce/includes/shippingDSlpc_abstract_shipping.php' (include_path='.:/usr/share/php') in wp-content/plugins/colissimo-shipping-methods-for-woocommerce/includes/shipping/lpc_expert.php on line 3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/colissimo-shipping-methods-for-woocommerce/public/partials/pickup/pick_up_info.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/colissimo-shipping-methods-for-woocommerce/admin/partials/settings/onboarding.php:8
- > PHP Warning
require_once(LPC_INCLUDESpick_upDSlpc_pick_up_widget_api.php): failed to open stream: No such file or directory in wp-content/plugins/colissimo-shipping-methods-for-woocommerce/admin/pickup/lpc_admin_pickup_widget.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'LpcComponent' not found in wp-content/plugins/colissimo-shipping-methods-for-woocommerce/includes/lpc_rest_api.php:3
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: shipping, colissimo, woocommerce
colissimo-shipping-methods-for-woocommerce/index.php 77% from 13 tests
The main PHP file in "Colissimo Officiel : Méthodes de livraison pour WooCommerce" ver. 1.9.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("4.7" instead of "3.6.5")
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("colissimo-shipping-methods-for-woocommerce.php" instead of "index.php")
Code Analysis 95% from 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
There were no executable files found in this plugin69,857 lines of code in 227 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 192 | 4,747 | 13,038 | 61,036 |
JSON | 6 | 0 | 0 | 3,819 |
PO File | 2 | 1,304 | 0 | 2,628 |
JavaScript | 10 | 203 | 32 | 1,266 |
CSS | 14 | 217 | 16 | 938 |
Markdown | 3 | 49 | 0 | 170 |
PHP code 0% from 2 tests
An overview of cyclomatic complexity and code structure
Please tend to the following items
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 4,422)
- Method cyclomatic complexity should be reduced to less than 100 (currently 500)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 54.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4,422.00 |
Average method complexity | 6.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 500.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 2 | |
Traits | 1 | |
Classes | 144 | |
▷ Abstract classes | 8 | 5.56% |
▷ Concrete classes | 136 | 94.44% |
▷ Final classes | 0 | 0.00% |
Methods | 1,438 | |
▷ Static methods | 197 | 13.70% |
▷ Public methods | 1,099 | 76.43% |
▷ Protected methods | 318 | 22.11% |
▷ Private methods | 21 | 1.46% |
Functions | 87 | |
▷ Named functions | 1 | 1.15% |
▷ Anonymous functions | 86 | 98.85% |
Constants | 295 | |
▷ Global constants | 75 | 25.42% |
▷ Class constants | 220 | 74.58% |
▷ Public constants | 220 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/map_marker.png | 0.80KB | 0.83KB | 0.00% |
includes/images/colissimo.png | 15.73KB | 7.21KB | ▼ 54.12% |
includes/images/colissimo_icon.png | 4.09KB | 3.08KB | ▼ 24.61% |
includes/images/colissimo_cropped.png | 21.75KB | 7.01KB | ▼ 67.77% |