89% affiliates-manager-mailpoet-integration

Code Review | Affiliates Manager MailPoet Integration

WordPress plugin Affiliates Manager MailPoet Integration scored89%from 54 tests.

About plugin

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

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /2,585 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.46ms] Passed 4 tests

Analyzing server-side resources used by Affiliates Manager MailPoet Integration
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.32 ▼2.51
Dashboard /wp-admin3.34 ▲0.0348.69 ▼1.38
Posts /wp-admin/edit.php3.39 ▲0.0353.48 ▲2.26
Add New Post /wp-admin/post-new.php5.92 ▲0.0386.19 ▼15.99
Media Library /wp-admin/upload.php3.26 ▲0.0340.37 ▲2.04

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Affiliates Manager MailPoet Integration
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.26 ▼0.091.96 ▲0.1941.44 ▼2.46
Dashboard /wp-admin2,195 ▲215.63 ▲0.0782.10 ▼15.3440.84 ▲4.66
Posts /wp-admin/edit.php2,103 ▼01.98 ▲0.0434.16 ▼3.6737.78 ▲1.28
Add New Post /wp-admin/post-new.php1,526 ▼022.92 ▼0.76660.50 ▼38.0361.65 ▲9.07
Media Library /wp-admin/upload.php1,391 ▼94.13 ▼0.0499.80 ▼10.0542.38 ▼7.99

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Tags: There are too many tags (13 tag instead of maximum 10)
The official readme.txt is a good inspiration

affiliates-manager-mailpoet-integration/affmgr-mailpoet-addon.php 92% from 13 tests

This is the main PHP file of "Affiliates Manager MailPoet 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
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("affiliates-manager-mailpoet-integration.php" instead of "affmgr-mailpoet-addon.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
Success! There were no dangerous files found in this plugin118 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22917118

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin