83% webconnex-form-managment

Code Review | WebConnex Form Management

WordPress plugin WebConnex Form Management scored83%from 54 tests.

About plugin

  • Plugin page: webconnex-form-ma...
  • Plugin version: 1.6.19
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.1-5.7
  • WordPress version: 6.3.1
  • First release: May 11, 2015
  • Latest release: Mar 15, 2021
  • Number of updates: 57
  • Update frequency: every 37.5 days
  • Top authors: smithjw1 (96.49%)jordancolburn (5.26%)

Code review

54 tests

User reviews

1 review

Install metrics

800+ active /17,125 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

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

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

A check of server-side resources used by WebConnex Form Management
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.30 ▲2.44
Dashboard /wp-admin3.33 ▼0.0257.71 ▼10.80
Posts /wp-admin/edit.php3.38 ▲0.0350.49 ▼0.27
Add New Post /wp-admin/post-new.php5.93 ▲0.0488.89 ▼20.64
Media Library /wp-admin/upload.php3.25 ▲0.0237.32 ▼0.75

Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
These are issues you should consider
  • The plugin illegally modified 1 file (4.00KB) outside of "wp-content/plugins/webconnex-form-managment/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

WebConnex Form Management: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6913.33 ▼1.304.77 ▲3.1043.04 ▲2.38
Dashboard /wp-admin2,221 ▲155.84 ▲0.94111.09 ▲1.3942.25 ▼8.12
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0334.97 ▲0.4434.39 ▼2.77
Add New Post /wp-admin/post-new.php1,670 ▲13723.81 ▲0.65662.89 ▼44.4635.46 ▼15.48
Media Library /wp-admin/upload.php1,400 ▼04.22 ▲0.05103.78 ▼2.6745.65 ▼1.64

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/webconnex-form-managment/wx-form-management-editor-popup.php
    • > /wp-content/plugins/webconnex-form-managment/admin/wx-form-management-editor-popup.php

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 on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (The pop-up editor screen) image not found
The official readme.txt is a good inspiration

webconnex-form-managment/wx-form-management.php 92% from 13 tests

The primary PHP file in "WebConnex Form Management" version 1.6.19 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("webconnex-form-managment.php" instead of "wx-form-management.php")

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
Everything looks great! No dangerous files found in this plugin252 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP3221698
JavaScript35785
CSS23269

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.12
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods787.50%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
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
No PNG files were detected