78% yeem-contact-form

Code Review | Yeem Contact Form

WordPress plugin Yeem Contact Form scored78%from 54 tests.

About plugin

  • Plugin page: yeem-contact-form
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.5-4.8
  • WordPress version: 6.3.1
  • First release: Aug 19, 2017
  • Latest release: Aug 19, 2017
  • Number of updates: 4
  • Update frequency: every 0.8 days
  • Top authors: kurky17 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /602 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼7.43ms] Passed 4 tests

Analyzing server-side resources used by Yeem Contact Form
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1136.54 ▼2.29
Dashboard /wp-admin3.42 ▲0.1247.03 ▼8.18
Posts /wp-admin/edit.php3.53 ▲0.1844.57 ▼1.48
Add New Post /wp-admin/post-new.php6.02 ▲0.1481.31 ▼16.93
Media Library /wp-admin/upload.php3.34 ▲0.1233.14 ▼2.30
Settings /wp-admin/admin.php?page=yeem_contact_form_settings3.3132.40
Design Form /wp-admin/admin.php?page=yeem_contact_form_builder3.3129.51

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Yeem Contact Form
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,966 ▲22013.96 ▼0.4215.14 ▲13.3438.89 ▼2.84
Dashboard /wp-admin2,242 ▲544.92 ▲0.05122.84 ▲5.4943.60 ▼6.57
Posts /wp-admin/edit.php2,111 ▲222.27 ▲0.2142.40 ▲6.3734.84 ▲1.88
Add New Post /wp-admin/post-new.php1,700 ▲18622.42 ▲4.82664.39 ▼7.4042.21 ▼16.10
Media Library /wp-admin/upload.php1,424 ▲364.29 ▲0.11100.69 ▼1.2344.07 ▼0.09
Settings /wp-admin/admin.php?page=yeem_contact_form_settings8981.9731.1028.79
Design Form /wp-admin/admin.php?page=yeem_contact_form_builder8781.9434.1649.42

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/yeem-contact-form/admin/partials/yeem-contact-form-admin-display.php
    • > /wp-content/plugins/yeem-contact-form/public/partials/yeem-contact-form-public-display.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=yeem_contact_form_settings
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=yeem_contact_form_settings 0:0 Uncaught SyntaxError: Unexpected end of JSON input
    • > GET request to /wp-admin/admin.php?page=yeem_contact_form_builder
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=yeem_contact_form_builder 0:0 Uncaught SyntaxError: Unexpected end of JSON input

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots require images: #1 (The Settings page where you can input your email and some messages for your customer.), #2 (The Form Builder page where you can create your form easily.)
  • Donate link: Invalid url: "paypal.me/MichelleAnneYee"
Please take inspiration from this readme.txt

yeem-contact-form/yeem-contact-form.php Passed 13 tests

The entry point to "Yeem Contact Form" version 1.0.0 is a PHP file that has certain tags in its header comment area
41 characters long description:
An easy to use customizable contact form.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,096 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12184593407
JavaScript2112113383
CSS24810306

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity2.71
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity1.29
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods41
▷ Static methods24.88%
▷ Public methods3585.37%
▷ Protected methods00.00%
▷ Private methods614.63%
Functions3
▷ Named functions3100.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
4 PNG files occupy 0.13MB with 0.11MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png53.41KB14.91KB▼ 72.09%
img/calendar.png7.61KB0.64KB▼ 91.55%
img/down-arrow.png7.27KB0.41KB▼ 94.33%
assets/screenshot-2.png69.31KB19.97KB▼ 71.18%