84% contact-us-simple-form

Code Review | Contact Us Simple Form

WordPress plugin Contact Us Simple Form scored84%from 54 tests.

About plugin

  • Plugin page: contact-us-simple...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.5.3
  • WordPress version: 6.3.1
  • First release: Aug 16, 2016
  • Latest release: Aug 16, 2016
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: bruterdregz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /9,041 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.03MB] [CPU: ▼9.67ms] Passed 4 tests

A check of server-side resources used by Contact Us Simple Form
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.20 ▼4.04
Dashboard /wp-admin3.35 ▲0.0148.80 ▼16.99
Posts /wp-admin/edit.php3.47 ▲0.1142.63 ▼10.19
Add New Post /wp-admin/post-new.php5.93 ▲0.0595.69 ▼7.44
Media Library /wp-admin/upload.php3.27 ▲0.0536.24 ▼0.97
Contact Us Simple Form /wp-admin/options-general.php?page=contact-us-simple-form/contact-us-simple-form.php3.2431.65

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

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

Browser metrics Passed 4 tests

Contact Us Simple Form: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,929 ▲16813.40 ▼0.988.08 ▲6.2446.40 ▲2.76
Dashboard /wp-admin2,196 ▲195.56 ▲0.0287.06 ▼13.8839.85 ▼2.94
Posts /wp-admin/edit.php2,104 ▲11.99 ▼0.0239.46 ▲1.7437.01 ▲0.56
Add New Post /wp-admin/post-new.php1,540 ▲1217.95 ▼5.07641.74 ▼6.9871.47 ▲7.95
Media Library /wp-admin/upload.php1,401 ▲14.20 ▲0.02100.60 ▼0.7442.61 ▼5.06
Contact Us Simple Form /wp-admin/options-general.php?page=contact-us-simple-form/contact-us-simple-form.php8662.0225.0331.60

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • bruter_cf_contact_plugin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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 take a closer look at 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/contact-us-simple-form/contact-us-simple-form.php:109

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

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

contact-us-simple-form/contact-us-simple-form.php Passed 13 tests

Analyzing the main PHP file in "Contact Us Simple Form" version 1.0
74 characters long description:
Contact Us Simple Form - Quick, small and easy contact form for wordpress.

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 plugin412 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS21842215
PHP13928193
HTML1004

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods216.67%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/contact-icon.png3.51KB1.91KB▼ 45.55%