94% affiliates-manager-mad-mimi-integration

Code Review | Affiliates Manager Mad Mimi Integration

WordPress plugin Affiliates Manager Mad Mimi Integration scored 94% from 54 tests.

About plugin

  • Plugin page: affiliates-manage...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.3
  • WordPress version: 5.8.1
  • First release: Oct 3, 2015
  • Latest release: Oct 3, 2015
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: affmngr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 693 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Affiliates Manager Mad Mimi Integration
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0232.95 ▲0.02
Dashboard /wp-admin3.07 ▲0.0243.54 ▼2.27
Posts /wp-admin/edit.php3.13 ▲0.0248.86 ▲6.79
Add New Post /wp-admin/post-new.php5.43 ▼0.0089.87 ▼566.08
Media Library /wp-admin/upload.php3.02 ▲0.0233.12 ▲0.30

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

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

Browser metrics Passed 4 tests

Affiliates Manager Mad Mimi Integration: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲7315.94 ▲0.389.24 ▼2.1546.91 ▼4.13
Dashboard /wp-admin2,973 ▲395.91 ▼0.09147.21 ▲1.47101.88 ▼3.34
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0170.02 ▼0.9194.14 ▲10.39
Add New Post /wp-admin/post-new.php1,683 ▲10218.38 ▼2.33411.67 ▲20.94102.17 ▼5.54
Media Library /wp-admin/upload.php1,810 ▲35.08 ▲0.04149.71 ▼4.33118.66 ▲0.54

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/affiliates-manager-mad-mimi-integration/affmgr-madmimi-admin-menu.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/affiliates-manager-mad-mimi-integration/affmgr-madmimi-action.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
You can look at the official readme.txt

affiliates-manager-mad-mimi-integration/affmgr-madmimi-signup.php 92% from 13 tests

This is the main PHP file of "Affiliates Manager Mad Mimi Integration" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("affiliates-manager-mad-mimi-integration.php" instead of "affmgr-madmimi-signup.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin942 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity120.00
▷ Minimum class complexity25.00
▷ Maximum class complexity215.00
Average method complexity4.26
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods912.33%
▷ Public methods3345.21%
▷ Protected methods00.00%
▷ Private methods4054.79%
▷ Named functions5100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin