94% acymailing-integration-for-memberpress

Code Review | MemberPress integration - AcyMailing

WordPress plugin MemberPress integration - AcyMailing scored 94% from 54 tests.

About plugin

  • Plugin page: acymailing-integr...
  • Plugin version: 1.4
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.9.2
  • WordPress version: 5.9.2
  • First release: Nov 25, 2020
  • Latest release: Mar 21, 2022
  • Number of updates: 9
  • Update frequency: every 53.4 days
  • Top authors: acyba (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 496 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.02MB] [CPU: ▼297.86ms] Passed 4 tests

An overview of server-side resources used by MemberPress integration - AcyMailing
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0156.63 ▲2.32
Dashboard /wp-admin3.41 ▲0.0137.56 ▲2.14
Posts /wp-admin/edit.php3.64 ▲0.0135.05 ▼3.09
Add New Post /wp-admin/post-new.php6.89 ▼0.0895.11 ▼1,186.79
Media Library /wp-admin/upload.php3.30 ▼0.0023.16 ▼3.69

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by MemberPress integration - AcyMailing
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲5115.89 ▲0.286.50 ▲0.782.81 ▲0.80
Dashboard /wp-admin2,892 ▲315.97 ▼0.22120.61 ▼15.23153.40 ▼7.34
Posts /wp-admin/edit.php2,694 ▲373.24 ▼0.0263.90 ▲0.84140.37 ▼4.01
Add New Post /wp-admin/post-new.php1,661 ▼016.41 ▼0.44426.06 ▲16.66155.51 ▼2.83
Media Library /wp-admin/upload.php1,698 ▼35.48 ▼0.06143.14 ▲4.75187.15 ▼5.15

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables

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
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_deactivation_hook() in wp-content/plugins/acymailing-integration-for-memberpress/acymailing-memberpress.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'AcyMailing\\Libraries\\acymPlugin' not found in wp-content/plugins/acymailing-integration-for-memberpress/plugin.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: memberpress, newsletter, acymailing, subscription

acymailing-integration-for-memberpress/acymailing-memberpress.php 92% from 13 tests

The main file in "MemberPress integration - AcyMailing" v. 1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("acymailing-integration-for-memberpress.php" instead of "acymailing-memberpress.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
No dangerous file extensions were detected400 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2928400

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity55.00
▷ Minimum class complexity55.00
▷ Maximum class complexity55.00
Average method complexity3.57
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods1676.19%
▷ Protected methods00.00%
▷ Private methods523.81%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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