83% responsive-contact-form-mailchimp-extension

Code Review | Responsive Contact Form Mailchimp Extension

WordPress plugin Responsive Contact Form Mailchimp Extension scored83%from 54 tests.

About plugin

  • Plugin page: responsive-contac...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.4.2
  • WordPress version: 6.3.1
  • First release: Apr 11, 2014
  • Latest release: Jul 20, 2020
  • Number of updates: 15
  • Update frequency: every 152.8 days
  • Top authors: augustinfotech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,045 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.00MB] [CPU: ▼3.68ms] Passed 4 tests

Server-side resources used by Responsive Contact Form Mailchimp Extension
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.04 ▼1.98
Dashboard /wp-admin3.31 ▲0.0042.67 ▼5.70
Posts /wp-admin/edit.php3.36 ▲0.0047.81 ▲1.53
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.76 ▼8.51
Media Library /wp-admin/upload.php3.23 ▲0.0034.51 ▲1.46

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Responsive Contact Form Mailchimp Extension
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6213.27 ▼1.101.82 ▲0.0240.82 ▼5.76
Dashboard /wp-admin2,200 ▲125.82 ▲0.94103.99 ▼13.0937.03 ▼10.69
Posts /wp-admin/edit.php2,086 ▼31.97 ▼0.0240.89 ▲2.9334.50 ▲0.02
Add New Post /wp-admin/post-new.php1,514 ▼1917.45 ▼5.64653.43 ▼64.5556.87 ▲7.07
Media Library /wp-admin/upload.php1,388 ▼04.22 ▲0.02100.83 ▼8.3041.95 ▼4.79

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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 trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/responsive-contact-form-mailchimp-extension/admin/views/admin.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: Please add an image for screenshot #1 (Set your MailChimp API key in the plugin settings.)
  • Tags: Too many tags (17 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

responsive-contact-form-mailchimp-extension/ai-responsive-contact-form-mailchimp-extension.php 85% from 13 tests

The entry point to "Responsive Contact Form Mailchimp Extension" version 1.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("responsive-contact-form-mailchimp-extension.php" instead of "ai-responsive-contact-form-mailchimp-extension.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
There were no executable files found in this plugin455 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP7184214455

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity16.67
▷ Minimum class complexity6.00
▷ Maximum class complexity33.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods40
▷ Static methods820.00%
▷ Public methods2665.00%
▷ Protected methods00.00%
▷ Private methods1435.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.23MB with 0.18MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png42.86KB8.06KB▼ 81.20%
screenshot-1.png57.41KB20.85KB▼ 63.68%
assets/screenshot-1.png57.41KB20.85KB▼ 63.68%
(invalid) assets/banner-772x250.png82.12KB0.00KB▼ 100.00%