94% acymailing-universal-filter

Code Review | Filter users in automations by database query - AcyMailing

WordPress plugin Filter users in automations by database query - AcyMailing scored 94% from 54 tests.

About plugin

  • Plugin page: acymailing-univer...
  • 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: Feb 22, 2021
  • Latest release: Mar 21, 2022
  • Number of updates: 9
  • Update frequency: every 44.0 days
  • Top authors: acyba (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 381 total downloads


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: ▼298.70ms] Passed 4 tests

Server-side resources used by Filter users in automations by database query - AcyMailing
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0157.98 ▲1.72
Dashboard /wp-admin3.41 ▲0.0142.93 ▲4.69
Posts /wp-admin/edit.php3.65 ▲0.0139.57 ▼6.10
Add New Post /wp-admin/post-new.php6.88 ▼0.09101.34 ▼1,193.37
Media Library /wp-admin/upload.php3.30 ▲0.0033.38 ▲2.97

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Filter users in automations by database query - AcyMailing
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,785 ▲3215.75 ▲0.116.15 ▲0.112.36 ▲0.01
Dashboard /wp-admin2,895 ▲346.09 ▼0.10115.75 ▼19.19162.74 ▲6.78
Posts /wp-admin/edit.php2,694 ▼03.24 ▲0.0162.88 ▲0.51140.10 ▼2.11
Add New Post /wp-admin/post-new.php1,706 ▼5421.79 ▼0.40427.09 ▼27.97152.91 ▼4.31
Media Library /wp-admin/upload.php1,695 ▼35.54 ▲0.01153.10 ▲3.14185.11 ▲1.24

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'AcyMailing\\Libraries\\acymPlugin' not found in wp-content/plugins/acymailing-universal-filter/plugin.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_deactivation_hook() in wp-content/plugins/acymailing-universal-filter/acymailing-universal-filter.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Action) image required
The official readme.txt might help

acymailing-universal-filter/acymailing-universal-filter.php Passed 13 tests

The entry point to "Filter users in automations by database query - AcyMailing" version 1.5 is a PHP file that has certain tags in its header comment area
96 characters long description:
Adds two new filters in the AcyMailing automations to let you make your own database integration

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
No dangerous file extensions were detected523 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity49.00
▷ Minimum class complexity49.00
▷ Maximum class complexity49.00
Average method complexity3.18
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods1777.27%
▷ Protected methods00.00%
▷ Private methods522.73%
▷ 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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
banner.png10.11KB2.00KB▼ 80.22%