88% acf-madmimi-audience-list

Code Review | ACF: MadMimi Audience List

WordPress plugin ACF: MadMimi Audience List scored 88% from 54 tests.

About plugin

  • Plugin page: acf-madmimi-audie...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.3
  • WordPress version: 5.9.2
  • First release: Jul 17, 2015
  • Latest release: Jan 11, 2016
  • Number of updates: 3
  • Update frequency: every 59.7 days
  • Top authors: danielpataki (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 814 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

Server-side resources used by ACF: MadMimi Audience List
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0157.93 ▲4.07
Dashboard /wp-admin3.42 ▲0.0134.20 ▼0.17
Posts /wp-admin/edit.php3.65 ▲0.0138.54 ▲1.91
Add New Post /wp-admin/post-new.php6.92 ▼0.07106.08 ▼1,154.21
Media Library /wp-admin/upload.php3.30 ▲0.0024.42 ▼6.43
MadMimi Settings /wp-admin/edit.php?post_type=acf&page=acf-madmimi_audience_list-settings3.1119.15

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for ACF: MadMimi Audience List
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,794 ▲4016.30 ▲0.165.74 ▼0.682.72 ▲0.08
Dashboard /wp-admin2,892 ▲316.11 ▼0.03113.89 ▼21.20155.37 ▼1.94
Posts /wp-admin/edit.php2,691 ▲343.23 ▼0.0165.82 ▲2.62138.20 ▼5.19
Add New Post /wp-admin/post-new.php1,661 ▼11216.28 ▼5.49398.98 ▼93.92161.64 ▲6.14
Media Library /wp-admin/upload.php1,698 ▼05.52 ▲0.00138.62 ▲1.01187.30 ▼5.65
MadMimi Settings /wp-admin/edit.php?post_type=acf&page=acf-madmimi_audience_list-settings280.940.0316.91

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
Almost there! Just fix the following items
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/acf-madmimi-audience-list/acf-madmimi_audience_list-v4.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acf-madmimi-audience-list/acf-madmimi_audience_list.php:64
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/acf-madmimi-audience-list/acf-madmimi_audience_list-v5.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
    • > GET request to /wp-admin/edit.php?post_type=acf&page=acf-madmimi_audience_list-settings
    • > Network (severe)
    wp-admin/edit.php?post_type=acf&page=acf-madmimi_audience_list-settings - Failed to load resource: the server responded with a status of 403 (Forbidden)


Plugin configuration 93% 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 require attention: You can take inspiration from this readme.txt

acf-madmimi-audience-list/acf-madmimi_audience_list.php 92% from 13 tests

The main PHP file in "ACF: MadMimi Audience List" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("acf-madmimi-audience-list.php" instead of "acf-madmimi_audience_list.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin1,241 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PO File1171763

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.49
Average class complexity68.25
▷ Minimum class complexity17.00
▷ Maximum class complexity215.00
Average method complexity4.24
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
▷ Static methods910.84%
▷ Public methods4351.81%
▷ Protected methods00.00%
▷ Private methods4048.19%
▷ Named functions10100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.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
There were not PNG files found in your plugin