74% wp-flashy-marketing-automation

Code Review | WP Flashy Marketing Automation

WordPress plugin WP Flashy Marketing Automation scored74%from 54 tests.

About plugin

  • Plugin page: wp-flashy-marketi...
  • Plugin version: 2.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 21, 2018
  • Latest release: Nov 21, 2023
  • Number of updates: 79
  • Update frequency: every 26.2 days
  • Top authors: flashyapp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /9,472 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

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

An overview of server-side resources used by WP Flashy Marketing Automation
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.60 ▼5.02
Dashboard /wp-admin3.33 ▲0.0349.74 ▲1.61
Posts /wp-admin/edit.php3.44 ▲0.0946.45 ▼8.82
Add New Post /wp-admin/post-new.php5.91 ▲0.0289.28 ▼10.78
Media Library /wp-admin/upload.php3.25 ▲0.0236.01 ▼0.03

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 35 new files
Database: 1 new table, 7 new options
New tables
wp_flashy_carts
New WordPress options
widget_theysaidso_widget
db_upgraded
flashy_db_version
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for WP Flashy Marketing Automation
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4214.37 ▲0.111.57 ▼0.0135.68 ▼4.94
Dashboard /wp-admin2,212 ▲385.62 ▲0.0897.88 ▼2.9543.47 ▼6.64
Posts /wp-admin/edit.php2,114 ▲111.96 ▼0.0440.57 ▼0.1436.09 ▲0.12
Add New Post /wp-admin/post-new.php1,541 ▲1523.24 ▼0.46601.25 ▼113.6346.87 ▼2.91
Media Library /wp-admin/upload.php1,408 ▲84.19 ▲0.0299.45 ▼8.3242.31 ▼4.01

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 9× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-flashy-marketing-automation/core/snippets/new-contact.php:58
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-flashy-marketing-automation/core/snippets/set-customer.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-flashy-marketing-automation/core/snippets/add-to-cart.php:73
    • > PHP Fatal error
      Uncaught Error: Class 'ElementorPro\\Modules\\Forms\\Classes\\Action_Base' not found in wp-content/plugins/wp-flashy-marketing-automation/core/elementor/form-action.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-flashy-marketing-automation/core/snippets/tracking.php:38
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Background_Process' not found in wp-content/plugins/wp-flashy-marketing-automation/core/classes/Flashy_Export.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-flashy-marketing-automation/core/snippets/new-order.php:95
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-flashy-marketing-automation/core/snippets/conversions.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Async_Request' not found in wp-content/plugins/wp-flashy-marketing-automation/core/process/wp-background-process.php:16

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 96% from 29 tests

readme.txt Passed 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
9 plugin tags: sms, cross-sell, email marketing, cart abandonment, social ads...

wp-flashy-marketing-automation/flashy.php 92% from 13 tests

The primary PHP file in "WP Flashy Marketing Automation" version 2.0.7 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-flashy-marketing-automation.php" instead of "flashy.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
Everything looks great! No dangerous files found in this plugin4,274 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
PHP281,0761,0903,855
CSS1183213
PO File189100203
Markdown1503

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity22.10
▷ Minimum class complexity1.00
▷ Maximum class complexity238.00
Average method complexity3.05
▷ Minimum method complexity1.00
▷ Maximum method complexity45.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes20
▷ Abstract classes210.00%
▷ Concrete classes1890.00%
▷ Final classes00.00%
Methods191
▷ Static methods168.38%
▷ Public methods16385.34%
▷ Protected methods2010.47%
▷ Private methods84.19%
Functions41
▷ Named functions2356.10%
▷ Anonymous functions1843.90%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/export-products.png6.84KB2.84KB▼ 58.40%