89% micro-contact-form

Code Review | Micro Contact Form

WordPress plugin Micro Contact Form scored89%from 54 tests.

About plugin

  • Plugin page: micro-contact-form
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Jun 8, 2022
  • Latest release: Aug 10, 2023
  • Number of updates: 15
  • Update frequency: every 28.5 days
  • Top authors: dalesandro (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,211 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.09MB] [CPU: ▼7.41ms] Passed 4 tests

This is a short check of server-side resources used by Micro Contact Form
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.03 ▼1.31
Dashboard /wp-admin3.42 ▲0.0842.51 ▼19.79
Posts /wp-admin/edit.php3.53 ▲0.1850.45 ▲5.90
Add New Post /wp-admin/post-new.php6.00 ▲0.1292.11 ▼4.63
Media Library /wp-admin/upload.php3.34 ▲0.1233.33 ▼3.90
Micro Contact Form /wp-admin/options-general.php?page=micro-contact-form-settings3.3137.65

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Micro Contact Form
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.64 ▼0.982.02 ▼0.1642.71 ▼1.61
Dashboard /wp-admin2,213 ▲255.77 ▲0.9195.61 ▼19.8637.33 ▼9.66
Posts /wp-admin/edit.php2,090 ▲11.99 ▼0.0239.89 ▲4.1836.48 ▲0.48
Add New Post /wp-admin/post-new.php1,532 ▲1018.37 ▼4.75639.73 ▼30.0653.11 ▼5.12
Media Library /wp-admin/upload.php1,392 ▲14.23 ▲0.0495.33 ▼7.1540.90 ▼3.03
Micro Contact Form /wp-admin/options-general.php?page=micro-contact-form-settings8622.1925.1228.55

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% 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
5 plugin tags: lightweight, simple, form, email, contact

micro-contact-form/micro-contact-form.php 85% from 13 tests

The main PHP file in "Micro Contact Form" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 192 characters long)
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin370 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP49714360
CSS10010

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity42.50
▷ Minimum class complexity24.00
▷ Maximum class complexity61.00
Average method complexity4.46
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods2291.67%
▷ Protected methods00.00%
▷ Private methods28.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin