84% monocontact-forms

Code Review | Monocontact Forms

WordPress plugin Monocontact Forms scored84%from 54 tests.

About plugin

  • Plugin page: monocontact-forms
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.0.1
  • WordPress version: 6.3.1
  • First release: Dec 27, 2016
  • Latest release: Dec 13, 2018
  • Number of updates: 14
  • Update frequency: every 51.1 days
  • Top authors: tallerdigital (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Server-side resources used by Monocontact Forms
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.67 ▼2.87
Dashboard /wp-admin3.32 ▼0.0342.57 ▼17.83
Posts /wp-admin/edit.php3.37 ▲0.0147.78 ▼2.71
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.28 ▲0.22
Media Library /wp-admin/upload.php3.24 ▲0.0135.13 ▲1.33
Monocontact Forms /wp-admin/options-general.php?page=monocontact-forms3.2132.12

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Monocontact Forms
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲9114.09 ▼0.5813.77 ▲12.0943.59 ▲3.53
Dashboard /wp-admin2,210 ▲195.86 ▲0.99101.57 ▼0.9040.26 ▼3.40
Posts /wp-admin/edit.php2,096 ▲42.01 ▲0.0238.75 ▼2.4534.04 ▲0.41
Add New Post /wp-admin/post-new.php1,540 ▲723.10 ▼0.13664.73 ▲31.8258.66 ▲6.37
Media Library /wp-admin/upload.php1,386 ▲44.16 ▼0.0397.01 ▼3.5843.24 ▼1.83
Monocontact Forms /wp-admin/options-general.php?page=monocontact-forms7832.0522.5424.83

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/monocontact-forms/monocontact-forms.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === monocontact-forms === )
The official readme.txt is a good inspiration

monocontact-forms/monocontact-forms.php Passed 13 tests

The primary PHP file in "Monocontact Forms" version 1.3.0 is used by WordPress to initiate all plugin functionality
32 characters long description:
Shortcodes for Monocontact forms

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin54 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2101254

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin