78% easy-wordpress-mailchimp-integration

Code Review | Easy WordPress Mailchimp Integration

WordPress plugin Easy WordPress Mailchimp Integration scored78%from 54 tests.

About plugin

  • Plugin page: easy-wordpress-ma...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 19, 2012
  • Latest release: Jun 19, 2012
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: corsonr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /8,835 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 gracefully, with no errors

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

Server-side resources used by Easy WordPress Mailchimp Integration
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.49 ▲2.61
Dashboard /wp-admin3.35 ▲0.0044.46 ▼16.45
Posts /wp-admin/edit.php3.40 ▲0.0448.48 ▲0.55
Add New Post /wp-admin/post-new.php5.93 ▲0.0482.55 ▼27.15
Media Library /wp-admin/upload.php3.27 ▲0.0433.04 ▼4.82
Easy Mailchimp /wp-admin/options-general.php?page=ewmi-settings3.2131.77

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy WordPress Mailchimp Integration
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.27 ▼1.364.76 ▲3.0643.59 ▲3.05
Dashboard /wp-admin2,210 ▲185.88 ▲0.89106.85 ▲3.0543.87 ▼0.41
Posts /wp-admin/edit.php2,096 ▲72.04 ▼0.1339.11 ▼3.4536.05 ▲1.38
Add New Post /wp-admin/post-new.php1,517 ▼217.35 ▼5.87681.32 ▲25.4859.35 ▼5.44
Media Library /wp-admin/upload.php1,386 ▲14.21 ▲0.0397.46 ▼5.8941.75 ▼2.46
Easy Mailchimp /wp-admin/options-general.php?page=ewmi-settings8581.6926.1328.79

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=ewmi-settings
    • > Notice in wp-content/plugins/easy-wordpress-mailchimp-integration/easy-wordpress-mailchimp-integration.php+143
    Trying to access array offset on value of type bool

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 errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/easy-wordpress-mailchimp-integration/easy-wordpress-mailchimp-integration.php:17

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

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (User choose mailing list during registration process), #2 (Settings), #3 (Users list)
Please take inspiration from this readme.txt

easy-wordpress-mailchimp-integration/easy-wordpress-mailchimp-integration.php Passed 13 tests

Analyzing the main PHP file in "Easy WordPress Mailchimp Integration" version 1.0
59 characters long description:
Add Mailchimp signup process to WordPress registration form

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
Good job! No executable or dangerous file extensions detected937 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP22501,689919
JavaScript12113
CSS1005

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity1.20
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods100
▷ Static methods00.00%
▷ Public methods100100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin