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

Code Review | The Events Calendar integration - AcyMailing

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

About plugin

  • Plugin page: acymailing-integr...
  • Plugin version: 1.4
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.7
  • WordPress version: 5.8.1
  • First release: Oct 2, 2020
  • Latest release: Oct 4, 2021
  • Number of updates: 8
  • Update frequency: every 45.9 days
  • Top authors: acyba (100%)

Code review

53 tests

User reviews

1 review

Install metrics

20+ active / 372 total downloads


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: ▼319.31ms] Passed 4 tests

An overview of server-side resources used by The Events Calendar integration - AcyMailing
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1334.89 ▲13.47
Dashboard /wp-admin3.07 ▲0.0242.30 ▲0.50
Posts /wp-admin/edit.php3.12 ▲0.0140.60 ▼2.50
Add New Post /wp-admin/post-new.php5.43 ▲0.0088.14 ▼1,268.82
Media Library /wp-admin/upload.php3.01 ▲0.0131.07 ▼6.40

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

Analyzing filesystem and database footprints of this plugin
This 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,650 ▲4415.84 ▼0.018.45 ▼2.3648.32 ▼1.97
Dashboard /wp-admin2,934 ▲785.88 ▲0.04133.16 ▼2.44102.23 ▲2.65
Posts /wp-admin/edit.php2,706 ▼02.69 ▼0.0165.62 ▲0.6289.96 ▼7.00
Add New Post /wp-admin/post-new.php1,481 ▼17518.52 ▼0.29368.15 ▼2.93106.95 ▲0.45
Media Library /wp-admin/upload.php1,772 ▼35.02 ▲0.01156.72 ▲7.58114.60 ▼8.14

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
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 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Please fix the following
  • 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-the-events-calendar/acymailing-theeventscalendar.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'AcyMailing\\Libraries\\acymPlugin' not found in wp-content/plugins/acymailing-integration-for-the-events-calendar/plugin.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test


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
5 plugin tags: events, integration, newsletter, the events calendar, acymailing

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

This is the main PHP file of "The Events Calendar integration - AcyMailing" version 1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file 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 file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin638 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
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 1 test

Image compression Passed 1 test

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