89% cww-connector-lite

Code Review | CWW connector Lite - Connect Contact Form 7 & ActiveCampaign

WordPress plugin CWW connector Lite - Connect Contact Form 7 & ActiveCampaign scored89%from 54 tests.

About plugin

  • Plugin page: cww-connector-lite
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3.2
  • WordPress version: 6.3.1
  • First release: Oct 4, 2022
  • Latest release: Oct 26, 2023
  • Number of updates: 3
  • Update frequency: every 129.3 days
  • Top authors: codeworkweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /3,332 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼0.91ms] Passed 4 tests

This is a short check of server-side resources used by CWW connector Lite - Connect Contact Form 7 & ActiveCampaign
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0239.09 ▼0.70
Dashboard /wp-admin3.34 ▲0.0344.40 ▼1.10
Posts /wp-admin/edit.php3.39 ▲0.0344.89 ▼1.47
Add New Post /wp-admin/post-new.php5.92 ▲0.0380.22 ▼0.37
Media Library /wp-admin/upload.php3.26 ▲0.0333.36 ▼0.06

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by CWW connector Lite - Connect Contact Form 7 & ActiveCampaign
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.29 ▼0.061.98 ▲0.3943.48 ▲2.96
Dashboard /wp-admin2,201 ▲305.51 ▼0.0685.28 ▼3.0440.97 ▲3.45
Posts /wp-admin/edit.php2,106 ▲62.03 ▲0.0835.96 ▲1.0635.41 ▼3.53
Add New Post /wp-admin/post-new.php1,532 ▲623.64 ▲0.48713.57 ▲55.8061.23 ▲13.82
Media Library /wp-admin/upload.php1,406 ▲94.19 ▼0.0595.97 ▼2.4540.89 ▼0.56

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: activecampaign, contact form 7, cf7

cww-connector-lite/cww-connector-lite.php 85% from 13 tests

The main PHP file in "CWW connector Lite - Connect Contact Form 7 & ActiveCampaign" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 288 characters long)
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected652 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP514179436
CSS100193
JavaScript17023

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity23.33
▷ Minimum class complexity11.00
▷ Maximum class complexity31.00
Average method complexity5.47
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods15
▷ Static methods16.67%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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