74% send-custom-fields-from-store-to-active-campaign

Code Review | Send Custom Fields From WooCommerce to Active Campaign

WordPress plugin Send Custom Fields From WooCommerce to Active Campaign scored74%from 54 tests.

About plugin

  • Plugin page: send-custom-field...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.5.1
  • WordPress version: 6.3.1
  • First release: Sep 26, 2020
  • Latest release: Sep 26, 2020
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: pradatiusd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /621 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.92MB] [CPU: ▼37.37ms] Passed 4 tests

Analyzing server-side resources used by Send Custom Fields From WooCommerce to Active Campaign
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0542.31 ▼0.52
Dashboard /wp-admin3.04 ▼0.3125.41 ▼40.76
Posts /wp-admin/edit.php3.04 ▼0.3221.89 ▼24.33
Add New Post /wp-admin/post-new.php3.04 ▼2.8522.29 ▼70.11
Media Library /wp-admin/upload.php3.04 ▼0.1923.61 ▼14.26
Send Custom Fields from WooCommerce To Active Campaign /wp-admin/options-general.php?page=send-custom-fields-from-woocommerce-to-active-campaign3.0423.36

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Send Custom Fields From WooCommerce to Active Campaign
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲5814.35 ▼0.001.89 ▲0.1344.35 ▼5.94
Dashboard /wp-admin2,193 ▲195.62 ▼0.0597.95 ▲11.2546.65 ▲9.83
Posts /wp-admin/edit.php2,104 ▲41.95 ▲0.0136.32 ▼0.2331.58 ▼8.38
Add New Post /wp-admin/post-new.php1,529 ▼223.03 ▲0.09609.65 ▲11.8180.80 ▼3.72
Media Library /wp-admin/upload.php1,398 ▼24.19 ▼0.0697.71 ▲0.1539.79 ▼3.62
Send Custom Fields from WooCommerce To Active Campaign /wp-admin/options-general.php?page=send-custom-fields-from-woocommerce-to-active-campaign9792.0021.9730.44

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method SCFTAC_Admin_Page_Controller::add_menu_item() should not be called statically
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=send-custom-fields-from-woocommerce-to-active-campaign
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method SCFTAC_Admin_Page_Controller::add_menu_item() should not be called statically
    • > GET request to /wp-admin/options-general.php?page=send-custom-fields-from-woocommerce-to-active-campaign
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method SCFTAC_Admin_Page_Controller::render_admin_settings_page() should not be called statically
    • > GET request to /wp-admin/options-general.php?page=send-custom-fields-from-woocommerce-to-active-campaign
    • > Notice in wp-content/plugins/send-custom-fields-from-store-to-active-campaign/admin-page-controller.php+203
    Undefined index: migrate_data
    • > GET request to /wp-admin/options-general.php?page=send-custom-fields-from-woocommerce-to-active-campaign
    • > Notice in wp-content/plugins/send-custom-fields-from-store-to-active-campaign/admin-page-controller.php+210
    Undefined index: ac_api_key
    • > GET request to /wp-admin/options-general.php?page=send-custom-fields-from-woocommerce-to-active-campaign
    • > Notice in wp-content/plugins/send-custom-fields-from-store-to-active-campaign/admin-page-controller.php+211
    Undefined index: ac_base_url
    • > GET request to /wp-admin/options-general.php?page=send-custom-fields-from-woocommerce-to-active-campaign
    • > Notice in wp-content/plugins/send-custom-fields-from-store-to-active-campaign/admin-page-controller.php+220
    Undefined index: ac_custom_field_name
    • > GET request to /wp-admin/options-general.php?page=send-custom-fields-from-woocommerce-to-active-campaign
    • > Notice in wp-content/plugins/send-custom-fields-from-store-to-active-campaign/admin-page-controller.php+221
    Undefined index: ac_custom_field_id
    • > GET request to /wp-admin/options-general.php?page=send-custom-fields-from-woocommerce-to-active-campaign
    • > Notice in wp-content/plugins/send-custom-fields-from-store-to-active-campaign/admin-page-controller.php+231
    Undefined index: delete_key

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: active campaign, woocommerce

send-custom-fields-from-store-to-active-campaign/send-custom-fields-from-store-to-active-campaign.php 92% from 13 tests

This is the main PHP file of "Send Custom Fields From WooCommerce to Active Campaign" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin347 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP451119347

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity9.33
▷ Minimum class complexity3.00
▷ Maximum class complexity14.00
Average method complexity2.19
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods1885.71%
▷ Protected methods00.00%
▷ Private methods314.29%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected