88% i-fulfilment-integration

Code Review | WooCommerce I-Fulfilment Integration

WordPress plugin WooCommerce I-Fulfilment Integration scored 88% from 54 tests.

About plugin

  • Plugin page: i-fulfilment-inte...
  • Plugin version: 2.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 5.9.2
  • First release: Nov 5, 2014
  • Latest release: Nov 6, 2014
  • Number of updates: 16
  • Update frequency: every 0.1 days
  • Top authors: i-fulfilment (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 835 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼316.07ms] Passed 4 tests

This is a short check of server-side resources used by WooCommerce I-Fulfilment Integration
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0463.25 ▲6.51
Dashboard /wp-admin3.45 ▲0.0436.39 ▼4.84
Posts /wp-admin/edit.php3.68 ▲0.0456.57 ▲12.73
Add New Post /wp-admin/post-new.php6.92 ▼0.0598.25 ▼1,278.67
Media Library /wp-admin/upload.php3.33 ▲0.0341.08 ▲15.27

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooCommerce I-Fulfilment Integration
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,764 ▲4215.35 ▼0.276.44 ▲1.042.39 ▼0.28
Dashboard /wp-admin2,893 ▲356.12 ▼0.06117.97 ▼11.83153.45 ▼4.89
Posts /wp-admin/edit.php2,687 ▲33.25 ▲0.0264.23 ▼7.63139.53 ▼7.70
Add New Post /wp-admin/post-new.php1,678 ▲1718.35 ▲2.57409.59 ▲8.45161.07 ▲6.19
Media Library /wp-admin/upload.php1,713 ▲185.52 ▼0.02162.23 ▲22.76193.44 ▲8.35

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables

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 | 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
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/i-fulfilment-integration/error.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/i-fulfilment-integration/admin.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
Please take inspiration from this readme.txt

i-fulfilment-integration/index.php 92% from 13 tests

The principal PHP file in "WooCommerce I-Fulfilment Integration" v. 2.0.3 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("i-fulfilment-integration.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin317 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP38837299
Markdown110018

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.64
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin