88% woomio-influencer-marketing

Code Review | Woomio (Influencer marketing)

WordPress plugin Woomio (Influencer marketing) scored 88% from 54 tests.

About plugin

  • Plugin page: woomio-influencer...
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.8
  • WordPress version: 5.8.1
  • First release: Jun 9, 2021
  • Latest release: Nov 18, 2021
  • Number of updates: 12
  • Update frequency: every 13.6 days
  • Top authors: iclicksee (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 177 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼138.85ms] Passed 4 tests

A check of server-side resources used by Woomio (Influencer marketing)
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.98 ▲0.2644.66 ▲21.67
Dashboard /wp-admin3.21 ▲0.1554.09 ▲6.43
Posts /wp-admin/edit.php3.32 ▲0.2147.64 ▲3.89
Add New Post /wp-admin/post-new.php5.56 ▲0.1398.12 ▼565.52
Media Library /wp-admin/upload.php3.15 ▲0.1534.53 ▼0.19
Tokens /wp-admin/admin.php?page=woomio-for-woocommerce-token3.1428.74
Add Token /wp-admin/admin.php?page=woomio-for-woocommerce-add-token3.1433.04
Dashboard /wp-admin/admin.php?page=woomio-for-woocommerce3.1330.03

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 35 new files
Database: 3 new tables, 1 new option
New tables
wp_wfw_token
wp_wfw_coupon_token
wp_wfw_token_sales
New WordPress options
wfw_db_version

Browser metrics Passed 4 tests

An overview of browser requirements for Woomio (Influencer marketing)
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,766 ▲17015.87 ▲0.5312.75 ▲1.6854.49 ▲8.96
Dashboard /wp-admin3,033 ▲995.95 ▼0.02146.17 ▼5.85109.89 ▲1.93
Posts /wp-admin/edit.php2,803 ▲642.73 ▲0.0266.39 ▼0.1589.15 ▼1.00
Add New Post /wp-admin/post-new.php1,657 ▼2621.42 ▲3.11308.41 ▼119.21105.69 ▼1.23
Media Library /wp-admin/upload.php1,871 ▲645.05 ▲0.01150.10 ▼2.90120.08 ▲0.12
Tokens /wp-admin/admin.php?page=woomio-for-woocommerce-token1,3653.3996.22111.37
Add Token /wp-admin/admin.php?page=woomio-for-woocommerce-add-token1,3733.4485.5096.51
Dashboard /wp-admin/admin.php?page=woomio-for-woocommerce1,3313.2884.73110.40

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/admin.php?page=woomio-for-woocommerce-add-token
    • > Notice in wp-content/plugins/woomio-influencer-marketing/admin/partials/template-token-add.php+25
    Undefined index: campaign_name
    • > GET request to /wp-admin/admin.php?page=woomio-for-woocommerce-add-token
    • > Notice in wp-content/plugins/woomio-influencer-marketing/admin/partials/template-token-add.php+30
    Undefined index: campaign_url

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
The following issues need your attention
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/woomio-influencer-marketing/admin/partials/template-token-list.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/woomio-influencer-marketing/admin/partials/template-dashboard.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/woomio-influencer-marketing/admin/partials/template-token-add.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: woomio for woocommerce, woomio, influencer marketing

woomio-influencer-marketing/woomio-influencer-marketing.php 85% from 13 tests

The principal PHP file in "Woomio (Influencer marketing)" v. 1.0.4 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 149 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,173 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP15272259893
JavaScript61939273
CSS53217

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity14.71
▷ Minimum class complexity1.00
▷ Maximum class complexity64.00
Average method complexity3.40
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods40
▷ Static methods25.00%
▷ Public methods3382.50%
▷ Protected methods00.00%
▷ Private methods717.50%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.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 files were detected