10% wp-sup-contact-form

Code Review | Wp Sup Contact Form

WordPress plugin Wp Sup Contact Form scored10%from 54 tests.

About plugin

  • Plugin page: wp-sup-contact-form
  • Plugin version: 0.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.1.1
  • WordPress version: 6.3.1
  • First release: Oct 24, 2013
  • Latest release: Apr 1, 2015
  • Number of updates: 39
  • Update frequency: every 13.4 days
  • Top authors: usupdotnet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,467 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • The plugin did not install without errors
    • > User deprecated in wp-includes/functions.php+5453
    Function get_settings is deprecated since version 2.1.0! Use get_option() instead.

Server metrics [RAM: ▼1.87MB] [CPU: ▼63.05ms] Passed 4 tests

Analyzing server-side resources used by Wp Sup Contact Form
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.12 ▼1.345.41 ▼39.96
Dashboard /wp-admin2.14 ▼1.205.57 ▼56.71
Posts /wp-admin/edit.php2.14 ▼1.216.35 ▼48.79
Add New Post /wp-admin/post-new.php2.14 ▼3.746.88 ▼106.75
Media Library /wp-admin/upload.php2.14 ▼1.096.91 ▼32.09

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Wp Sup Contact Form
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.27 ▼0.121.75 ▼0.2443.65 ▼1.87
Dashboard /wp-admin2,202 ▲255.65 ▼0.0489.31 ▲2.5638.57 ▼4.41
Posts /wp-admin/edit.php2,104 ▲41.99 ▼0.0735.32 ▼6.8135.19 ▼3.21
Add New Post /wp-admin/post-new.php1,547 ▼121.90 ▼1.41654.52 ▲44.9865.24 ▲16.25
Media Library /wp-admin/upload.php1,401 ▲14.31 ▲0.06109.43 ▲3.3647.41 ▼1.27
WP Sup contact Form /wp-admin/wpscf-settings.php260.440.0716.31

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin cannot be uninstalled
    • > User deprecated in wp-includes/functions.php+5453
    Function get_settings is deprecated since version 2.1.0! Use get_option() instead.
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-sup-contact-form/wpscf-settings.php:249
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-sup-contact-form/wpscf-settings.php:249

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
    • > GET request to /wp-admin/wpscf-settings.php
    • > Network (severe)
    wp-admin/wpscf-settings.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (Contact Form Display on Page/Post), #2 (Contact Form Setting Page)
Please take inspiration from this readme.txt

wp-sup-contact-form/wp-sup-contact-form.php 92% from 13 tests

The main PHP file in "Wp Sup Contact Form" ver. 0.0.6 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 148 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin683 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP4132146541
CSS1185142

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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 files were detected