84% quform-mailchimp

Code Review | Quform Mailchimp

WordPress plugin Quform Mailchimp scored84%from 54 tests.

About plugin

  • Plugin page: quform-mailchimp
  • Plugin version: 1.3.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.2
  • WordPress version: 6.3.1
  • First release: Dec 21, 2018
  • Latest release: Jun 21, 2023
  • Number of updates: 25
  • Update frequency: every 65.7 days
  • Top authors: ThemeCatcher (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active /9,685 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.53ms] Passed 4 tests

An overview of server-side resources used by Quform Mailchimp
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.69 ▼2.35
Dashboard /wp-admin3.32 ▲0.0143.70 ▼5.98
Posts /wp-admin/edit.php3.37 ▲0.0145.89 ▲0.18
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.37 ▲3.50
Media Library /wp-admin/upload.php3.24 ▲0.0133.06 ▼1.97

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 50 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
quform_mailchimp_activated
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Quform Mailchimp
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.74 ▲0.451.65 ▼0.6240.04 ▼6.62
Dashboard /wp-admin2,206 ▲245.87 ▲0.98105.46 ▼9.3039.97 ▼4.86
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0141.41 ▲5.3433.81 ▲3.02
Add New Post /wp-admin/post-new.php1,533 ▼023.04 ▼0.22662.45 ▼17.3467.60 ▲15.04
Media Library /wp-admin/upload.php1,385 ▼34.25 ▲0.0596.09 ▼9.5141.56 ▼0.41

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • quform_mailchimp_activated
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'Quform_Mailchimp_Admin_Page' not found in wp-content/plugins/quform-mailchimp/library/Quform/Mailchimp/Admin/Page/Integrations/List.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Quform_Mailchimp_Admin_Page' not found in wp-content/plugins/quform-mailchimp/library/Quform/Mailchimp/Admin/Page/Settings.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Quform_Admin_Page' not found in wp-content/plugins/quform-mailchimp/library/Quform/Mailchimp/Admin/Page.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/quform-mailchimp/library/Quform/Mailchimp/Integration/List/Table.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Quform_Mailchimp_Admin_Page' not found in wp-content/plugins/quform-mailchimp/library/Quform/Mailchimp/Admin/Page/Integrations/Add.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Quform_Mailchimp_Admin_Page' not found in wp-content/plugins/quform-mailchimp/library/Quform/Mailchimp/Admin/Page/Integrations/Edit.php:7

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: email marketing, forms, quform, gdpr, form builder...

quform-mailchimp/quform-mailchimp.php Passed 13 tests

The main file in "Quform Mailchimp" v. 1.3.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
51 characters long description:
Easily add contacts to Mailchimp from Quform forms.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected4,694 lines of code in 38 files:
LanguageFilesBlank linesComment linesLines of code
PHP307411,0983,124
JavaScript63283321,250
CSS218320

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity17.00
▷ Minimum class complexity1.00
▷ Maximum class complexity132.00
Average method complexity3.22
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes24
▷ Abstract classes14.17%
▷ Concrete classes2395.83%
▷ Final classes00.00%
Methods173
▷ Static methods95.20%
▷ Public methods10761.85%
▷ Protected methods6638.15%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants685.71%
▷ Class constants114.29%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/mailchimp-logo@2x.png2.01KB2.18KB0.00%
admin/images/mailchimp-logo.png0.92KB1.25KB0.00%