94% acymailing-integration-for-ultimate-member

Code Review | Ultimate Member integration - AcyMailing

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

About plugin

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

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 601 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

Analyzing server-side resources used by Ultimate Member integration - AcyMailing
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0158.28 ▲3.51
Dashboard /wp-admin3.41 ▲0.0136.88 ▼0.27
Posts /wp-admin/edit.php3.65 ▲0.0142.15 ▼1.71
Add New Post /wp-admin/post-new.php6.88 ▼0.08104.51 ▼1,209.19
Media Library /wp-admin/upload.php3.30 ▲0.0025.16 ▼1.64

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ultimate Member integration - AcyMailing
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,774 ▲2015.57 ▼0.046.98 ▲0.172.43 ▼0.22
Dashboard /wp-admin2,878 ▲246.11 ▼0.07125.41 ▼18.17169.38 ▲10.03
Posts /wp-admin/edit.php2,694 ▲93.24 ▲0.0263.65 ▼16.10142.43 ▼26.83
Add New Post /wp-admin/post-new.php1,668 ▼4919.56 ▼2.13401.70 ▼44.44160.71 ▼4.48
Media Library /wp-admin/upload.php1,698 ▼05.53 ▲0.04140.46 ▼6.13188.19 ▼6.24

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 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-ultimate-member/plugin.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_deactivation_hook() in wp-content/plugins/acymailing-integration-for-ultimate-member/acymailing-ultimatemember.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: ultimate member, newsletter form, newsletter, subscription, acymailing...

acymailing-integration-for-ultimate-member/acymailing-ultimatemember.php 92% from 13 tests

"Ultimate Member integration - AcyMailing" version 1.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("acymailing-integration-for-ultimate-member.php" instead of "acymailing-ultimatemember.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected114 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22310114

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.12MB with 0.08MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
banner.png120.63KB35.89KB▼ 70.25%