84% acymailing-automation-export

Code Review | Export AcyMailing users in automation - AcyMailing

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

About plugin

  • Plugin page: acymailing-automa...
  • Plugin version: 2.2
  • PHP compatiblity: 7.2.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Oct 13, 2020
  • Latest release: Aug 17, 2023
  • Number of updates: 17
  • Update frequency: every 61.1 days
  • Top authors: acyba (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 2,761 total downloads

Benchmarks

Plugin footprint 83% from 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.00MB] [CPU: ▼2.48ms] Passed 4 tests

Analyzing server-side resources used by Export AcyMailing users in automation - AcyMailing
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.43 ▼2.88
Dashboard /wp-admin3.31 ▲0.0144.89 ▼5.03
Posts /wp-admin/edit.php3.36 ▲0.0049.65 ▲2.33
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.45 ▼4.00
Media Library /wp-admin/upload.php3.23 ▲0.0037.47 ▲2.00

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Export AcyMailing users in automation - AcyMailing: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.62 ▼0.611.90 ▲0.1641.65 ▼0.97
Dashboard /wp-admin2,206 ▲155.83 ▲0.89104.37 ▲2.9338.74 ▼6.11
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.1539.55 ▲1.2135.71 ▼2.15
Add New Post /wp-admin/post-new.php1,537 ▲1818.39 ▼5.06633.63 ▲33.1466.09 ▲9.29
Media Library /wp-admin/upload.php1,391 ▲34.18 ▲0.0596.78 ▼2.1443.87 ▲2.29

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

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 everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_deactivation_hook() in wp-content/plugins/acymailing-automation-export/acymailing-automationexport.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'AcyMailing\\Libraries\\acymPlugin' not found in wp-content/plugins/acymailing-automation-export/plugin.php:8

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

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: automatic newsletter, automation, export, newsletter

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

The principal PHP file in "Export AcyMailing users in automation - AcyMailing" v. 2.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file 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
Good job! No executable or dangerous file extensions detected151 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2279151

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity5.25
▷ Minimum method complexity1.00
▷ Maximum method complexity10.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

All PNG images should be compressed to minimize bandwidth usage for end users
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%