78% responsive-mailform

Code Review | Responsive Mailform

WordPress plugin Responsive Mailform scored78%from 54 tests.

About plugin

  • Plugin page: responsive-mailform
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.10-4.5
  • WordPress version: 6.3.1
  • First release: Apr 18, 2016
  • Latest release: Sep 5, 2016
  • Number of updates: 81
  • Update frequency: every 1.7 days
  • Top authors: motohirotani0505 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

700+ active /4,366 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.08MB] [CPU: ▼4.88ms] Passed 4 tests

Analyzing server-side resources used by Responsive Mailform
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0836.58 ▼5.17
Dashboard /wp-admin3.39 ▲0.0848.29 ▼7.03
Posts /wp-admin/edit.php3.44 ▲0.0846.78 ▼2.81
Add New Post /wp-admin/post-new.php5.97 ▲0.0895.19 ▼4.51
Media Library /wp-admin/upload.php3.31 ▲0.0834.96 ▲1.84
Responsive Mailform /wp-admin/options-general.php?page=responsive-mailform3.2833.29

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 20 new options
New WordPress options
calendar_library
spam_check
thanks_body
widget_recent-posts
min-time
widget_recent-comments
db_upgraded
reply_mail
send_address
domain_name
...

Browser metrics Passed 4 tests

Checking browser requirements for Responsive Mailform
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,884 ▲9813.49 ▼0.738.73 ▲6.7141.84 ▼3.19
Dashboard /wp-admin2,193 ▲165.51 ▼0.0990.92 ▼8.7937.76 ▼5.74
Posts /wp-admin/edit.php2,107 ▲72.02 ▲0.0540.47 ▲4.8836.11 ▲0.84
Add New Post /wp-admin/post-new.php1,539 ▲1318.31 ▼5.13620.95 ▼79.6677.75 ▲25.58
Media Library /wp-admin/upload.php1,401 ▲44.14 ▼0.03100.48 ▼2.5745.47 ▼1.48
Responsive Mailform /wp-admin/options-general.php?page=responsive-mailform2,0642.2348.22142.62

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/responsive-mailform/mailform.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsive-mailform/responsive-mailform.php:41

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

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Contributors: The plugin contributors field is not present
The official readme.txt might help

responsive-mailform/responsive-mailform.php Passed 13 tests

The primary PHP file in "Responsive Mailform" version 1.4 is used by WordPress to initiate all plugin functionality
64 characters long description:
WordPress用のレスポンシブ メールフォームです。

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
There were no executable files found in this plugin3,574 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript5298922,240
PHP325025678
CSS213524656

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity23.50
▷ Minimum class complexity6.00
▷ Maximum class complexity41.00
Average method complexity4.21
▷ Minimum method complexity1.00
▷ Maximum method complexity41.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin