84% contact-form-by-tech-c-net

Code Review | Contact Form by tech-c.net

WordPress plugin Contact Form by tech-c.net scored84%from 54 tests.

About plugin

  • Plugin page: contact-form-by-t...
  • Plugin version: 2.0.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.6
  • WordPress version: 6.3.1
  • First release: Oct 5, 2018
  • Latest release: Oct 5, 2018
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: techcnet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /540 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

A check of server-side resources used by Contact Form by tech-c.net
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.70 ▼1.42
Dashboard /wp-admin3.32 ▲0.0148.32 ▼1.15
Posts /wp-admin/edit.php3.37 ▲0.0147.49 ▼2.83
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.79 ▼18.27
Media Library /wp-admin/upload.php3.24 ▲0.0138.90 ▲5.77
Contact Form by tech-c.net /wp-admin/options-general.php?page=tc_contact_form_options_slug3.2134.25

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Contact Form by tech-c.net
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.34 ▼0.392.21 ▲0.6443.93 ▲2.70
Dashboard /wp-admin2,196 ▲195.54 ▲0.0386.97 ▼15.0439.25 ▼1.73
Posts /wp-admin/edit.php2,104 ▲42.00 ▼0.0240.86 ▲6.8736.83 ▲0.60
Add New Post /wp-admin/post-new.php1,531 ▲522.78 ▼0.70574.30 ▼34.7947.38 ▼1.48
Media Library /wp-admin/upload.php1,404 ▲44.21 ▼0.0893.18 ▼10.6344.79 ▲0.91
Contact Form by tech-c.net /wp-admin/options-general.php?page=tc_contact_form_options_slug8762.1324.3331.30

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 did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/contact-form-by-tech-c-net/tc-contact-form.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: recaptcha, form, contact, attachments

contact-form-by-tech-c-net/tc-contact-form.php 92% from 13 tests

The entry point to "Contact Form by tech-c.net" version 2.0.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("contact-form-by-tech-c-net.php" instead of "tc-contact-form.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,479 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PO File93153151,062
PHP15019329
CSS115088

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
donate-paypal.png18.82KB4.92KB▼ 73.84%