94% acymailing-integration-for-eventon

Code Review | EventOn - AcyMailing

WordPress plugin EventOn - AcyMailing scored 94% from 54 tests.

About plugin

  • Plugin page: acymailing-integr...
  • Plugin version: 1.1
  • 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 16, 2022
  • Latest release: Mar 21, 2022
  • Number of updates: 3
  • Update frequency: every 11.0 days
  • Top authors: acyba (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 134 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.01MB] [CPU: ▼300.76ms] Passed 4 tests

A check of server-side resources used by EventOn - AcyMailing
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0253.56 ▲5.55
Dashboard /wp-admin3.42 ▲0.0133.69 ▲0.74
Posts /wp-admin/edit.php3.66 ▲0.0137.35 ▲1.06
Add New Post /wp-admin/post-new.php6.90 ▼0.0795.58 ▼1,195.67
Media Library /wp-admin/upload.php3.31 ▲0.0022.84 ▼9.16

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by EventOn - AcyMailing
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲1915.74 ▼0.275.59 ▼0.902.05 ▼0.01
Dashboard /wp-admin2,895 ▲346.16 ▼0.01119.78 ▼12.31154.02 ▼5.68
Posts /wp-admin/edit.php2,688 ▼63.36 ▼0.0161.90 ▼3.69140.55 ▼0.47
Add New Post /wp-admin/post-new.php1,661 ▼5016.67 ▼5.25414.95 ▼20.65150.73 ▼7.08
Media Library /wp-admin/upload.php1,701 ▲35.51 ▼0.01137.34 ▼4.56186.59 ▼3.84

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 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-eventon/acymailing-eventon.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'AcyMailing\\Libraries\\acymPlugin' not found in wp-content/plugins/acymailing-integration-for-eventon/plugin.php:6

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)
There were no browser issues found


Plugin configuration 93% 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
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #1 (Editor), #2 (Render), #3 (Custom view)
The official readme.txt might help

acymailing-integration-for-eventon/acymailing-eventon.php 92% from 13 tests

The entry point to "EventOn - AcyMailing" version 1.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("acymailing-integration-for-eventon.php" instead of "acymailing-eventon.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin607 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity101.00
▷ Minimum class complexity101.00
▷ Maximum class complexity101.00
Average method complexity7.64
▷ Minimum method complexity1.00
▷ Maximum method complexity49.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods1076.92%
▷ Protected methods17.69%
▷ Private methods215.38%
▷ Named functions360.00%
▷ Anonymous functions240.00%
▷ 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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
icon.png14.82KB6.65KB▼ 55.13%
banner.png8.29KB7.98KB▼ 3.77%