94% acymailing-integration-for-the-events-calendar

Code Review | The Events Calendar integration - AcyMailing

WordPress plugin The Events Calendar integration - AcyMailing scored 94% from 54 tests.

About plugin

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

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 788 total downloads


Plugin footprint Passed 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.01MB] [CPU: ▼338.67ms] Passed 4 tests

Analyzing server-side resources used by The Events Calendar integration - AcyMailing
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0264.61 ▲6.59
Dashboard /wp-admin3.42 ▲0.0139.22 ▼2.62
Posts /wp-admin/edit.php3.65 ▲0.0142.41 ▲0.88
Add New Post /wp-admin/post-new.php6.90 ▼0.07104.37 ▼1,350.30
Media Library /wp-admin/upload.php3.30 ▲0.0026.97 ▼2.65

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for The Events Calendar integration - AcyMailing
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲915.49 ▼0.195.51 ▼0.151.98 ▼0.61
Dashboard /wp-admin2,888 ▲376.14 ▼0.12114.42 ▼24.46155.84 ▼3.85
Posts /wp-admin/edit.php2,694 ▼03.23 ▼0.0163.55 ▲2.62144.53 ▲3.28
Add New Post /wp-admin/post-new.php1,773 ▲11221.85 ▲5.81455.84 ▲46.83155.15 ▼9.01
Media Library /wp-admin/upload.php1,698 ▼05.51 ▲0.05140.37 ▲0.42190.49 ▼3.38

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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× 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-integration-for-the-events-calendar/plugin.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_deactivation_hook() in wp-content/plugins/acymailing-integration-for-the-events-calendar/acymailing-theeventscalendar.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


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: events, the events calendar, acymailing, newsletter, integration

acymailing-integration-for-the-events-calendar/acymailing-theeventscalendar.php 92% from 13 tests

The main file in "The Events Calendar integration - AcyMailing" v. 1.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("acymailing-integration-for-the-events-calendar.php" instead of "acymailing-theeventscalendar.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 plugin639 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity84.00
▷ Minimum class complexity84.00
▷ Maximum class complexity84.00
Average method complexity4.95
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods1990.48%
▷ Protected methods00.00%
▷ Private methods29.52%
▷ 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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
icon.png11.46KB3.40KB▼ 70.34%
banner.png29.26KB7.82KB▼ 73.29%