84% acymailing-integration-for-events-manager

Code Review | Events Manager integration - AcyMailing

WordPress plugin Events Manager 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.2
  • WordPress version: 6.3.1
  • First release: Jun 7, 2021
  • Latest release: Oct 24, 2023
  • Number of updates: 23
  • Update frequency: every 38.0 days
  • Top authors: acyba (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,939 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
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Events Manager integration - AcyMailing
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0144.48 ▲7.45
Dashboard /wp-admin3.32 ▲0.0143.96 ▼6.94
Posts /wp-admin/edit.php3.37 ▲0.0153.14 ▲4.47
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.25 ▼9.28
Media Library /wp-admin/upload.php3.24 ▲0.0132.67 ▼3.60

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Events Manager integration - AcyMailing
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.22 ▼0.332.55 ▲1.0750.60 ▲9.84
Dashboard /wp-admin2,195 ▲155.54 ▼0.0886.96 ▲1.0439.30 ▼2.72
Posts /wp-admin/edit.php2,100 ▲31.95 ▼0.0340.80 ▲3.2836.66 ▲5.03
Add New Post /wp-admin/post-new.php1,526 ▼023.42 ▲0.17666.43 ▼43.5964.47 ▲14.47
Media Library /wp-admin/upload.php1,400 ▼04.21 ▲0.0594.00 ▼10.9844.27 ▲0.01

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'AcyMailing\\Libraries\\acymPlugin' not found in wp-content/plugins/acymailing-integration-for-events-manager/plugin.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_deactivation_hook() in wp-content/plugins/acymailing-integration-for-events-manager/acymailing-eventsmanager.php:13

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: newsletter, integration, events, events manager, acymailing

acymailing-integration-for-events-manager/acymailing-eventsmanager.php 92% from 13 tests

The primary PHP file in "Events Manager integration - AcyMailing" version 2.7 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("acymailing-integration-for-events-manager.php" instead of "acymailing-eventsmanager.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
There were no executable files found in this plugin764 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP513615743
SVG10121

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity26.50
▷ Minimum class complexity1.00
▷ Maximum class complexity76.00
Average method complexity5.43
▷ Minimum method complexity1.00
▷ Maximum method complexity55.00
Code structure
Namespaces0
Interfaces0
Traits3
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods23
▷ Static methods00.00%
▷ Public methods1982.61%
▷ Protected methods00.00%
▷ Private methods417.39%
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

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.05MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
banner.png55.31KB16.77KB▼ 69.68%