84% es-woocommerce-activecampaign

Code Review | WooCommerce - ActiveCampaign

WordPress plugin WooCommerce - ActiveCampaign scored84%from 54 tests.

About plugin

  • Plugin page: es-woocommerce-ac...
  • Plugin version: 2.1.3
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-6.4.1
  • WordPress version: 6.3.1
  • First release: Feb 6, 2017
  • Latest release: Nov 30, 2023
  • Number of updates: 94
  • Update frequency: every 26.5 days
  • Top authors: equalserving (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

2,000+ active /31,432 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Server-side resources used by WooCommerce - ActiveCampaign
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0133.94 ▼7.34
Dashboard /wp-admin3.32 ▼0.0348.51 ▼14.66
Posts /wp-admin/edit.php3.37 ▲0.0146.62 ▲0.68
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.94 ▼10.66
Media Library /wp-admin/upload.php3.24 ▲0.0136.49 ▲1.66

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

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

Browser metrics Passed 4 tests

WooCommerce - ActiveCampaign: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲4314.60 ▼0.141.56 ▼0.1237.27 ▼6.70
Dashboard /wp-admin2,198 ▲175.62 ▼0.0892.51 ▼13.7240.72 ▼4.41
Posts /wp-admin/edit.php2,100 ▼32.01 ▼0.0039.19 ▲1.0136.40 ▲3.51
Add New Post /wp-admin/post-new.php1,529 ▲323.26 ▼0.00646.80 ▼10.1748.47 ▼5.35
Media Library /wp-admin/upload.php1,397 ▲34.22 ▲0.02123.53 ▲23.6545.50 ▲1.76

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 19× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'ESWC\\AC\\ActiveCampaign' not found in wp-content/plugins/es-woocommerce-activecampaign/includes/Group.class.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'ESWC\\AC\\ActiveCampaign' not found in wp-content/plugins/es-woocommerce-activecampaign/includes/Design.class.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/es-woocommerce-activecampaign/es-woocommerce-activecampaign.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'ESWC\\AC\\ActiveCampaign' not found in wp-content/plugins/es-woocommerce-activecampaign/includes/Auth.class.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'ESWC\\AC\\ActiveCampaign' not found in wp-content/plugins/es-woocommerce-activecampaign/includes/Deal.class.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'ESWC\\AC\\ActiveCampaign' not found in wp-content/plugins/es-woocommerce-activecampaign/includes/Campaign.class.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'ESWC\\AC\\ActiveCampaign' not found in wp-content/plugins/es-woocommerce-activecampaign/includes/Segment.class.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'ESWC\\AC\\ActiveCampaign' not found in wp-content/plugins/es-woocommerce-activecampaign/includes/Account.class.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'ESWC\\AC\\ActiveCampaign' not found in wp-content/plugins/es-woocommerce-activecampaign/includes/Form.class.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'ESWC\\AC\\ActiveCampaign' not found in wp-content/plugins/es-woocommerce-activecampaign/includes/Tag.class.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: activecampaign, woocommerce

es-woocommerce-activecampaign/es-woocommerce-activecampaign.php 92% from 13 tests

The main PHP script in "WooCommerce - ActiveCampaign" version 2.1.3 is automatically included on every request by WordPress
It is important to fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("4.4" instead of "3.6")

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
Everything looks great! No dangerous files found in this plugin2,406 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP255393512,406

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity15.43
▷ Minimum class complexity1.00
▷ Maximum class complexity134.00
Average method complexity2.81
▷ Minimum method complexity1.00
▷ Maximum method complexity53.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes23
▷ Abstract classes00.00%
▷ Concrete classes23100.00%
▷ Final classes00.00%
Methods183
▷ Static methods00.00%
▷ Public methods183100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants2
▷ Global constants2100.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 images were found in this plugin