84% fuseforms-for-mailchimp

Code Review | MailChimp Integration for WordPress

WordPress plugin MailChimp Integration for WordPress scored84%from 54 tests.

About plugin

  • Plugin page: fuseforms-for-mai...
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.3.1
  • WordPress version: 6.3.1
  • First release: Nov 23, 2015
  • Latest release: Nov 23, 2015
  • Number of updates: 3
  • Update frequency: every 1.3 days
  • Top authors: FuseForms (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

80+ active /2,849 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.95ms] Passed 4 tests

A check of server-side resources used by MailChimp Integration for WordPress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.97 ▼4.52
Dashboard /wp-admin3.33 ▲0.0351.34 ▲3.02
Posts /wp-admin/edit.php3.39 ▲0.0345.35 ▼2.13
Add New Post /wp-admin/post-new.php5.93 ▲0.0588.09 ▼15.45
Media Library /wp-admin/upload.php3.26 ▲0.0337.97 ▲2.32
FuseForms for MC /wp-admin/options-general.php?page=ff_mc_settings3.2234.95

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
ff_mc_options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by MailChimp Integration for WordPress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,892 ▲13113.56 ▼0.8010.06 ▲8.3649.36 ▲9.69
Dashboard /wp-admin2,207 ▲275.58 ▼0.0994.30 ▲6.4041.06 ▼1.35
Posts /wp-admin/edit.php2,112 ▲92.01 ▲0.0136.46 ▲0.2534.44 ▼3.12
Add New Post /wp-admin/post-new.php1,533 ▲722.84 ▼0.19661.14 ▲7.2062.25 ▲3.45
Media Library /wp-admin/upload.php1,415 ▲154.24 ▲0.01101.59 ▼5.3847.20 ▲3.51
FuseForms for MC /wp-admin/options-general.php?page=ff_mc_settings8532.0128.8830.33

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • ff_mc_options
    • widget_recent-posts

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/fuseforms-for-mailchimp/fuseforms-for-mailchimp.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
The official readme.txt might help

fuseforms-for-mailchimp/fuseforms-for-mailchimp.php Passed 13 tests

The primary PHP file in "MailChimp Integration for WordPress" version 0.1.0 is used by WordPress to initiate all plugin functionality
140 characters long description:
FuseForms MailChimp Integration for WordPress is the easiest way to sync your contacts from your forms to a MailChimp list of your choosing.

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
Success! There were no dangerous files found in this plugin1,867 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP7263330971
JavaScript213171663
CSS1480233

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity20.00
▷ Minimum class complexity5.00
▷ Maximum class complexity53.00
Average method complexity3.11
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods36
▷ Static methods00.00%
▷ Public methods3597.22%
▷ Protected methods00.00%
▷ Private methods12.78%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
No PNG files were detected