94% acymailing-automation-export

Code Review | Export AcyMailing users in automation - AcyMailing

WordPress plugin Export AcyMailing users in automation - AcyMailing scored 94% from 54 tests.

About plugin

  • Plugin page: acymailing-automa...
  • Plugin version: 1.4
  • 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 13, 2020
  • Latest release: Mar 21, 2022
  • Number of updates: 8
  • Update frequency: every 65.6 days
  • Top authors: acyba (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 701 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

Analyzing server-side resources used by Export AcyMailing users in automation - AcyMailing
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0256.59 ▲6.13
Dashboard /wp-admin3.42 ▲0.0133.72 ▲0.46
Posts /wp-admin/edit.php3.65 ▲0.0138.15 ▲1.10
Add New Post /wp-admin/post-new.php6.89 ▼0.0894.62 ▼1,261.65
Media Library /wp-admin/upload.php3.31 ▲0.0123.40 ▼2.91

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

Input-output and database impact of this plugin
The plugin 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 Export AcyMailing users in automation - AcyMailing
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,767 ▲1315.91 ▼0.145.62 ▼1.362.02 ▼0.78
Dashboard /wp-admin2,888 ▲276.08 ▼0.09116.94 ▼17.79157.43 ▼6.99
Posts /wp-admin/edit.php2,691 ▲33.24 ▼0.0063.79 ▼1.92137.54 ▼7.20
Add New Post /wp-admin/post-new.php1,690 ▼020.83 ▼0.20398.40 ▼40.26156.51 ▼0.62
Media Library /wp-admin/upload.php1,698 ▼35.50 ▲0.01153.71 ▲8.46194.98 ▲11.01

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
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
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
The following issues need your attention
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'AcyMailing\\Libraries\\acymPlugin' not found in wp-content/plugins/acymailing-automation-export/plugin.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_deactivation_hook() in wp-content/plugins/acymailing-automation-export/acymailing-automationexport.php:13

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: export, automation, automatic newsletter, newsletter

acymailing-automation-export/acymailing-automationexport.php 92% from 13 tests

The entry point to "Export AcyMailing users in automation - AcyMailing" version 1.4 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("acymailing-automation-export.php" instead of "acymailing-automationexport.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin133 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2259133

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity4.75
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
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.png12.04KB2.51KB▼ 79.17%