10% registered-user-sync-activecampaign

Code Review | User Sync ActiveCampaign

WordPress plugin User Sync ActiveCampaign scored10%from 54 tests.

About plugin

  • Plugin page: registered-user-s...
  • Plugin version: 1.3.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-5.8
  • WordPress version: 6.3.1
  • First release: Oct 29, 2018
  • Latest release: Aug 7, 2021
  • Number of updates: 38
  • Update frequency: every 26.7 days
  • Top authors: pravind (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

300+ active /4,777 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/registered-user-sync-activecampaign/rus-activecampaign.php+15
    define(): Declaration of case-insensitive constants is deprecated

Server metrics [RAM: ▼1.80MB] [CPU: ▼53.88ms] Passed 4 tests

This is a short check of server-side resources used by User Sync ActiveCampaign
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.18 ▼1.275.69 ▼36.69
Dashboard /wp-admin2.20 ▼1.107.31 ▼43.82
Posts /wp-admin/edit.php2.21 ▼1.156.75 ▼42.95
Add New Post /wp-admin/post-new.php2.21 ▼3.687.02 ▼92.05
Media Library /wp-admin/upload.php2.21 ▼1.026.61 ▼30.26
RU Active Campaigns Settings /wp-admin/options-general.php?page=rusac-settings2.215.86

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 15 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
rusac_api_url
widget_theysaidso_widget
db_upgraded
widget_recent-posts
rusac_default_tags
rusac_list_id
rusac_no_users_per_run
widget_recent-comments
...

Browser metrics Passed 4 tests

A check of browser resources used by User Sync ActiveCampaign
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4713.31 ▼1.071.56 ▼0.1737.62 ▼10.37
Dashboard /wp-admin2,213 ▲225.85 ▲0.95108.70 ▲1.9241.67 ▼0.83
Posts /wp-admin/edit.php2,093 ▲12.04 ▼0.0043.37 ▲1.2436.57 ▼1.07
Add New Post /wp-admin/post-new.php1,545 ▲2418.39 ▼4.85602.70 ▼61.6664.52 ▲2.54
Media Library /wp-admin/upload.php1,389 ▼24.22 ▲0.0397.78 ▲0.6842.25 ▼0.33
RU Active Campaigns Settings /wp-admin/options-general.php?page=rusac-settings1,0201.8726.7364.69

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/registered-user-sync-activecampaign/rus-activecampaign.php+15
    define(): Declaration of case-insensitive constants is deprecated
  • The uninstall procedure has failed, leaving 15 options in the database
    • rusac_default_tags
    • rusac_api_url
    • rusac_list_id
    • widget_theysaidso_widget
    • rusac_sync_debug
    • can_compress_scripts
    • widget_recent-comments
    • rusac_sync_schedule
    • rusac_sync_switch
    • rusac_api_key
    • ...

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=rusac-settings
    • > Deprecated in wp-content/plugins/registered-user-sync-activecampaign/rus-activecampaign.php+15
    define(): Declaration of case-insensitive constants is deprecated

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/registered-user-sync-activecampaign/rus-activecampaign.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/registered-user-sync-activecampaign/inc/rusac_settings.php:9

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 93% 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
5 plugin tags: active campaign, activecampaign, synchronization, sync users active campaign, sync registered users

registered-user-sync-activecampaign/rus-activecampaign.php 85% from 13 tests

The main PHP file in "User Sync ActiveCampaign" ver. 1.3.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("registered-user-sync-activecampaign.php" instead of "rus-activecampaign.php")

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
No dangerous file extensions were detected610 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP311792595
PO File10014
HTML1001

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.26
Average class complexity26.33
▷ Minimum class complexity12.00
▷ Maximum class complexity50.00
Average method complexity3.03
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods37
▷ Static methods1027.03%
▷ Public methods3491.89%
▷ Protected methods38.11%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants8
▷ Global constants337.50%
▷ Class constants562.50%
▷ Public constants5100.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
There were not PNG files found in your plugin