84% marketing-automation-suite

Code Review | Marketing Automation Suite

WordPress plugin Marketing Automation Suite scored84%from 54 tests.

About plugin

  • Plugin page: marketing-automat...
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.2.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.2
  • WordPress version: 6.3.1
  • First release: Oct 5, 2023
  • Latest release: Oct 5, 2023
  • Number of updates: 34
  • Update frequency: every 4.5 days
  • Top authors: marketingautomationsuite (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /26 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.56ms] Passed 4 tests

Server-side resources used by Marketing Automation Suite
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.51 ▲0.27
Dashboard /wp-admin3.33 ▲0.0244.67 ▼7.94
Posts /wp-admin/edit.php3.38 ▲0.0246.08 ▼0.98
Add New Post /wp-admin/post-new.php5.91 ▲0.0283.50 ▼13.59
Media Library /wp-admin/upload.php3.25 ▲0.0237.83 ▲5.95

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Marketing Automation Suite
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲8313.20 ▼1.201.56 ▲0.0038.35 ▼2.35
Dashboard /wp-admin2,224 ▲366.06 ▲0.16107.95 ▼7.9239.57 ▼6.61
Posts /wp-admin/edit.php2,110 ▲212.06 ▲0.0739.67 ▲0.0035.80 ▲0.71
Add New Post /wp-admin/post-new.php1,421 ▼11217.77 ▼5.35585.24 ▼37.2649.84 ▼3.26
Media Library /wp-admin/upload.php1,403 ▲124.15 ▼0.06109.62 ▲10.1750.18 ▲9.12

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 11× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_home_url() in wp-content/plugins/marketing-automation-suite/constants.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_home_url() in wp-content/plugins/marketing-automation-suite/constants.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_home_url() in wp-content/plugins/marketing-automation-suite/constants.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_home_url() in wp-content/plugins/marketing-automation-suite/constants.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_home_url() in wp-content/plugins/marketing-automation-suite/constants.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_home_url() in wp-content/plugins/marketing-automation-suite/constants.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_home_url() in wp-content/plugins/marketing-automation-suite/constants.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/marketing-automation-suite/masForm_fields_mappings.php:79
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/marketing-automation-suite/settings_tab_general.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_home_url() in wp-content/plugins/marketing-automation-suite/constants.php:8

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 on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Add an image for screenshot #1 (Marketing Automation Suite plugin setting)
The official readme.txt is a good inspiration

marketing-automation-suite/marketing_automation_suite.php 92% from 13 tests

The main PHP file in "Marketing Automation Suite" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("marketing-automation-suite.php" instead of "marketing_automation_suite.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
Good job! No executable or dangerous file extensions detected1,604 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP131921651,366
PO File181119170
Markdown122045
CSS17023

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity12.67
▷ Minimum class complexity3.00
▷ Maximum class complexity30.00
Average method complexity5.38
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions25
▷ Named functions2288.00%
▷ Anonymous functions312.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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 images were found in this plugin