74% email-notifications-for-wp-ulike

Code Review | Email Notifications For WP ULike

WordPress plugin Email Notifications For WP ULike scored74%from 54 tests.

About plugin

  • Plugin page: email-notificatio...
  • Plugin version: 1.4.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.8
  • WordPress version: 6.3.1
  • First release: Aug 27, 2021
  • Latest release: Sep 22, 2021
  • Number of updates: 10
  • Update frequency: every 2.7 days
  • Top authors: sanzeeb3 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /2,902 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: ▲1.17MB] [CPU: ▲8.39ms] Passed 4 tests

An overview of server-side resources used by Email Notifications For WP ULike
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.64 ▲1.1851.94 ▲7.48
Dashboard /wp-admin4.47 ▲1.1664.62 ▲15.79
Posts /wp-admin/edit.php4.58 ▲1.2264.20 ▲11.27
Add New Post /wp-admin/post-new.php7.05 ▲1.16106.13 ▲3.06
Media Library /wp-admin/upload.php4.39 ▲1.1654.46 ▲11.74
Scheduled Actions /wp-admin/tools.php?page=action-scheduler4.5359.55

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 111 new files
Database: 4 new tables, 10 new options
New tables
wp_actionscheduler_actions
wp_actionscheduler_logs
wp_actionscheduler_groups
wp_actionscheduler_claims
New WordPress options
schema-ActionScheduler_StoreSchema
widget_theysaidso_widget
action_scheduler_lock_async-request-runner
action_scheduler_hybrid_store_demarkation
db_upgraded
schema-ActionScheduler_LoggerSchema
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Email Notifications For WP ULike
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.22 ▼1.081.86 ▼0.1042.12 ▼6.67
Dashboard /wp-admin2,210 ▲224.86 ▼1.02103.66 ▼2.5639.03 ▼3.59
Posts /wp-admin/edit.php2,096 ▲42.06 ▲0.0040.16 ▼1.5134.57 ▼2.10
Add New Post /wp-admin/post-new.php1,535 ▲2123.23 ▲5.55622.25 ▼67.5265.31 ▲1.72
Media Library /wp-admin/upload.php1,392 ▲74.18 ▲0.0597.32 ▼22.0645.01 ▼10.11
Scheduled Actions /wp-admin/tools.php?page=action-scheduler1,1991.8426.7830.13

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
The following items require your attention
  • The plugin did not uninstall successfully, leaving 4 tables in the database
    • wp_actionscheduler_groups
    • wp_actionscheduler_claims
    • wp_actionscheduler_actions
    • wp_actionscheduler_logs
  • This plugin does not fully uninstall, leaving 10 options in the database
    • widget_recent-comments
    • db_upgraded
    • schema-ActionScheduler_StoreSchema
    • theysaidso_admin_options
    • action_scheduler_hybrid_store_demarkation
    • action_scheduler_lock_async-request-runner
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • schema-ActionScheduler_LoggerSchema

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 42× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_DBStore' not found in wp-content/plugins/email-notifications-for-wp-ulike/vendor/woocommerce/action-scheduler/classes/migration/ActionScheduler_DBStoreMigrator.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Store' not found in wp-content/plugins/email-notifications-for-wp-ulike/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'ActionScheduler_Schedule' not found in wp-content/plugins/email-notifications-for-wp-ulike/vendor/woocommerce/action-scheduler/deprecated/ActionScheduler_Schedule_Deprecated.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/email-notifications-for-wp-ulike/vendor/woocommerce/action-scheduler/lib/cron-expression/CronExpression_DayOfMonthField.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_LogEntry' not found in wp-content/plugins/email-notifications-for-wp-ulike/vendor/woocommerce/action-scheduler/classes/ActionScheduler_NullLogEntry.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Abstract_QueueRunner' not found in wp-content/plugins/email-notifications-for-wp-ulike/vendor/woocommerce/action-scheduler/classes/WP_CLI/ActionScheduler_WPCLI_QueueRunner.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/email-notifications-for-wp-ulike/vendor/woocommerce/action-scheduler/classes/WP_CLI/Migration_Command.php:22
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/email-notifications-for-wp-ulike/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler_Abstract_ListTable.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Abstract_Schedule' not found in wp-content/plugins/email-notifications-for-wp-ulike/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler_Abstract_RecurringSchedule.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/email-notifications-for-wp-ulike/vendor/woocommerce/action-scheduler/lib/cron-expression/CronExpression_HoursField.php:8

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: emails, wp-ulike, wp ulike

email-notifications-for-wp-ulike/email-notifications-for-wp-ulike.php Passed 13 tests

The entry point to "Email Notifications For WP ULike" version 1.4.0 is a PHP file that has certain tags in its header comment area
70 characters long description:
Sends email notification whenever you got a like on a post or comment.

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
There were no executable files found in this plugin6,891 lines of code in 100 files:
LanguageFilesBlank linesComment linesLines of code
PHP991,7544,8826,728
JSON100163

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity10.11
▷ Minimum class complexity1.00
▷ Maximum class complexity81.00
Average method complexity2.37
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces4
Interfaces3
Traits0
Classes85
▷ Abstract classes1517.65%
▷ Concrete classes7082.35%
▷ Final classes11.43%
Methods621
▷ Static methods7411.92%
▷ Public methods47075.68%
▷ Protected methods13221.26%
▷ Private methods193.06%
Functions32
▷ Named functions2371.88%
▷ Anonymous functions928.12%
Constants36
▷ Global constants25.56%
▷ Class constants3494.44%
▷ Public constants34100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin