62% contractor-contact-form-website-to-workflow-tool

Code Review | Contractor Contact Form Website to Workflow Tool

WordPress plugin Contractor Contact Form Website to Workflow Tool scored62%from 54 tests.

About plugin

  • Plugin page: contractor-contac...
  • Plugin version: 4.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3
  • WordPress version: 6.3.1
  • First release: Jul 4, 2016
  • Latest release: Oct 6, 2023
  • Number of updates: 55
  • Update frequency: every 48.2 days
  • Top authors: jobprogress (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /6,778 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼3.46ms] Passed 4 tests

This is a short check of server-side resources used by Contractor Contact Form Website to Workflow Tool
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1337.37 ▼5.86
Dashboard /wp-admin3.44 ▲0.1344.85 ▼2.15
Posts /wp-admin/edit.php3.55 ▲0.1950.46 ▲2.97
Add New Post /wp-admin/post-new.php6.02 ▲0.1383.15 ▼8.79
Media Library /wp-admin/upload.php3.36 ▲0.1337.54 ▲4.76
JobProgress /wp-admin/admin.php?page=jp_admin_page3.3333.06
Customers /wp-admin/admin.php?page=jp_customer_page3.3733.66
Settings /wp-admin/admin.php?page=jp_settings_page3.3835.38

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Contractor Contact Form Website to Workflow Tool
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,920 ▲18514.03 ▼0.3511.00 ▲8.7239.48 ▼8.62
Dashboard /wp-admin2,238 ▲505.87 ▼0.03112.86 ▼5.3362.92 ▲19.27
Posts /wp-admin/edit.php2,123 ▲372.03 ▲0.0439.51 ▲1.9334.28 ▲1.67
Add New Post /wp-admin/post-new.php1,541 ▲2223.06 ▼0.14851.50 ▲182.2949.11 ▼1.96
Media Library /wp-admin/upload.php1,413 ▲284.15 ▼0.0598.77 ▼1.0070.36 ▲28.98
JobProgress /wp-admin/admin.php?page=jp_admin_page8362.0627.3526.05
Customers /wp-admin/admin.php?page=jp_customer_page9682.1925.0528.11
Settings /wp-admin/admin.php?page=jp_settings_page1,5242.1135.9925.98

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_customers
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% 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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/contractor-contact-form-website-to-workflow-tool/process.php
  • 14× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'JobProgress' not found in wp-content/plugins/contractor-contact-form-website-to-workflow-tool/class.scheduler.php:2
    • > PHP Notice
      Undefined index: captcha_id in wp-content/plugins/contractor-contact-form-website-to-workflow-tool/process.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/contractor-contact-form-website-to-workflow-tool/disconnect-form.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ine() in wp-content/plugins/contractor-contact-form-website-to-workflow-tool/connect-form.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'JobProgress' not found in wp-content/plugins/contractor-contact-form-website-to-workflow-tool/class.customer.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/contractor-contact-form-website-to-workflow-tool/jobprogress.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/contractor-contact-form-website-to-workflow-tool/form-settings-index-page.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/contractor-contact-form-website-to-workflow-tool/customer-form-page.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'JP_Request' not found in wp-content/plugins/contractor-contact-form-website-to-workflow-tool/class.jobprogress.php:2
    • > PHP Notice
      Undefined variable: order in wp-content/plugins/contractor-contact-form-website-to-workflow-tool/customer-index-page.php on line 2

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=jp_settings_page
    • > Network (severe)
    http://jobprogress.com/app/favicon.ico - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
1 plugin tags: customer-manager

contractor-contact-form-website-to-workflow-tool/jobprogress.php 85% from 13 tests

The main file in "Contractor Contact Form Website to Workflow Tool" v. 4.2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("contractor-contact-form-website-to-workflow-tool.php" instead of "jobprogress.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 646 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin4,690 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
PHP172072751,794
JavaScript72671851,470
CSS51101,372
SVG30054

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.39
Average class complexity18.29
▷ Minimum class complexity1.00
▷ Maximum class complexity33.00
Average method complexity3.69
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods45
▷ Static methods00.00%
▷ Public methods3168.89%
▷ Protected methods36.67%
▷ Private methods1124.44%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants19
▷ Global constants19100.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
11 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/radio-hover.png2.03KB1.57KB▼ 22.71%
img/checkbox.png1.33KB0.38KB▼ 70.99%
css/images/ui-icons_777777_256x240.png6.83KB4.17KB▼ 38.92%
css/images/ui-icons_cc0000_256x240.png4.44KB4.17KB▼ 6.02%
css/images/ui-icons_555555_256x240.png6.82KB4.17KB▼ 38.82%