74% just-contact

Code Review | Just Contact

WordPress plugin Just Contact scored74%from 54 tests.

About plugin

  • Plugin page: just-contact
  • Plugin version: 1.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9
  • WordPress version: 6.3.1
  • First release: Feb 22, 2018
  • Latest release: Jun 27, 2018
  • Number of updates: 20
  • Update frequency: every 23.2 days
  • Top authors: codecompiled (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /467 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

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

Server-side resources used by Just Contact
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.11 ▼1.58
Dashboard /wp-admin3.35 ▲0.0447.44 ▼7.98
Posts /wp-admin/edit.php3.40 ▲0.0448.05 ▼4.18
Add New Post /wp-admin/post-new.php5.95 ▲0.0686.26 ▼13.17
Media Library /wp-admin/upload.php3.27 ▲0.0436.92 ▼0.65
JustContact /wp-admin/options-general.php?page=3.2436.76

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Just Contact
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,887 ▲12613.80 ▼0.498.17 ▲6.4644.08 ▼2.90
Dashboard /wp-admin2,207 ▲365.59 ▼0.0585.61 ▼4.4839.60 ▼1.19
Posts /wp-admin/edit.php2,109 ▲92.02 ▲0.0738.41 ▲0.3235.91 ▲1.10
Add New Post /wp-admin/post-new.php1,532 ▲623.02 ▼0.63647.72 ▼69.8446.97 ▼8.90
Media Library /wp-admin/upload.php1,406 ▲94.19 ▲0.0199.96 ▼13.2944.13 ▼3.77
JustContact /wp-admin/options-general.php?page=8622.0024.5023.24

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_just_contact
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Please fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/just-contact/just-contact-us.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/just-contact/JustContactOptions.php:139

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: contact form, contact, contact form plugin, just contact form

just-contact/just-contact-us.php 92% from 13 tests

This is the main PHP file of "Just Contact" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("just-contact.php" instead of "just-contact-us.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin264 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP211219246
JavaScript15218

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions14
▷ Named functions1285.71%
▷ Anonymous functions214.29%
Constants3
▷ Global constants3100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
just contact.png7.30KB5.19KB▼ 28.85%