10% ingenious-advertiser-tracking

Code Review | Ingenious - Advertiser Tracking for WooCommerce

WordPress plugin Ingenious - Advertiser Tracking for WooCommerce scored10%from 54 tests.

About plugin

  • Plugin page: ingenious-adverti...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-5.8.1
  • WordPress version: 6.3.1
  • First release: Dec 17, 2021
  • Latest release: Dec 17, 2021
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: i19s (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /231 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/ingenious-advertiser-tracking/includes/class-ingenious-woocommerce.php+130
    require_once(wp-content/plugins/ingenious-advertiser-tracking/woocommerce/class-ingenious-woocommerce-woocommerce.php): failed to open stream: No such file or directory

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

Server-side resources used by Ingenious - Advertiser Tracking for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.92 ▼1.65
Dashboard /wp-admin3.31 ▲0.0046.28 ▼0.08
Posts /wp-admin/edit.php3.36 ▲0.0044.05 ▼1.64
Add New Post /wp-admin/post-new.php5.89 ▲0.0097.46 ▲11.25
Media Library /wp-admin/upload.php3.23 ▲0.0033.31 ▼1.38

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Ingenious - Advertiser Tracking for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7914.46 ▲0.082.03 ▲0.4443.83 ▲0.70
Dashboard /wp-admin2,206 ▲184.85 ▼0.06110.57 ▲12.3744.80 ▲1.51
Posts /wp-admin/edit.php2,089 ▲32.01 ▼0.0434.51 ▼2.7333.85 ▼3.09
Add New Post /wp-admin/post-new.php1,542 ▲2318.49 ▼4.61598.06 ▼67.8050.62 ▼3.62
Media Library /wp-admin/upload.php1,388 ▼04.25 ▼0.0698.12 ▲2.5241.62 ▼0.91

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/ingenious-advertiser-tracking/public/partials/ingenious-woocommerce-public-display.php
    • > /wp-content/plugins/ingenious-advertiser-tracking/admin/partials/ingenious-woocommerce-admin-display.php
    • > /wp-content/plugins/ingenious-advertiser-tracking/admin/partials/ingenious-woocommerce-settings-results.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 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
5 plugin tags: tracking, affiliate marketing, affiliate, marketing, performance marketing

ingenious-advertiser-tracking/ingenious-advertiser-tracking.php 85% from 13 tests

The entry point to "Ingenious - Advertiser Tracking for WooCommerce" version 1.0.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Domain Path: The domain path folder does not exist ("/languages")

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
Success! There were no dangerous files found in this plugin607 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP15218704604
JavaScript12273
CSS1040

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity4.11
▷ Minimum class complexity1.00
▷ Maximum class complexity22.00
Average method complexity1.62
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods45
▷ Static methods1022.22%
▷ Public methods3066.67%
▷ Protected methods00.00%
▷ Private methods1533.33%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants112.50%
▷ Class constants787.50%
▷ Public constants7100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected