84% acymailing-integration-for-easy-digital-downloads

Code Review | Easy Digital Downloads integration - AcyMailing

WordPress plugin Easy Digital Downloads 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.2
  • WordPress version: 6.3.1
  • First release: Jan 27, 2022
  • Latest release: Oct 24, 2023
  • Number of updates: 15
  • Update frequency: every 42.4 days
  • Top authors: acyba (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,581 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

A check of server-side resources used by Easy Digital Downloads integration - AcyMailing
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.08 ▼2.32
Dashboard /wp-admin3.31 ▼0.0445.09 ▼15.12
Posts /wp-admin/edit.php3.36 ▲0.0047.96 ▲5.96
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.09 ▼0.17
Media Library /wp-admin/upload.php3.23 ▲0.0033.97 ▲1.34

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Easy Digital Downloads integration - AcyMailing
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.35 ▲0.001.68 ▼0.0043.77 ▼2.87
Dashboard /wp-admin2,198 ▲185.58 ▼0.0883.32 ▼5.3638.48 ▼2.49
Posts /wp-admin/edit.php2,103 ▲31.97 ▼0.0039.94 ▲6.4936.61 ▲2.13
Add New Post /wp-admin/post-new.php1,526 ▼023.26 ▲0.25654.77 ▼55.6063.32 ▲8.62
Media Library /wp-admin/upload.php1,400 ▼04.15 ▼0.0292.85 ▼12.8644.16 ▼0.54

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

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
The following issues need your attention
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_deactivation_hook() in wp-content/plugins/acymailing-integration-for-easy-digital-downloads/acymailing-easydigitaldownloads.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'AcyMailing\\Libraries\\acymPlugin' not found in wp-content/plugins/acymailing-integration-for-easy-digital-downloads/plugin.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side


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
5 plugin tags: digital store, integration, acymailing, newsletter, e-commerce

acymailing-integration-for-easy-digital-downloads/acymailing-easydigitaldownloads.php 92% from 13 tests

"Easy Digital Downloads integration - AcyMailing" version 2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("acymailing-integration-for-easy-digital-downloads.php" instead of "acymailing-easydigitaldownloads.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin910 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity70.50
▷ Minimum class complexity5.00
▷ Maximum class complexity136.00
Average method complexity8.72
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods1266.67%
▷ Protected methods00.00%
▷ Private methods633.33%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ 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
2 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
banner.png61.48KB25.59KB▼ 58.38%