83% users-to-admin-contact-form

Code Review | Users to admin contact form

WordPress plugin Users to admin contact form scored83%from 54 tests.

About plugin

  • Plugin page: users-to-admin-co...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2.2
  • WordPress version: 6.3.1
  • First release: Jul 15, 2015
  • Latest release: Jul 15, 2015
  • Number of updates: 2
  • Update frequency: every 16.5 days
  • Top authors: techgin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /770 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.15ms] Passed 4 tests

A check of server-side resources used by Users to admin contact form
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0234.41 ▼5.97
Dashboard /wp-admin3.33 ▲0.0243.70 ▼3.41
Posts /wp-admin/edit.php3.38 ▲0.0248.83 ▲1.03
Add New Post /wp-admin/post-new.php5.91 ▲0.0278.34 ▼18.58
Media Library /wp-admin/upload.php3.25 ▲0.0233.56 ▼0.65

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Users to admin contact form
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.23 ▼1.371.71 ▼0.2338.47 ▼16.14
Dashboard /wp-admin2,206 ▲215.91 ▲0.99114.98 ▲4.8444.73 ▲1.51
Posts /wp-admin/edit.php2,089 ▼02.05 ▼0.0136.27 ▼4.3933.53 ▼6.47
Add New Post /wp-admin/post-new.php1,519 ▼1523.41 ▲0.21689.08 ▲71.8153.88 ▲3.60
Media Library /wp-admin/upload.php1,388 ▼04.26 ▲0.0394.58 ▼8.9042.19 ▼2.31

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
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/users-to-admin-contact-form/users_contact_form.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (Contact form example.) image not found
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === users-to-admin-contact-form === )
You can look at the official readme.txt

users-to-admin-contact-form/users_contact_form.php 92% from 13 tests

The main PHP file in "Users to admin contact form" ver. 0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("users-to-admin-contact-form.php" instead of "users_contact_form.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected73 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1251566
CSS1007

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png4.51KB2.24KB▼ 50.38%