99% advanced-activecampaign-site-tracking

Code Review | Advanced ActiveCampaign Site Tracking

WordPress plugin Advanced ActiveCampaign Site Tracking scored 99% from 54 tests.

About plugin

  • Plugin page: advanced-activeca...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8
  • WordPress version: 5.8.1
  • First release: Jul 23, 2017
  • Latest release: Jun 18, 2018
  • Number of updates: 12
  • Update frequency: every 27.5 days
  • Top authors: danielmcclure (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active / 1,119 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼140.79ms] Passed 4 tests

An overview of server-side resources used by Advanced ActiveCampaign Site Tracking
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1334.70 ▲14.92
Dashboard /wp-admin3.08 ▲0.0343.69 ▼3.32
Posts /wp-admin/edit.php3.13 ▲0.0344.78 ▲0.34
Add New Post /wp-admin/post-new.php5.44 ▲0.0189.36 ▼560.57
Media Library /wp-admin/upload.php3.02 ▲0.0231.51 ▲0.39
AC Tracking /wp-admin/options-general.php?page=advanced_ac_settings_admin2.9924.19

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Advanced ActiveCampaign Site Tracking
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,685 ▲8915.81 ▲0.198.40 ▼1.3744.20 ▼2.37
Dashboard /wp-admin2,975 ▲415.87 ▼0.10145.77 ▲1.08108.09 ▲1.32
Posts /wp-admin/edit.php2,744 ▲82.72 ▼0.0066.51 ▼0.7488.24 ▲2.47
Add New Post /wp-admin/post-new.php1,686 ▼1,94818.79 ▲3.60394.19 ▼187.57110.83 ▲3.08
Media Library /wp-admin/upload.php1,815 ▲85.00 ▼0.01166.27 ▲2.77106.45 ▼9.94
AC Tracking /wp-admin/options-general.php?page=advanced_ac_settings_admin1,0342.1052.5078.18

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: activecampaign, analytics, tracking, marketing automation

advanced-activecampaign-site-tracking/advanced-ac-tracking.php 85% from 13 tests

"Advanced ActiveCampaign Site Tracking" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("advanced-activecampaign-site-tracking.php" instead of "advanced-ac-tracking.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected113 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22229113

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.29
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin