84% ip1-contact-form

Code Review | iP.1 Contact Form

WordPress plugin iP.1 Contact Form scored84%from 54 tests.

About plugin

  • Plugin page: ip1-contact-form
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9.1-6.0
  • WordPress version: 6.3.1
  • First release: Jun 30, 2022
  • Latest release: Jul 5, 2022
  • Number of updates: 3
  • Update frequency: every 1.7 days
  • Top authors: erikwikstromip1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,018 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

This is a short check of server-side resources used by iP.1 Contact Form
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0640.47 ▼3.54
Dashboard /wp-admin3.37 ▲0.0752.24 ▼1.57
Posts /wp-admin/edit.php3.42 ▲0.0652.90 ▲1.11
Add New Post /wp-admin/post-new.php5.95 ▲0.0695.19 ▼16.74
Media Library /wp-admin/upload.php3.30 ▲0.0645.55 ▲4.36

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by iP.1 Contact Form
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲3314.35 ▼0.031.84 ▲0.1242.09 ▼3.14
Dashboard /wp-admin2,207 ▲305.57 ▼0.0986.83 ▼4.1273.13 ▲25.07
Posts /wp-admin/edit.php2,121 ▲242.01 ▼0.0140.28 ▲3.6936.00 ▼0.49
Add New Post /wp-admin/post-new.php1,693 ▲16322.45 ▼0.69763.40 ▲74.6954.41 ▼0.93
Media Library /wp-admin/upload.php1,415 ▲154.19 ▼0.02116.77 ▼1.9382.05 ▲31.38

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/ip1-contact-form/ip1-contactform.php:331

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: ip1, form, contacts

ip1-contact-form/ip1-contactform.php 85% from 13 tests

The main PHP script in "iP.1 Contact Form" version 1.0.3 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 291 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ip1-contact-form.php" instead of "ip1-contactform.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected518 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1288518

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions6
▷ Named functions6100.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
No PNG images were found in this plugin