84% fetch-mailchimp-fields

Code Review | Fetch Mailchimp Fields

WordPress plugin Fetch Mailchimp Fields scored84%from 54 tests.

About plugin

  • Plugin page: fetch-mailchimp-f...
  • Plugin version: 1.6.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.1.1
  • WordPress version: 6.3.1
  • First release: May 2, 2019
  • Latest release: May 4, 2019
  • Number of updates: 5
  • Update frequency: every 0.4 days
  • Top authors: nosoka (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /489 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
Installer ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼6.01ms] Passed 4 tests

An overview of server-side resources used by Fetch Mailchimp Fields
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1544.77 ▼8.19
Dashboard /wp-admin3.45 ▲0.1557.36 ▼2.07
Posts /wp-admin/edit.php3.57 ▲0.2155.60 ▲2.55
Add New Post /wp-admin/post-new.php6.03 ▲0.1598.61 ▼16.32
Media Library /wp-admin/upload.php3.38 ▲0.1544.47 ▲8.31

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Fetch Mailchimp Fields
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.23 ▲0.031.68 ▼0.3241.10 ▼14.28
Dashboard /wp-admin2,211 ▲345.64 ▼0.0390.36 ▼6.0639.53 ▼3.44
Posts /wp-admin/edit.php2,116 ▲191.98 ▼0.0542.30 ▲3.4136.77 ▼1.25
Add New Post /wp-admin/post-new.php1,539 ▲1323.11 ▲0.04683.14 ▲51.6348.46 ▼9.58
Media Library /wp-admin/upload.php1,416 ▲164.14 ▼0.0493.71 ▼14.1648.06 ▲6.70

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_settings_sections() in wp-content/plugins/fetch-mailchimp-fields/admin/partials/fetch-mailchimp-fields-admin-display.php:7
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/fetch-mailchimp-fields/public/partials/fetch-mailchimp-fields-public-display.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: mailchimp, merge fields, api, shortcode

fetch-mailchimp-fields/fetch-mailchimp-fields.php Passed 13 tests

Analyzing the main PHP file in "Fetch Mailchimp Fields" version 1.6.1
72 characters long description:
Lookup a Subscriber in Mailchimp List and get their merge field details.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin611 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP14202520594
CSS20016
JavaScript1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity8.33
▷ Minimum class complexity1.00
▷ Maximum class complexity33.00
Average method complexity2.07
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods61
▷ Static methods23.28%
▷ Public methods4777.05%
▷ Protected methods00.00%
▷ Private methods1422.95%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin