68% marketing-automation-by-azexo

Code Review | Marketing Automation by AZEXO

WordPress plugin Marketing Automation by AZEXO scored68%from 54 tests.

About plugin

  • Plugin page: marketing-automat...
  • Plugin version: 1.27.80
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.9
  • WordPress version: 6.3.1
  • First release: Feb 13, 2018
  • Latest release: Jan 17, 2019
  • Number of updates: 189
  • Update frequency: every 1.8 days
  • Top authors: azexo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /2,761 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲2.52MB] [CPU: ▲21.11ms] Passed 4 tests

This is a short check of server-side resources used by Marketing Automation by AZEXO
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /5.69 ▲2.2362.69 ▲17.99
Dashboard /wp-admin6.00 ▲2.6968.46 ▲23.41
Posts /wp-admin/edit.php6.08 ▲2.7267.76 ▲19.85
Add New Post /wp-admin/post-new.php8.33 ▲2.45118.78 ▲23.19
Media Library /wp-admin/upload.php5.93 ▲2.7063.80 ▲29.54
Bouncing settings /wp-admin/edit.php?post_type=azr_rule&page=azh-bouncing-settings5.6952.99
Automation /wp-admin/edit.php?post_type=azr_rule5.9757.98
SMS settings /wp-admin/edit.php?post_type=azr_rule&page=azh-sms-settings5.6951.24
Add Rule /wp-admin/post-new.php?post_type=azr_rule5.4351.48

Server storage [IO: ▲3.15MB] [DB: ▲0.01MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 600 new files
Database: 4 new tables, 7 new options
New tables
wp_azr_visitor_posts
wp_azr_visitors
wp_azr_visitor_tags
wp_azr_page_visits
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_azh_subscription_widget
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Marketing Automation by AZEXO: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,849 ▲11414.14 ▼0.241.88 ▲0.0042.63 ▼4.33
Dashboard /wp-admin2,252 ▲645.43 ▲0.55108.85 ▼6.5639.60 ▼1.10
Posts /wp-admin/edit.php2,142 ▲532.60 ▲0.5640.55 ▼0.6031.07 ▼4.72
Add New Post /wp-admin/post-new.php1,563 ▲4024.78 ▲1.59643.12 ▼1.1262.46 ▲12.40
Media Library /wp-admin/upload.php1,438 ▲504.79 ▲0.5498.56 ▼7.7042.80 ▼2.62
Bouncing settings /wp-admin/edit.php?post_type=azr_rule&page=azh-bouncing-settings9672.4627.2530.12
Automation /wp-admin/edit.php?post_type=azr_rule1,1312.8036.8229.44
SMS settings /wp-admin/edit.php?post_type=azr_rule&page=azh-sms-settings9372.4627.1828.75
Add Rule /wp-admin/post-new.php?post_type=azr_rule3,2138.00213.7639.58

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 4 tables in the database
    • wp_azr_visitors
    • wp_azr_page_visits
    • wp_azr_visitor_posts
    • wp_azr_visitor_tags
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_azh_subscription_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=azr_rule&page=azh-sms-settings
    • > Notice in wp-content/plugins/marketing-automation-by-azexo/settings.php+27
    Trying to access array offset on value of type bool
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=azr_rule
    • > Notice in wp-content/plugins/marketing-automation-by-azexo/rules.php+1796
    Trying to access array offset on value of type null

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 items
  • 539× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\InstanceContext' not found in wp-content/plugins/marketing-automation-by-azexo/twilio-php/Twilio/Rest/Api/V2010/Account/ConnectAppContext.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\Page' not found in wp-content/plugins/marketing-automation-by-azexo/twilio-php/Twilio/Rest/Api/V2010/Account/Call/FeedbackPage.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\InstanceResource' not found in wp-content/plugins/marketing-automation-by-azexo/twilio-php/Twilio/Rest/IpMessaging/V1/Service/RoleInstance.php:29
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\Page' not found in wp-content/plugins/marketing-automation-by-azexo/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/CredentialListPage.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\InstanceContext' not found in wp-content/plugins/marketing-automation-by-azexo/twilio-php/Twilio/Rest/Api/V2010/Account/AuthorizedConnectAppContext.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/marketing-automation-by-azexo/email_rules.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\InstanceResource' not found in wp-content/plugins/marketing-automation-by-azexo/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/DomainInstance.php:37
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\InstanceResource' not found in wp-content/plugins/marketing-automation-by-azexo/twilio-php/Twilio/Rest/Accounts/V1/Credential/PublicKeyInstance.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\InstanceResource' not found in wp-content/plugins/marketing-automation-by-azexo/twilio-php/Twilio/Rest/Api/V2010/Account/NotificationInstance.php:37
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\Domain' not found in wp-content/plugins/marketing-automation-by-azexo/twilio-php/Twilio/Rest/Trunking.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Tags: Too many tags (18 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

marketing-automation-by-azexo/azh_marketing_automation.php 85% from 13 tests

Analyzing the main PHP file in "Marketing Automation by AZEXO" version 1.27.80
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 ("marketing-automation-by-azexo.php" instead of "azh_marketing_automation.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin52,989 lines of code in 593 files:
LanguageFilesBlank linesComment linesLines of code
PHP5668,23929,38039,229
JavaScript61,82080710,305
Markdown743101,126
LESS3776944
PO File1289365626
CSS3560430
make2479245
Python17223531
JSON10026
Bourne Shell10010
YAML10010
reStructuredText1677

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity2.79
▷ Minimum class complexity1.00
▷ Maximum class complexity28.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces59
Interfaces2
Traits0
Classes694
▷ Abstract classes8512.25%
▷ Concrete classes60987.75%
▷ Final classes10.16%
Methods3,782
▷ Static methods1594.20%
▷ Public methods3,35288.63%
▷ Protected methods42611.26%
▷ Private methods40.11%
Functions219
▷ Named functions17881.28%
▷ Anonymous functions4118.72%
Constants14
▷ Global constants642.86%
▷ Class constants857.14%
▷ Public constants8100.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
No PNG files were detected