79% wp-affiliate-mailpoet-integration

Code Review | WP Affiliate MailPoet Integration

WordPress plugin WP Affiliate MailPoet Integration scored 79% from 54 tests.

About plugin

  • Plugin page: wp-affiliate-mail...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.8
  • WordPress version: 6.3.1
  • First release: Aug 9, 2014
  • Latest release: Jul 16, 2021
  • Number of updates: 6
  • Update frequency: every 422.3 days
  • Top authors: mra13 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,480 total downloads

Benchmarks

Plugin footprint 65% from 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.91MB] [CPU: ▼33.40ms] Passed 4 tests

An overview of server-side resources used by WP Affiliate MailPoet Integration
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.58 ▼0.91
Dashboard /wp-admin3.04 ▼0.2722.32 ▼31.41
Posts /wp-admin/edit.php3.04 ▼0.3225.09 ▼19.15
Add New Post /wp-admin/post-new.php3.04 ▼2.8524.28 ▼71.64
Media Library /wp-admin/upload.php3.04 ▼0.1920.25 ▼11.40

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for WP Affiliate MailPoet Integration
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.18 ▼1.121.58 ▼0.1542.54 ▼6.17
Dashboard /wp-admin2,210 ▲255.89 ▼0.1495.04 ▼23.2941.51 ▼0.26
Posts /wp-admin/edit.php2,089 ▲32.00 ▼0.0140.13 ▲4.1537.78 ▲3.20
Add New Post /wp-admin/post-new.php1,538 ▲1923.08 ▼0.25601.19 ▼77.3248.56 ▼13.54
Media Library /wp-admin/upload.php1,386 ▲44.29 ▲0.0797.31 ▼52.3540.76 ▼26.71

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-content/plugins/wp-affiliate-mailpoet-integration/affiliate-mailpoet-addon.php+67
    Use of undefined constant WP_AFF_PLATFORM_PATH - assumed 'WP_AFF_PLATFORM_PATH' (this will throw an Error in a future version of PHP)
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

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 errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
9 plugin tags: affiliate program, affiliate system, mailpoet, opt-in, integration...

wp-affiliate-mailpoet-integration/affiliate-mailpoet-addon.php 85% from 13 tests

"WP Affiliate MailPoet Integration" version 1.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: Please rename the main PHP file in this plugin to the plugin slug ("wp-affiliate-mailpoet-integration.php" instead of "affiliate-mailpoet-addon.php")
  • Requires at least: Required version does not match the one declared in readme.txt ("5.0" instead of "3.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin126 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23716126

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
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.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.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

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