84% affiliates-manager-mailchimp-integration

Code Review | Affiliates Manager MailChimp Integration

WordPress plugin Affiliates Manager MailChimp Integration scored84%from 54 tests.

About plugin

  • Plugin page: affiliates-manage...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.0
  • WordPress version: 6.3.1
  • First release: Jul 30, 2014
  • Latest release: Aug 28, 2022
  • Number of updates: 6
  • Update frequency: every 492.0 days
  • Top authors: affmngr (66.67%)wp.insider (50%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /6,255 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
This plugin's installer ran successfully

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

Server-side resources used by Affiliates Manager MailChimp Integration
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0034.00 ▼5.33
Dashboard /wp-admin3.31 ▼0.0444.56 ▼12.04
Posts /wp-admin/edit.php3.36 ▲0.0044.77 ▼0.21
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.77 ▼1.96
Media Library /wp-admin/upload.php3.23 ▲0.0034.92 ▼1.18

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Affiliates Manager MailChimp Integration
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.40 ▼1.162.20 ▲0.5238.58 ▼1.92
Dashboard /wp-admin2,209 ▲185.88 ▼0.02105.66 ▲6.3742.89 ▲0.93
Posts /wp-admin/edit.php2,092 ▲32.04 ▲0.0239.37 ▲1.6834.04 ▼0.10
Add New Post /wp-admin/post-new.php1,533 ▼123.07 ▲0.10581.29 ▼88.0052.75 ▼3.37
Media Library /wp-admin/upload.php1,388 ▼04.20 ▼0.0598.57 ▼9.1243.20 ▼3.68

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/affiliates-manager-mailchimp-integration/affmgr-mailchimp-admin-menu.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/affiliates-manager-mailchimp-integration/affmgr-mailchimp-action.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
Please take inspiration from this readme.txt

affiliates-manager-mailchimp-integration/affmgr-mailchimp-signup.php 92% from 13 tests

The main file in "Affiliates Manager MailChimp Integration" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("affiliates-manager-mailchimp-integration.php" instead of "affmgr-mailchimp-signup.php")

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
Good job! No executable or dangerous file extensions detected313 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP485132313

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity2.12
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods1270.59%
▷ Protected methods00.00%
▷ Private methods529.41%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG images were found in this plugin