10% danixland-contact-form

Code Review | danixland contact form

WordPress plugin danixland contact form scored 10% from 54 tests.

About plugin

  • Plugin page: danixland-contact...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.6
  • WordPress version: 5.9.2
  • First release: Feb 17, 2016
  • Latest release: Nov 5, 2020
  • Number of updates: 32
  • Update frequency: every 53.9 days
  • Top authors: danixland (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 788 total downloads

Benchmarks

Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/danixland-contact-form/include/dnxcf_helper.php+94
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲0.06MB] [CPU: ▼299.54ms] Passed 4 tests

This is a short check of server-side resources used by danixland contact form
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0670.32 ▲8.97
Dashboard /wp-admin3.51 ▲0.1145.61 ▲8.02
Posts /wp-admin/edit.php3.74 ▲0.1041.55 ▼3.29
Add New Post /wp-admin/post-new.php6.97 ▲0.01116.57 ▼1,198.08
Media Library /wp-admin/upload.php3.39 ▲0.1026.10 ▼4.81

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 1 new option
New WordPress options
dnxcf_options

Browser metrics Passed 4 tests

An overview of browser requirements for danixland contact form
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲4115.71 ▲0.458.10 ▲1.982.11 ▼0.71
Dashboard /wp-admin2,898 ▲406.13 ▼0.01131.58 ▼18.31158.77 ▼4.36
Posts /wp-admin/edit.php2,708 ▲233.23 ▼0.0164.46 ▲0.48138.04 ▼8.67
Add New Post /wp-admin/post-new.php1,674 ▼7817.36 ▼3.56412.18 ▼34.17181.08 ▼9.89
Media Library /wp-admin/upload.php1,718 ▲245.50 ▲0.01141.94 ▼5.19185.93 ▼14.81

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% 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 take a closer look at the following
  • 8× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/danixland-contact-form/include/index.php
    • > /wp-content/plugins/danixland-contact-form/include/dnxcf_settings.php
    • > /wp-content/plugins/danixland-contact-form/include/dnxcf_options-register.php
    • > /wp-content/plugins/danixland-contact-form/include/dnxcf_options-display.php
    • > /wp-content/plugins/danixland-contact-form/include/dnxcf_helper.php
    • > /wp-content/plugins/danixland-contact-form/index.php
    • > /wp-content/plugins/danixland-contact-form/include/dnxcf_mail_template_danixland.php
    • > /wp-content/plugins/danixland-contact-form/danixland-contact-form.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: shortcode, contact form, custom template

danixland-contact-form/danixland-contact-form.php 92% from 13 tests

The main PHP script in "danixland contact form" version 1.3 is automatically included on every request by WordPress
It is important to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,604 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP8741491,306
PO File17898243
CSS2102538
SVG15017

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions29
▷ Named functions29100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin