90% active-campaign-wpforms

Code Review | Active Campaign & WPForms

WordPress plugin Active Campaign & WPForms scored90%from 54 tests.

About plugin

  • Plugin page: active-campaign-w...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1
  • WordPress version: 6.3.1
  • First release: Jul 10, 2019
  • Latest release: Nov 14, 2022
  • Number of updates: 13
  • Update frequency: every 94.2 days
  • Top authors: wpoperations (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /13,560 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.02MB] [CPU: ▼3.96ms] Passed 4 tests

A check of server-side resources used by Active Campaign & WPForms
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.64 ▼0.71
Dashboard /wp-admin3.32 ▲0.0252.56 ▼0.90
Posts /wp-admin/edit.php3.37 ▲0.0247.59 ▼4.87
Add New Post /wp-admin/post-new.php5.90 ▲0.0284.00 ▼9.37
Media Library /wp-admin/upload.php3.24 ▲0.0237.65 ▲4.04

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Active Campaign & WPForms
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲3114.10 ▼0.531.94 ▼0.8946.11 ▲4.07
Dashboard /wp-admin2,198 ▲185.59 ▼0.0999.68 ▲6.7546.02 ▼4.50
Posts /wp-admin/edit.php2,103 ▲31.98 ▼0.0536.66 ▼1.0437.03 ▲2.20
Add New Post /wp-admin/post-new.php1,529 ▲123.48 ▲0.47645.49 ▼53.5753.07 ▼9.21
Media Library /wp-admin/upload.php1,406 ▲64.25 ▲0.06101.90 ▼6.5044.71 ▼2.07

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
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 97% 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
Attributes that require attention: You can look at the official readme.txt

active-campaign-wpforms/active-campaign-wpforms.php Passed 13 tests

"Active Campaign & WPForms" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
50 characters long description:
Add WPForms Data to Active Campiagn Contact lists.

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
There were no executable files found in this plugin379 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP46231360
CSS11019

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity6.00
▷ Minimum class complexity2.00
▷ Maximum class complexity14.00
Average method complexity2.07
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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