84% just-contact-form

Code Review | Just Contact Form

WordPress plugin Just Contact Form scored84%from 54 tests.

About plugin

  • Plugin page: just-contact-form
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.0-4.6
  • WordPress version: 6.3.1
  • First release: Sep 2, 2015
  • Latest release: Aug 21, 2016
  • Number of updates: 14
  • Update frequency: every 25.3 days
  • Top authors: Alobaidi (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /4,933 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼1.53ms] Passed 4 tests

Server-side resources used by Just Contact Form
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0435.43 ▼0.24
Dashboard /wp-admin3.35 ▲0.0444.47 ▼7.12
Posts /wp-admin/edit.php3.40 ▲0.0447.27 ▲1.53
Add New Post /wp-admin/post-new.php5.93 ▲0.0488.96 ▼0.28
Media Library /wp-admin/upload.php3.27 ▲0.0436.04 ▲3.17

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Just Contact Form
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,894 ▲15913.59 ▼1.066.03 ▲4.3238.04 ▼6.81
Dashboard /wp-admin2,206 ▲185.86 ▲0.94111.58 ▲1.5441.38 ▼4.62
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0440.43 ▲3.6534.75 ▼1.38
Add New Post /wp-admin/post-new.php1,542 ▲2318.74 ▼4.68599.04 ▼136.2052.21 ▼1.79
Media Library /wp-admin/upload.php1,382 ▼64.20 ▲0.01100.32 ▼15.2742.58 ▼1.94

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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 output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/just-contact-form/just-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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Tags: There are too many tags (42 tag instead of maximum 10)
You can look at the official readme.txt

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

Analyzing the main PHP file in "Just Contact Form" version 1.0.2
107 characters long description:
Just ajax contact form with captcha, one shortcode and easy to use, without options and without complexity.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected232 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP28122218
JavaScript16014

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.37
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected