89% ecommerce-to-activecampaign

Code Review | WooCommerce to ActiveCampaign by WPOP

WordPress plugin WooCommerce to ActiveCampaign by WPOP scored89%from 54 tests.

About plugin

  • Plugin page: ecommerce-to-acti...
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Sep 4, 2020
  • Latest release: Mar 14, 2023
  • Number of updates: 7
  • Update frequency: every 131.6 days
  • Top authors: wpoperations (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /884 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼10.43ms] Passed 4 tests

Server-side resources used by WooCommerce to ActiveCampaign by WPOP
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.79 ▼3.15
Dashboard /wp-admin3.32 ▼0.0245.56 ▼18.06
Posts /wp-admin/edit.php3.37 ▲0.0247.28 ▲0.05
Add New Post /wp-admin/post-new.php5.90 ▲0.0284.55 ▼18.54
Media Library /wp-admin/upload.php3.24 ▲0.0234.46 ▼1.96

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WooCommerce to ActiveCampaign by WPOP
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲8514.78 ▲0.401.99 ▲0.0646.40 ▲3.44
Dashboard /wp-admin2,209 ▲245.85 ▼0.0897.83 ▼5.6538.95 ▼5.71
Posts /wp-admin/edit.php2,094 ▲22.01 ▲0.0236.03 ▼3.3734.18 ▼2.33
Add New Post /wp-admin/post-new.php1,539 ▲123.19 ▲0.00666.76 ▲51.6154.00 ▼3.42
Media Library /wp-admin/upload.php1,397 ▲154.19 ▼0.0996.76 ▼2.6242.45 ▲0.00

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention: The official readme.txt is a good inspiration

ecommerce-to-activecampaign/ecommerce-activecampaign.php 85% from 13 tests

The main PHP file in "WooCommerce to ActiveCampaign by WPOP" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ecommerce-to-activecampaign.php" instead of "ecommerce-activecampaign.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin752 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP47025528
CSS2282178
JavaScript25346

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity23.33
▷ Minimum class complexity4.00
▷ Maximum class complexity34.00
Average method complexity4.94
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin