83% mnmlwp-simple-contact-form

Code Review | mnmlWP Simple Contact Form

WordPress plugin mnmlWP Simple Contact Form scored83%from 54 tests.

About plugin

  • Plugin page: mnmlwp-simple-con...
  • Plugin version: 0.2.7
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.6.1
  • WordPress version: 6.3.1
  • First release: Mar 16, 2018
  • Latest release: Feb 7, 2021
  • Number of updates: 43
  • Update frequency: every 24.7 days
  • Top authors: shonert (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,945 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.08MB] [CPU: ▼4.70ms] Passed 4 tests

Analyzing server-side resources used by mnmlWP Simple Contact Form
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1039.45 ▼2.57
Dashboard /wp-admin3.39 ▲0.0550.85 ▼9.57
Posts /wp-admin/edit.php3.44 ▲0.0945.84 ▼7.34
Add New Post /wp-admin/post-new.php5.97 ▲0.0992.66 ▲2.98
Media Library /wp-admin/upload.php3.31 ▲0.0936.11 ▲0.70

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for mnmlWP Simple Contact Form
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,872 ▲13713.40 ▼1.2510.83 ▲8.6845.70 ▼9.77
Dashboard /wp-admin2,198 ▲185.61 ▲0.0285.05 ▼5.7044.16 ▼0.79
Posts /wp-admin/edit.php2,100 ▲31.97 ▼0.0338.60 ▲0.6536.48 ▲3.67
Add New Post /wp-admin/post-new.php1,526 ▼023.48 ▲0.49700.17 ▲19.8853.79 ▼11.06
Media Library /wp-admin/upload.php1,400 ▼34.21 ▼0.07104.10 ▲3.1847.94 ▲1.16

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 did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • 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 everything seems fine, this is not an exhaustive test

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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mnmlwp-simple-contact-form/mnmlwp-contact-form.php:527

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% 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
Attributes that require attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === mnmlwp-simple-contact-form === )
Please take inspiration from this readme.txt

mnmlwp-simple-contact-form/mnmlwp-contact-form.php 85% from 13 tests

"mnmlWP Simple Contact Form" version 0.2.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("mnmlwp-simple-contact-form.php" instead of "mnmlwp-contact-form.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected708 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP110045382
PO File27896237
CSS124487
JavaScript1122

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity73.00
▷ Minimum class complexity73.00
▷ Maximum class complexity73.00
Average method complexity7.00
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods323.08%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin