84% power-form-7

Code Review | Power Form 7: Power Automate Connector for Contact Form 7

WordPress plugin Power Form 7: Power Automate Connector for Contact Form 7 scored84%from 54 tests.

About plugin

  • Plugin page: power-form-7
  • Plugin version: 2.2.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.4.1
  • WordPress version: 6.3.1
  • First release: Jan 29, 2021
  • Latest release: Nov 16, 2023
  • Number of updates: 20
  • Update frequency: every 51.4 days
  • Top authors: reenhanced (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /1,104 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

An overview of server-side resources used by Power Form 7: Power Automate Connector for Contact Form 7
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0033.89 ▼3.07
Dashboard /wp-admin3.31 ▲0.0144.95 ▼0.48
Posts /wp-admin/edit.php3.36 ▲0.0044.93 ▼4.76
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.46 ▼16.06
Media Library /wp-admin/upload.php3.23 ▲0.0033.73 ▼0.36

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Power Form 7: Power Automate Connector for Contact Form 7: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.67 ▲0.451.71 ▲0.1944.65 ▲0.26
Dashboard /wp-admin2,198 ▲215.63 ▼0.0794.72 ▲0.9941.17 ▲1.55
Posts /wp-admin/edit.php2,100 ▼32.02 ▲0.0739.75 ▼1.3934.66 ▼0.84
Add New Post /wp-admin/post-new.php1,526 ▼023.15 ▼0.37672.48 ▲38.4754.00 ▼8.14
Media Library /wp-admin/upload.php1,394 ▼94.21 ▲0.01100.93 ▲1.9642.85 ▼0.94

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 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 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
Please take a closer look at the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Rest_Controller' not found in wp-content/plugins/power-form-7/api/controllers/class-pf7-webhooks-controller.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Rest_Controller' not found in wp-content/plugins/power-form-7/api/controllers/class-pf7-forms-controller.php:3

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: flow, reenhanced, integration, contact form, contact form 7...

power-form-7/power-form-7.php Passed 13 tests

The entry point to "Power Form 7: Power Automate Connector for Contact Form 7" version 2.2.5 is a PHP file that has certain tags in its header comment area
69 characters long description:
Power Form 7 integrates Contact Form 7 with Microsoft Power Automate.

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
Success! There were no dangerous files found in this plugin1,194 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP143527011,191
JavaScript12273

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity14.36
▷ Minimum class complexity1.00
▷ Maximum class complexity40.00
Average method complexity2.64
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods89
▷ Static methods88.99%
▷ Public methods7584.27%
▷ Protected methods00.00%
▷ Private methods1415.73%
Functions7
▷ Named functions342.86%
▷ Anonymous functions457.14%
Constants13
▷ Global constants430.77%
▷ Class constants969.23%
▷ Public constants9100.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 images were found in this plugin