77% responsive-contact-form

Code Review | Multi-language Responsive Contact Form

WordPress plugin Multi-language Responsive Contact Form scored77%from 54 tests.

About plugin

  • Plugin page: responsive-contac...
  • Plugin version: 2.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.4.2
  • WordPress version: 6.3.1
  • First release: Jul 16, 2013
  • Latest release: Jul 20, 2020
  • Number of updates: 92
  • Update frequency: every 27.9 days
  • Top authors: augustinfotech (100%)

Code review

54 tests

User reviews

19 reviews

Install metrics

600+ active /64,296 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.26MB] [CPU: ▼17.19ms] Passed 4 tests

A check of server-side resources used by Multi-language Responsive Contact Form
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.18 ▼1.286.33 ▼34.13
Dashboard /wp-admin3.39 ▲0.0950.27 ▲2.23
Posts /wp-admin/edit.php3.44 ▲0.0944.40 ▼6.72
Add New Post /wp-admin/post-new.php5.97 ▲0.0979.66 ▼30.13
Media Library /wp-admin/upload.php3.31 ▲0.0936.76 ▲2.50
AI Contact Form /wp-admin/admin.php?page=ai_contact3.3437.53
User List /wp-admin/admin.php?page=ai_user_lists3.3034.78

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 61 new files
Database: 1 new table, 6 new options
New tables
wp_ai_contact
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Multi-language Responsive Contact Form
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲8913.32 ▼0.991.66 ▼0.0743.21 ▲1.01
Dashboard /wp-admin2,244 ▲535.84 ▼0.05104.76 ▲0.0343.41 ▼1.64
Posts /wp-admin/edit.php2,123 ▲312.00 ▼0.0236.34 ▼4.6134.10 ▼2.25
Add New Post /wp-admin/post-new.php1,559 ▲2623.05 ▼0.18656.10 ▼4.8054.81 ▲6.17
Media Library /wp-admin/upload.php1,423 ▲384.26 ▲0.0799.57 ▼1.7149.57 ▲4.64
AI Contact Form /wp-admin/admin.php?page=ai_contact1,6466.63116.5365.35
User List /wp-admin/admin.php?page=ai_user_lists9122.2331.6425.66

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/responsive-contact-form/include/userlist_export.php
  • 8× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/responsive-contact-form/include/ai_user_list.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/responsive-contact-form/include/ai_settings.php:12
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/responsive-contact-form/ai-responsive-contact-form.php on line 12
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/responsive-contact-form/ai-responsive-contact-form.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/responsive-contact-form/ai-responsive-contact-form.php:13
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/responsive-contact-form/ai-responsive-contact-form.php on line 12
    • > WordPress database error Incorrect DATE value
      '--' for query SELECT * FROM wp_ai_contact WHERE contact_date >= '--' and contact_date <= '--' order by user_id ASC
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/responsive-contact-form/include/ai_user_list.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 83% 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: These screenshots require images: #1 (Contact Form display.), #2 (AI Simple Ajax Contact Form Settings in WordPress admin panel.), #3 (Create a page or a post and insert the shortcode [ai_contact_form] into the text.), #4 (You can add `` shortcode in any template.)
  • Tags: There are too many tags (17 tag instead of maximum 10)
You can look at the official readme.txt

responsive-contact-form/ai-responsive-contact-form.php 77% from 13 tests

"Multi-language Responsive Contact Form" version 2.8's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Description: Please keep the plugin description shorter than 140 characters (currently 199 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("responsive-contact-form.php" instead of "ai-responsive-contact-form.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected22,105 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript63,4366,88717,518
PO File118221,2212,068
CSS32051281,762
PHP57051757

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
17 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/sort_desc.png1.10KB0.25KB▼ 77.73%
images/back_disabled.png1.33KB0.60KB▼ 55.11%
images/august-infotech.png2.18KB1.47KB▼ 32.47%
images/sort_asc.png1.09KB0.25KB▼ 77.46%
images/forward_enabled_hover.png1.35KB0.58KB▼ 56.93%