84% acymailing-universal-filter

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

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

About plugin

  • Plugin page: acymailing-univer...
  • Plugin version: 2.4
  • PHP compatiblity: 7.2.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3.2
  • WordPress version: 6.3.1
  • First release: Feb 22, 2021
  • Latest release: Oct 24, 2023
  • Number of updates: 20
  • Update frequency: every 48.9 days
  • Top authors: acyba (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /2,046 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Filter users in automations by database query - AcyMailing
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.17 ▲1.76
Dashboard /wp-admin3.31 ▼0.0445.93 ▼9.67
Posts /wp-admin/edit.php3.36 ▲0.0045.02 ▲0.90
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.87 ▼25.19
Media Library /wp-admin/upload.php3.23 ▲0.0036.25 ▲3.34

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Filter users in automations by database query - AcyMailing
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.28 ▼0.341.65 ▼0.0144.51 ▲4.87
Dashboard /wp-admin2,195 ▲175.54 ▼0.1181.90 ▼16.3037.74 ▼2.39
Posts /wp-admin/edit.php2,097 ▼32.01 ▲0.0235.37 ▼7.2433.82 ▼3.95
Add New Post /wp-admin/post-new.php1,526 ▼223.00 ▼0.24691.77 ▲26.9454.67 ▼6.40
Media Library /wp-admin/upload.php1,400 ▲64.28 ▼0.0095.10 ▼6.8340.59 ▼4.57

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > 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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Add an image for screenshot #1 (Action)
Please take inspiration from this readme.txt

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

The main file in "Filter users in automations by database query - AcyMailing" v. 2.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
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 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected522 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP210715522

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.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
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods22
▷ Static methods00.00%
▷ Public methods1777.27%
▷ Protected methods00.00%
▷ Private methods522.73%
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

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%