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

Code Review | Modern Events Calendar integration - AcyMailing

WordPress plugin Modern 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: Mar 15, 2021
  • Latest release: Mar 21, 2022
  • Number of updates: 13
  • Update frequency: every 28.8 days
  • Top authors: acyba (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 670 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼292.44ms] Passed 4 tests

An overview of server-side resources used by Modern Events Calendar integration - AcyMailing
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0255.19 ▲6.99
Dashboard /wp-admin3.42 ▲0.0132.96 ▼1.80
Posts /wp-admin/edit.php3.66 ▲0.0137.36 ▲0.14
Add New Post /wp-admin/post-new.php6.90 ▼0.0794.69 ▼1,162.96
Media Library /wp-admin/upload.php3.31 ▲0.0025.54 ▼5.12

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Modern Events Calendar integration - AcyMailing: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,783 ▲2815.89 ▼0.045.82 ▼1.031.98 ▼0.47
Dashboard /wp-admin2,895 ▲346.10 ▼0.21124.46 ▼9.27157.25 ▼2.28
Posts /wp-admin/edit.php2,691 ▼33.24 ▼0.0062.46 ▼0.93137.62 ▼1.03
Add New Post /wp-admin/post-new.php1,760 ▼017.00 ▲0.04421.14 ▲9.59148.77 ▼12.07
Media Library /wp-admin/upload.php1,701 ▲35.54 ▲0.00142.59 ▲4.56183.93 ▼6.40

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

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
Please fix the following
  • 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-integration-for-modern-events-calendar/acymailing-moderneventscalendar.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'AcyMailing\\Libraries\\acymPlugin' not found in wp-content/plugins/acymailing-integration-for-modern-events-calendar/plugin.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Add images for these screenshots: #1 (Editor), #2 (Render), #3 (Custom view)
You can look at the official readme.txt

acymailing-integration-for-modern-events-calendar/acymailing-moderneventscalendar.php 92% from 13 tests

The entry point to "Modern Events Calendar integration - AcyMailing" version 1.8 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("acymailing-integration-for-modern-events-calendar.php" instead of "acymailing-moderneventscalendar.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected811 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP211413811

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity118.00
▷ Minimum class complexity118.00
▷ Maximum class complexity118.00
Average method complexity6.57
▷ Minimum method complexity1.00
▷ Maximum method complexity73.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods1885.71%
▷ Protected methods14.76%
▷ Private methods29.52%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
icon.png3.63KB2.41KB▼ 33.71%