84% fast-activecampaign

Code Review | Fast ActiveCampaign

WordPress plugin Fast ActiveCampaign scored84%from 54 tests.

About plugin

  • Plugin page: fast-activecampaign
  • Plugin version: 1.1.4
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Aug 8, 2019
  • Latest release: Aug 10, 2023
  • Number of updates: 11
  • Update frequency: every 133.1 days
  • Top authors: fastflow (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /805 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼8.15ms] Passed 4 tests

Server-side resources used by Fast ActiveCampaign
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.55 ▼17.70
Dashboard /wp-admin3.41 ▲0.0652.97 ▼11.99
Posts /wp-admin/edit.php3.46 ▲0.1051.38 ▲0.31
Add New Post /wp-admin/post-new.php5.99 ▲0.1090.56 ▼3.21
Media Library /wp-admin/upload.php3.33 ▲0.1039.12 ▲2.36

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Fast ActiveCampaign
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲8313.30 ▼1.294.80 ▲2.8546.22 ▲4.15
Dashboard /wp-admin2,253 ▲504.86 ▼0.01100.29 ▼26.1742.69 ▼2.53
Posts /wp-admin/edit.php2,129 ▲292.15 ▲0.1534.64 ▼4.6938.47 ▲2.98
Add New Post /wp-admin/post-new.php1,550 ▲217.60 ▼5.45673.71 ▲69.2359.47 ▼4.34
Media Library /wp-admin/upload.php1,429 ▲294.21 ▲0.00101.91 ▼0.7147.40 ▲0.75

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
Please fix the following
  • 17× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'ActiveCampaign' not found in wp-content/plugins/fast-activecampaign/includes/ac-api/Account.class.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ActiveCampaign' not found in wp-content/plugins/fast-activecampaign/includes/ac-api/Contact.class.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/fast-activecampaign/fast-activecampaign.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'ActiveCampaign' not found in wp-content/plugins/fast-activecampaign/includes/ac-api/Deal.class.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ActiveCampaign' not found in wp-content/plugins/fast-activecampaign/includes/ac-api/Campaign.class.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ActiveCampaign' not found in wp-content/plugins/fast-activecampaign/includes/ac-api/Form.class.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ActiveCampaign' not found in wp-content/plugins/fast-activecampaign/includes/ac-api/List.class.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ActiveCampaign' not found in wp-content/plugins/fast-activecampaign/includes/ac-api/Webhook.class.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ActiveCampaign' not found in wp-content/plugins/fast-activecampaign/includes/ac-api/Automation.class.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ActiveCampaign' not found in wp-content/plugins/fast-activecampaign/includes/ac-api/Design.class.php:3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: email marketing, active campaign, activecampaign, email automation, marketing automation

fast-activecampaign/fast-activecampaign.php Passed 13 tests

The principal PHP file in "Fast ActiveCampaign" v. 1.1.4 is loaded by WordPress automatically on each request
34 characters long description:
ActiveCampaign addon for Fast Flow

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected1,624 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP213281591,624

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity8.22
▷ Minimum class complexity1.00
▷ Maximum class complexity52.00
Average method complexity1.87
▷ Minimum method complexity1.00
▷ Maximum method complexity41.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes18
▷ Abstract classes00.00%
▷ Concrete classes18100.00%
▷ Final classes00.00%
Methods150
▷ Static methods00.00%
▷ Public methods150100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin