83% outbound-automation-contact-form-7-extension

Code Review | Contact Form 7 Extension for Outbound Automation

WordPress plugin Contact Form 7 Extension for Outbound Automation scored83%from 54 tests.

About plugin

  • Plugin page: outbound-automati...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.7.1
  • WordPress version: 6.3.1
  • First release: Feb 21, 2017
  • Latest release: Feb 27, 2017
  • Number of updates: 13
  • Update frequency: every 0.3 days
  • Top authors: boberdoo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /497 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼6.48ms] Passed 4 tests

Server-side resources used by Contact Form 7 Extension for Outbound Automation
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.33 ▼3.32
Dashboard /wp-admin3.32 ▼0.0350.89 ▼12.66
Posts /wp-admin/edit.php3.37 ▲0.0152.71 ▲2.20
Add New Post /wp-admin/post-new.php5.90 ▲0.01105.44 ▼12.15
Media Library /wp-admin/upload.php3.24 ▲0.0137.28 ▲7.27

Server storage [IO: ▲0.02MB] [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: 13 new files
Database: no new tables, 9 new options
New WordPress options
db_upgraded
theysaidso_admin_options
boberdoo-api-key
widget_recent-comments
boberdoo-list-id
widget_theysaidso_widget
widget_recent-posts
boberdoo-list-name
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Contact Form 7 Extension for Outbound Automation
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,907 ▲16113.65 ▼0.648.93 ▲7.4445.64 ▲6.39
Dashboard /wp-admin2,200 ▲235.51 ▼0.0799.00 ▲8.8845.03 ▲2.15
Posts /wp-admin/edit.php2,108 ▲82.00 ▲0.0237.48 ▼1.4235.55 ▲0.84
Add New Post /wp-admin/post-new.php1,536 ▲823.15 ▲0.16641.16 ▲34.1151.11 ▼5.07
Media Library /wp-admin/upload.php1,408 ▲84.24 ▲0.11106.07 ▼0.4545.40 ▼0.88

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
  • This plugin does not fully uninstall, leaving 9 options in the database
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • boberdoo-list-name
    • boberdoo-api-key
    • widget_theysaidso_widget
    • boberdoo-list-id
    • theysaidso_admin_options
    • widget_recent-posts

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 no errors were found, this is by no means 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
  • 14× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/outbound-automation-contact-form-7-extension/lib/checkForCF7.php:17
    • > PHP Warning
      require_once(BDOA_PLUGIN_DIR/lib/checkForCF7.php): failed to open stream: No such file or directory in wp-content/plugins/outbound-automation-contact-form-7-extension/lib/boberdoo.php on line 2
    • > PHP Fatal error
      require_once(): Failed opening required 'BDOA_PLUGIN_DIR/lib/UpdateListNameAndId.php' (include_path='.:/usr/share/php') in wp-content/plugins/outbound-automation-contact-form-7-extension/lib/functions.php on line 3
    • > PHP Warning
      require_once(BDOA_PLUGIN_DIR/lib/addContactToList.php): failed to open stream: No such file or directory in wp-content/plugins/outbound-automation-contact-form-7-extension/lib/UpdateListNameAndId.php on line 2
    • > PHP Warning
      Use of undefined constant BDOA_PLUGIN_DIR - assumed 'BDOA_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/outbound-automation-contact-form-7-extension/lib/boberdoo.php on line 2
    • > PHP Fatal error
      require_once(): Failed opening required 'BDOA_PLUGIN_DIR/lib/UpdateListNameAndId.php' (include_path='.:/usr/share/php') in wp-content/plugins/outbound-automation-contact-form-7-extension/lib/addContactToList.php on line 3
    • > PHP Warning
      Use of undefined constant BDOA_PLUGIN_DIR - assumed 'BDOA_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/outbound-automation-contact-form-7-extension/lib/addContactToList.php on line 3
    • > PHP Warning
      require_once(BDOA_PLUGIN_DIR/lib/UpdateListNameAndId.php): failed to open stream: No such file or directory in wp-content/plugins/outbound-automation-contact-form-7-extension/lib/addContactToList.php on line 3
    • > PHP Fatal error
      require_once(): Failed opening required 'BDOA_PLUGIN_DIR/lib/checkForCF7.php' (include_path='.:/usr/share/php') in wp-content/plugins/outbound-automation-contact-form-7-extension/lib/boberdoo.php on line 2
    • > PHP Warning
      require_once(BDOA_PLUGIN_DIR/lib/UpdateListNameAndId.php): failed to open stream: No such file or directory in wp-content/plugins/outbound-automation-contact-form-7-extension/lib/functions.php on line 3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: outbound automation, automation, lists, extension, contact form 7...

outbound-automation-contact-form-7-extension/cf7-bd-ext.php 77% from 13 tests

The main file in "Contact Form 7 Extension for Outbound Automation" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("outbound-automation-contact-form-7-extension.php" instead of "cf7-bd-ext.php")
  • Domain Path: The domain path is invalid: folder "/languages/" does not exist
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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 plugin219 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP683111196
JavaScript14023

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants13100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected