84% acymailing-integration-for-memberpress

Code Review | MemberPress integration - AcyMailing

WordPress plugin MemberPress integration - AcyMailing scored84%from 54 tests.

About plugin

  • Plugin page: acymailing-integr...
  • Plugin version: 2.1
  • PHP compatiblity: 7.2.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Nov 25, 2020
  • Latest release: Aug 17, 2023
  • Number of updates: 19
  • Update frequency: every 55.3 days
  • Top authors: acyba (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,898 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by MemberPress integration - AcyMailing
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.93 ▲0.17
Dashboard /wp-admin3.32 ▲0.0150.74 ▼4.92
Posts /wp-admin/edit.php3.37 ▲0.0145.33 ▼0.90
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.95 ▼20.72
Media Library /wp-admin/upload.php3.24 ▲0.0144.62 ▲6.55

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for MemberPress integration - AcyMailing
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.40 ▲0.101.90 ▼0.0344.46 ▲1.01
Dashboard /wp-admin2,192 ▲185.59 ▲0.0396.66 ▲5.0041.88 ▼0.28
Posts /wp-admin/edit.php2,097 ▼32.01 ▼0.0536.20 ▼1.6335.83 ▲1.64
Add New Post /wp-admin/post-new.php1,547 ▲2123.30 ▲5.77611.22 ▼60.6159.43 ▼0.76
Media Library /wp-admin/upload.php1,400 ▼04.22 ▲0.01100.03 ▲3.9742.59 ▼2.97

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'AcyMailing\\Libraries\\acymPlugin' not found in wp-content/plugins/acymailing-integration-for-memberpress/plugin.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_deactivation_hook() in wp-content/plugins/acymailing-integration-for-memberpress/acymailing-memberpress.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% 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
4 plugin tags: subscription, memberpress, acymailing, newsletter

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

The main PHP script in "MemberPress integration - AcyMailing" version 2.1 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same 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 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected421 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP6958421

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity11.80
▷ Minimum class complexity1.00
▷ Maximum class complexity26.00
Average method complexity3.57
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits4
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

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