84% db-mailchimp-api

Code Review | DB - Mailchimp API

WordPress plugin DB - Mailchimp API scored 84% from 54 tests.

About plugin

  • Plugin page: db-mailchimp-api
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.3.1
  • WordPress version: 5.8.1
  • First release: Dec 2, 2015
  • Latest release: May 10, 2016
  • Number of updates: 5
  • Update frequency: every 33.8 days
  • Top authors: alexvandervegt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 683 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.23MB] [CPU: ▼140.09ms] Passed 4 tests

An overview of server-side resources used by DB - Mailchimp API
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.00 ▲0.2847.83 ▲23.36
Dashboard /wp-admin3.32 ▲0.2745.87 ▼1.36
Posts /wp-admin/edit.php3.37 ▲0.2647.18 ▲8.65
Add New Post /wp-admin/post-new.php5.62 ▲0.1897.49 ▼568.37
Media Library /wp-admin/upload.php3.20 ▲0.2036.73 ▲0.71
Lists /wp-admin/admin.php?page=dbmc&tab=lists_tab3.1828.85
Settings /wp-admin/admin.php?page=dbmc&tab=settings_tab3.1832.52

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for DB - Mailchimp API
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,713 ▲11715.83 ▲0.308.78 ▲0.2653.02 ▲4.94
Dashboard /wp-admin3,007 ▲765.94 ▼0.11139.21 ▼18.15112.59 ▼2.25
Posts /wp-admin/edit.php2,773 ▲342.70 ▲0.0069.81 ▲1.1391.25 ▼1.12
Add New Post /wp-admin/post-new.php1,705 ▲10116.66 ▼2.20404.40 ▼4.57110.72 ▼8.73
Media Library /wp-admin/upload.php1,841 ▲345.01 ▼0.00160.71 ▼9.67120.26 ▼5.55
Lists /wp-admin/admin.php?page=dbmc&tab=lists_tab1,2602.0961.7578.99
Settings /wp-admin/admin.php?page=dbmc&tab=settings_tab1,1422.0963.1878.41

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
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • dbmc_settings

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)
Good news, no errors were detected

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× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/db-mailchimp-api/admin/partials/dbmc-meta-box-display.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/db-mailchimp-api/admin/partials/dbmc-admin-display.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: wp wrapper api, mailchimp

db-mailchimp-api/dbmc.php 85% from 13 tests

"DB - Mailchimp API" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("db-mailchimp-api.php" instead of "dbmc.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 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin732 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity6.00
▷ Minimum class complexity1.00
▷ Maximum class complexity27.00
Average method complexity1.93
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
▷ Static methods912.86%
▷ Public methods5274.29%
▷ Protected methods00.00%
▷ Private methods1825.71%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin