10% wp-quick-contact-us

Code Review | WP Quick Contact Us

WordPress plugin WP Quick Contact Us scored 10% from 54 tests.

About plugin

  • Plugin page: wp-quick-contact-us
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.5
  • WordPress version: 6.3.1
  • First release: Mar 4, 2013
  • Latest release: Mar 4, 2013
  • Number of updates: 9
  • Update frequency: every 0.2 days
  • Top authors: dmitritechs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 6,262 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/wp-quick-contact-us/wp-quick-contact-us.php+228
    Undefined index: process_wp_quick_contact

Server metrics [RAM: ▼1.86MB] [CPU: ▼52.66ms] Passed 4 tests

A check of server-side resources used by WP Quick Contact Us
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.12 ▼1.345.97 ▼34.18
Dashboard /wp-admin2.14 ▼1.166.79 ▼35.38
Posts /wp-admin/edit.php2.14 ▼1.216.90 ▼43.84
Add New Post /wp-admin/post-new.php2.14 ▼3.746.81 ▼97.25
Media Library /wp-admin/upload.php2.14 ▼1.086.89 ▼27.44

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 13 new options
New WordPress options
wp_quick_contact_show_on_page
wp_quick_contact_toemail
widget_recent-comments
wp_quick_contact_title
can_compress_scripts
wp_quick_contact_show_on_home
widget_theysaidso_widget
wp_quick_contact_show_on_post
widget_recent-posts
theysaidso_admin_options
...

Browser metrics Passed 4 tests

WP Quick Contact Us: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,984 ▲22713.80 ▼0.846.41 ▲4.2648.24 ▼2.55
Dashboard /wp-admin2,208 ▲205.86 ▼0.20105.72 ▼5.9483.23 ▲40.38
Posts /wp-admin/edit.php2,109 ▲202.05 ▲0.0535.84 ▼3.6636.81 ▼1.58
Add New Post /wp-admin/post-new.php1,534 ▼823.27 ▲5.13785.98 ▲174.5553.02 ▼11.56
Media Library /wp-admin/upload.php1,402 ▲144.14 ▼0.0995.09 ▼4.2571.09 ▲27.64

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/wp-quick-contact-us/wp-quick-contact-us.php+228
    Undefined index: process_wp_quick_contact
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-quick-contact-us/wp-quick-contact-us.php:14

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 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Screenshots: A description for screenshot #2 is missing in wp-quick-contact-us/assets to your readme.txt
  • Screenshots: Add an image for screenshot #4 (screenshot-2.png Example of Frontend view.)
The official readme.txt might help

wp-quick-contact-us/wp-quick-contact-us.php Passed 13 tests

"WP Quick Contact Us" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
67 characters long description:
A plugin to creating floating contact form on home, pages or posts.

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 detected1,299 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript3115230836
PHP13422327
CSS222136

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
6 PNG files occupy 0.17MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/dmitri-logo.png8.50KB3.31KB▼ 61.05%
images/icons.png5.13KB1.88KB▼ 63.43%
images/buttons-light.png2.87KB0.23KB▼ 92.14%
images/icon.png3.40KB0.91KB▼ 73.33%
screenshot-2.png17.20KB8.80KB▼ 48.82%