83% cf7-bot-forms-add-on

Code Review | Conversational Form Add-on For Contact Form 7

WordPress plugin Conversational Form Add-on For Contact Form 7 scored83%from 54 tests.

About plugin

  • Plugin page: cf7-bot-forms-add-on
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-4.9.1
  • WordPress version: 6.3.1
  • First release: Jan 28, 2017
  • Latest release: Dec 21, 2017
  • Number of updates: 8
  • Update frequency: every 40.5 days
  • Top authors: brinyinfoway (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,284 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼2.95ms] Passed 4 tests

Server-side resources used by Conversational Form Add-on For Contact Form 7
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.25 ▼2.24
Dashboard /wp-admin3.36 ▲0.0551.57 ▼0.59
Posts /wp-admin/edit.php3.41 ▲0.0550.80 ▲2.27
Add New Post /wp-admin/post-new.php5.94 ▲0.0594.10 ▼6.63
Media Library /wp-admin/upload.php3.28 ▲0.0537.44 ▼2.35

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Conversational Form Add-on For Contact Form 7
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,851 ▲9014.84 ▲0.091.99 ▲0.3843.55 ▼3.25
Dashboard /wp-admin2,229 ▲264.80 ▼1.06112.04 ▼4.5942.89 ▲0.10
Posts /wp-admin/edit.php2,111 ▲82.04 ▲0.0438.97 ▼3.0342.07 ▲5.93
Add New Post /wp-admin/post-new.php1,557 ▲1222.91 ▼0.60610.89 ▼12.6074.17 ▲4.66
Media Library /wp-admin/upload.php1,414 ▲144.26 ▼0.0198.46 ▼16.1649.38 ▲2.84

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 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
The following issues need your attention
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/cf7-bot-forms-add-on/cf7-bot-forms-addon.php on line 15
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/cf7-bot-forms-add-on/cf7-bot-forms-addon.php on line 15
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/cf7-bot-forms-add-on/cf7-bot-forms-addon.php on line 15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/cf7-bot-forms-add-on/cf7-bot-forms-addon.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 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
Please fix the following attributes:
  • Screenshots: No descriptions were found for these screenshots #1, #2 in cf7-bot-forms-add-on/assets to your readme.txt
  • Donate link: Invalid url: ""
Please take inspiration from this readme.txt

cf7-bot-forms-add-on/cf7-bot-forms-addon.php 92% from 13 tests

The main PHP script in "Conversational Form Add-on For Contact Form 7" version 1.2 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("cf7-bot-forms-add-on.php" instead of "cf7-bot-forms-addon.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected704 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP32613332
CSS251280
JavaScript237988
Markdown1304

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 compressed PNG files occupy 0.11MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/robot.png36.41KB38.98KB0.00%
assets/images/human.png42.97KB45.25KB0.00%
screen01.png31.06KB18.97KB▼ 38.93%