73% sip-advanced-email-notifications-for-wc-free

Code Review | Sip Advanced Email Notification For WC Free

WordPress plugin Sip Advanced Email Notification For WC Free scored73%from 54 tests.

About plugin

  • Plugin page: sip-advanced-emai...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6.0-6.0
  • WordPress version: 6.3.1
  • First release: Apr 12, 2021
  • Latest release: Jun 19, 2022
  • Number of updates: 13
  • Update frequency: every 33.5 days
  • Top authors: shopitpress (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

90+ active /1,423 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

An overview of server-side resources used by Sip Advanced Email Notification For WC Free
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.05 ▼1.69
Dashboard /wp-admin3.31 ▲0.0044.51 ▼7.80
Posts /wp-admin/edit.php3.36 ▲0.0046.55 ▲1.95
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.66 ▲2.32
Media Library /wp-admin/upload.php3.23 ▲0.0033.08 ▼1.11

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 240 new files
Database: 2 new tables, 7 new options
New tables
wp_sip_aenwc_queue
wp_sip_aenwc_email_chain
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
recovery_mode_email_last_sent
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Sip Advanced Email Notification For WC Free
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.28 ▼1.151.62 ▼0.2440.90 ▼7.43
Dashboard /wp-admin2,206 ▲185.86 ▼0.04108.75 ▼4.0339.17 ▼5.35
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0239.49 ▲4.5935.29 ▼0.40
Add New Post /wp-admin/post-new.php1,514 ▼2817.40 ▼0.62623.76 ▼23.7253.79 ▲4.18
Media Library /wp-admin/upload.php1,391 ▲34.20 ▼0.0097.07 ▼10.6440.84 ▼3.51

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The plugin did not uninstall successfully, leaving 2 tables in the database
    • wp_sip_aenwc_email_chain
    • wp_sip_aenwc_queue
  • Zombie WordPress options detected upon uninstall: 7 options
    • recovery_mode_email_last_sent
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • 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
Even though everything seems fine, this is not 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 items
  • 25× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/sip-advanced-email-notifications-for-wc-free/admin/partials/ui/help.php:3
    • > PHP Warning
      Use of undefined constant SIP_AENWCF_VERSION - assumed 'SIP_AENWCF_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/sip-advanced-email-notifications-for-wc-free/admin/partials/ui/themes.php on line 7
    • > PHP Warning
      Use of undefined constant SIP_SPWCF_PLUGIN - assumed 'SIP_SPWCF_PLUGIN' (this will throw an Error in a future version of PHP) in wp-content/plugins/sip-advanced-email-notifications-for-wc-free/admin/partials/ui/plugin.php on line 8
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/sip-advanced-email-notifications-for-wc-free/includes/class-sip-advanced-email-notification-for-woocommerce-post-tab.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sip-advanced-email-notifications-for-wc-free/admin/partials/sip-advanced-email-notification-for-woocommerce-admin-post-type.php:58
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sip-advanced-email-notifications-for-wc-free/admin/inc/add-action.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/sip-advanced-email-notifications-for-wc-free/admin/partials/ui/get-pro-version-features.php:4
    • > PHP Warning
      Use of undefined constant SIP_WPGUMBY_THEME_URL - assumed 'SIP_WPGUMBY_THEME_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/sip-advanced-email-notifications-for-wc-free/admin/partials/ui/themes.php on line 7
    • > PHP Warning
      Use of undefined constant SIP_AENWCF_VERSION - assumed 'SIP_AENWCF_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/sip-advanced-email-notifications-for-wc-free/admin/partials/ui/plugin.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sip-advanced-email-notifications-for-wc-free/admin/partials/sip-advanced-email-notification-for-woocommerce-admin-email.php:73

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

sip-advanced-email-notifications-for-wc-free/sip-advanced-email-notifications-wc-free.php 77% from 13 tests

The main PHP script in "Sip Advanced Email Notification For WC Free" version 1.0.4 is automatically included on every request by WordPress
It is important to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("sip-advanced-email-notifications-for-wc-free.php" instead of "sip-advanced-email-notifications-wc-free.php")
  • Requires at least: The required version number must match the one declared in readme.txt ("4.1" instead of "2.6.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected88,988 lines of code in 88 files:
LanguageFilesBlank linesComment linesLines of code
CSS165,45316455,815
JavaScript323,9193,49525,187
PHP351,2351,5145,494
SVG1032,087
HTML4840405

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity33.44
▷ Minimum class complexity1.00
▷ Maximum class complexity107.00
Average method complexity3.45
▷ Minimum method complexity1.00
▷ Maximum method complexity63.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods119
▷ Static methods86.72%
▷ Public methods7361.34%
▷ Protected methods43.36%
▷ Private methods4235.29%
Functions74
▷ Named functions74100.00%
▷ Anonymous functions00.00%
Constants35
▷ Global constants2468.57%
▷ Class constants1131.43%
▷ Public constants11100.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
19 PNG files occupy 0.12MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/back_disabled.png1.33KB0.60KB▼ 55.11%
admin/partials/assets/images/icon-wpgumby.png32.42KB34.75KB0.00%
admin/partials/assets/images/mec-mini-logo.png1.60KB1.05KB▼ 34.51%
admin/partials/assets/images/mini-logo.png1.72KB1.13KB▼ 34.58%
admin/images/forward_disabled.png1.33KB0.58KB▼ 56.42%