84% icaal-contact-form

Code Review | ICAAL Contact Form

WordPress plugin ICAAL Contact Form scored84%from 54 tests.

About plugin

  • Plugin page: icaal-contact-form
  • Plugin version: 1.3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-4.7.5
  • WordPress version: 6.3.1
  • First release: Feb 20, 2017
  • Latest release: Jun 7, 2017
  • Number of updates: 12
  • Update frequency: every 8.8 days
  • Top authors: ashdotguru (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,055 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.08MB] [CPU: ▼4.79ms] Passed 4 tests

An overview of server-side resources used by ICAAL Contact Form
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1043.75 ▲3.98
Dashboard /wp-admin3.39 ▲0.0557.97 ▼8.93
Posts /wp-admin/edit.php3.50 ▲0.1551.54 ▲1.07
Add New Post /wp-admin/post-new.php5.99 ▲0.1187.08 ▼14.00
Media Library /wp-admin/upload.php3.31 ▲0.0939.55 ▲2.69

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for ICAAL Contact Form
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,913 ▲16713.89 ▼0.288.71 ▲6.8739.82 ▲0.05
Dashboard /wp-admin2,210 ▲224.87 ▼0.18103.86 ▼7.4839.75 ▼4.37
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0036.31 ▼7.0933.56 ▼2.17
Add New Post /wp-admin/post-new.php1,518 ▼1923.15 ▲0.02647.23 ▼13.2553.95 ▼9.88
Media Library /wp-admin/upload.php1,386 ▲14.17 ▼0.0195.32 ▼14.3741.19 ▼6.88

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/icaal-contact-form/admin/partials/icaal-contact-form-admin-display.php
    • > /wp-content/plugins/icaal-contact-form/public/partials/icaal-contact-form-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === icaal-contact-form === )
Please take inspiration from this readme.txt

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

Analyzing the main PHP file in "ICAAL Contact Form" version 1.3.3
75 characters long description:
Create simple contact forms, send via. AJAX and post to the ICAAL Dashboard

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin420 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12165531348
JavaScript2142772
CSS2080

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity9.43
▷ Minimum class complexity1.00
▷ Maximum class complexity58.00
Average method complexity2.79
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods33
▷ Static methods26.06%
▷ Public methods2369.70%
▷ Protected methods00.00%
▷ Private methods1030.30%
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

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin