84% cf7woo

Code Review | CF7Woo - add ContactForm7 forms to WooCommerce products ✌

WordPress plugin CF7Woo - add ContactForm7 forms to WooCommerce products ✌ scored84%from 54 tests.

About plugin

  • Plugin page: cf7woo
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.2
  • WordPress version: 6.3.1
  • First release: Feb 28, 2023
  • Latest release: Apr 7, 2023
  • Number of updates: 6
  • Update frequency: every 6.3 days
  • Top authors: pluginsclub (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /224 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.89ms] Passed 4 tests

Analyzing server-side resources used by CF7Woo - add ContactForm7 forms to WooCommerce products ✌
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0136.43 ▼11.00
Dashboard /wp-admin3.32 ▲0.0246.37 ▼9.27
Posts /wp-admin/edit.php3.37 ▲0.0148.08 ▼1.95
Add New Post /wp-admin/post-new.php5.90 ▲0.0293.04 ▼13.32
Media Library /wp-admin/upload.php3.24 ▲0.0138.24 ▲6.03

Server storage [IO: ▲0.01MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

Checking browser requirements for CF7Woo - add ContactForm7 forms to WooCommerce products ✌
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.59 ▲0.041.97 ▼0.0041.38 ▼6.45
Dashboard /wp-admin2,198 ▲215.62 ▲0.0187.43 ▼5.8440.88 ▼0.85
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0140.94 ▲2.7637.42 ▼0.45
Add New Post /wp-admin/post-new.php1,527 ▼123.09 ▲0.06624.57 ▼2.5593.66 ▲22.14
Media Library /wp-admin/upload.php1,397 ▼04.16 ▼0.04106.90 ▲8.3748.36 ▲4.94

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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 were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cf7woo/cf7woo.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (Add a Contact form to WooCommerce product-link), #2 (Form takes style form the theme)
The official readme.txt might help

cf7woo/cf7woo.php Passed 13 tests

The main PHP script in "CF7Woo - add ContactForm7 forms to WooCommerce products ✌" version 1.0 is automatically included on every request by WordPress
79 characters long description:
A simple plugin to display ContactForm7 forms on any WooCommerce products page.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected52 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP171452

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin