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

Code Review | Modern Events Calendar integration - AcyMailing

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

About plugin

  • Plugin page: acymailing-integr...
  • Plugin version: 2.7
  • PHP compatiblity: 7.2.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Mar 15, 2021
  • Latest release: Aug 17, 2023
  • Number of updates: 24
  • Update frequency: every 39.3 days
  • Top authors: acyba (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,701 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.02ms] Passed 4 tests

This is a short check of server-side resources used by Modern Events Calendar integration - AcyMailing
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0141.53 ▼2.60
Dashboard /wp-admin3.32 ▼0.0353.73 ▼12.24
Posts /wp-admin/edit.php3.37 ▲0.0146.31 ▼6.04
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.96 ▼7.20
Media Library /wp-admin/upload.php3.24 ▲0.0136.29 ▲0.77

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Modern Events Calendar integration - AcyMailing
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.28 ▲0.012.08 ▲0.3243.61 ▼0.55
Dashboard /wp-admin2,192 ▲125.58 ▲0.0483.43 ▼5.7142.75 ▲0.86
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0536.64 ▼0.2332.17 ▼4.71
Add New Post /wp-admin/post-new.php1,531 ▲222.82 ▼0.45638.05 ▼6.6662.15 ▲5.11
Media Library /wp-admin/upload.php1,403 ▲64.38 ▲0.1998.12 ▼3.7941.77 ▼8.38

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'AcyMailing\\Libraries\\acymPlugin' not found in wp-content/plugins/acymailing-integration-for-modern-events-calendar/plugin.php:9
    • > 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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare 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)
You can look at the official readme.txt

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

"Modern Events Calendar integration - AcyMailing" version 2.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to 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 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected864 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP512511864

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity32.75
▷ Minimum class complexity3.00
▷ Maximum class complexity99.00
Average method complexity7.05
▷ Minimum method complexity1.00
▷ Maximum method complexity79.00
Code structure
Namespaces0
Interfaces0
Traits3
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
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%