51% wp-forms-connector

Code Review | WP-Forms-Connector

WordPress plugin WP-Forms-Connector scored51%from 54 tests.

About plugin

  • Plugin page: wp-forms-connector
  • Plugin version: 1.7.10
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.2
  • WordPress version: 6.3.1
  • First release: Jul 21, 2020
  • Latest release: Sep 21, 2023
  • Number of updates: 20
  • Update frequency: every 59.5 days
  • Top authors: hancock11 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /633 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.50MB] [CPU: ▲3.23ms] Passed 4 tests

Analyzing server-side resources used by WP-Forms-Connector
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.84 ▲0.3853.82 ▲15.13
Dashboard /wp-admin3.87 ▲0.5752.84 ▲3.44
Posts /wp-admin/edit.php3.92 ▲0.5751.19 ▲6.50
Add New Post /wp-admin/post-new.php6.45 ▲0.5692.52 ▼3.40
Media Library /wp-admin/upload.php3.73 ▲0.5140.61 ▲6.38

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 16 new files
Database: 4 new tables, 9 new options
New tables
wp_manage_forms
wp_wpformsappyconnector_db
wp_manage_api
wp_manage_custom
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
Appyconnect_view_install_date
wpformsappyconnectorDB_view_install_date
widget_theysaidso_widget
appypie_secret
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP-Forms-Connector
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,868 ▲12213.30 ▼1.065.31 ▲3.5642.44 ▼1.77
Dashboard /wp-admin2,275 ▲905.82 ▼0.0894.89 ▼9.2341.39 ▼3.02
Posts /wp-admin/edit.php2,164 ▲752.02 ▲0.0341.43 ▲3.7236.41 ▲2.07
Add New Post /wp-admin/post-new.php1,571 ▲5718.30 ▲0.77696.77 ▲44.4453.90 ▲0.76
Media Library /wp-admin/upload.php1,456 ▲714.38 ▲0.1895.91 ▲0.7742.88 ▲1.46
Connect Extensions /wp-admin/appyconnect-list.php?page=appyconnect-extensions260.440.0712.20
Forms Connector /wp-admin/appyconnect-list.php260.440.256.24

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'connect_form_on_deactivate' not found or invalid function name
  • Zombie tables detected upon uninstall: 4 tables
    • wp_manage_api
    • wp_wpformsappyconnector_db
    • wp_manage_forms
    • wp_manage_custom
  • Zombie WordPress options detected upon uninstall: 9 options
    • db_upgraded
    • widget_recent-comments
    • wpformsappyconnectorDB_view_install_date
    • can_compress_scripts
    • widget_recent-posts
    • appypie_secret
    • widget_theysaidso_widget
    • Appyconnect_view_install_date
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% 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 items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wp-forms-connector/inc/appyconnect-settings.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_submenu_page() in wp-content/plugins/wp-forms-connector/inc/appyconnect-add-ons.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-forms-connector/WP-Forms-Connector.php:99

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/appyconnect-list.php?page=appyconnect-extensions
    • > Network (severe)
    wp-admin/appyconnect-list.php?page=appyconnect-extensions - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/appyconnect-list.php
    • > Network (severe)
    wp-admin/appyconnect-list.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 79% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Get creted number of form list on Rest Api,(http://www.example.com/wp-json/form/v1/api/)), #2 (Get form value post form ID on Rest Api,(http://www.example.com/wp-json/form/v1/jsonapi/formID)), #3 (comment api), #4 (Post Related API), #5 (Create Pages API), #6 (Category Related API), #7 (User Listing API), #8 (Get all post Type list), #9 (Get wpform data), #10 (Pass header on authentication, username, password, mandatory,)
  • Donate link: Invalid URI found ("#")
  • Tags: You are using too many tags: 12 tag instead of maximum 10
The official readme.txt might help

wp-forms-connector/WP-Forms-Connector.php 77% from 13 tests

The main PHP file in "WP-Forms-Connector" ver. 1.7.10 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Domain Path: The domain path folder was not found ("/languages/")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-forms-connector.php" instead of "WP-Forms-Connector.php")

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
Success! There were no dangerous files found in this plugin2,551 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP85154122,537
CSS10014

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity22.86
▷ Minimum class complexity1.00
▷ Maximum class complexity172.00
Average method complexity5.08
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods75
▷ Static methods00.00%
▷ Public methods7093.33%
▷ Protected methods11.33%
▷ Private methods45.33%
Functions24
▷ Named functions2395.83%
▷ Anonymous functions14.17%
Constants0
▷ Global constants00.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
5 PNG files occupy 0.27MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772x250.png25.16KB9.72KB▼ 61.38%
assets/Screenshot-2.png125.81KB35.72KB▼ 71.61%
assets/icon-128x128.png7.12KB3.67KB▼ 48.45%
assets/Screenshot-3.png70.99KB25.12KB▼ 64.61%
assets/Screenshot-1.png47.07KB12.54KB▼ 73.35%