84% colissimo-delivery-integration

Code Review | Colissimo Delivery Integration

WordPress plugin Colissimo Delivery Integration scored84%from 54 tests.

About plugin

  • Plugin page: colissimo-deliver...
  • Plugin version: 3.8.2
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.2-6.3.2
  • WordPress version: 6.3.1
  • First release: Jan 5, 2016
  • Latest release: Oct 31, 2023
  • Number of updates: 356
  • Update frequency: every 8.0 days
  • Top authors: Harasse (100%)

Code review

54 tests

User reviews

26 reviews

Install metrics

500+ active /87,755 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.32ms] Passed 4 tests

Server-side resources used by Colissimo Delivery Integration
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.01 ▼3.18
Dashboard /wp-admin3.31 ▲0.0057.69 ▼0.80
Posts /wp-admin/edit.php3.36 ▲0.0051.23 ▼8.36
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.91 ▼12.94
Media Library /wp-admin/upload.php3.23 ▲0.0038.51 ▲4.67

Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
cdi_o_transferoldsettings
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
cdi_tokentimerswitchnewcdi

Browser metrics Passed 4 tests

Colissimo Delivery Integration: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,839 ▲5314.35 ▲0.171.87 ▼0.2543.67 ▼10.98
Dashboard /wp-admin2,195 ▲235.57 ▼0.1388.75 ▼42.1039.19 ▼9.53
Posts /wp-admin/edit.php2,100 ▼32.02 ▲0.0339.13 ▼3.6231.88 ▼3.70
Add New Post /wp-admin/post-new.php1,526 ▼023.01 ▼0.04649.55 ▼15.7950.53 ▼9.06
Media Library /wp-admin/upload.php1,397 ▲34.24 ▲0.01111.85 ▼22.0444.89 ▼5.53

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 did not uninstall successfully, leaving 8 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • cdi_tokentimerswitchnewcdi
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • cdi_o_transferoldsettings

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/colissimo-delivery-integration/colissimo-delivery-integration.php:35

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)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: colissimo, laposte, parcel, tracking, logistic...

colissimo-delivery-integration/colissimo-delivery-integration.php Passed 13 tests

The main file in "Colissimo Delivery Integration" v. 3.8.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
41 characters long description:
Easy Colissimo Services with WooCommerce.

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
There were no executable files found in this plugin1,954 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PO File15206791,905
PHP2145149

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity2.50
▷ Minimum method complexity2.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.15MB with 0.11MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png15.12KB2.64KB▼ 82.53%
assets/banner-772x250.png32.84KB10.31KB▼ 68.61%
assets/banner-1544x500.png84.54KB32.06KB▼ 62.08%
assets/icon-256x256.png22.86KB5.24KB▼ 77.10%