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

Code Review | The Events Calendar integration - AcyMailing

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

About plugin

  • Plugin page: acymailing-integr...
  • Plugin version: 2.9
  • PHP compatiblity: 7.2.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4.1
  • WordPress version: 6.3.1
  • First release: Oct 2, 2020
  • Latest release: Nov 21, 2023
  • Number of updates: 25
  • Update frequency: every 45.8 days
  • Top authors: acyba (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /3,359 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.01MB] [CPU: ▼6.00ms] Passed 4 tests

Analyzing server-side resources used by The Events Calendar integration - AcyMailing
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.65 ▼0.56
Dashboard /wp-admin3.32 ▲0.0146.23 ▼6.35
Posts /wp-admin/edit.php3.37 ▲0.0147.21 ▼2.60
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.13 ▼14.49
Media Library /wp-admin/upload.php3.24 ▲0.0135.05 ▲1.18

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

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 /2,790 ▲2814.57 ▲0.441.79 ▼0.1244.13 ▲1.01
Dashboard /wp-admin2,195 ▲215.68 ▲0.0194.30 ▼5.0739.72 ▼5.55
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0139.62 ▼1.6936.62 ▲2.76
Add New Post /wp-admin/post-new.php1,526 ▼023.39 ▲0.25688.92 ▲16.2956.50 ▲4.15
Media Library /wp-admin/upload.php1,397 ▼64.16 ▼0.0298.65 ▼0.9339.75 ▼1.45

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

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: 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:9

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

Optimizations

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, integration, acymailing, newsletter

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

The main file in "The Events Calendar integration - AcyMailing" v. 2.9 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 plugin684 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP512315684

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.34
Average class complexity22.25
▷ Minimum class complexity1.00
▷ Maximum class complexity57.00
Average method complexity5.05
▷ Minimum method complexity1.00
▷ Maximum method complexity42.00
Code structure
Namespaces0
Interfaces0
Traits3
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods1990.48%
▷ Protected methods00.00%
▷ Private methods29.52%
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
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%