74% come-back

Code Review | Come Back!

WordPress plugin Come Back! scored74%from 54 tests.

About plugin

  • Plugin page: come-back
  • Plugin version: 1.3.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: Dec 9, 2020
  • Latest release: May 29, 2022
  • Number of updates: 17
  • Update frequency: every 31.6 days
  • Top authors: sanzeeb3 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active /3,924 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲1.08MB] [CPU: ▲6.06ms] Passed 4 tests

A check of server-side resources used by Come Back!
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.57 ▲1.1157.53 ▲14.85
Dashboard /wp-admin4.39 ▲1.0564.59 ▲3.93
Posts /wp-admin/edit.php4.50 ▲1.1559.83 ▲15.49
Add New Post /wp-admin/post-new.php6.97 ▲1.0995.36 ▼9.44
Media Library /wp-admin/upload.php4.32 ▲1.0952.77 ▲14.91
Come Back! /wp-admin/options-general.php?page=come-back4.3251.46
Scheduled Actions /wp-admin/tools.php?page=action-scheduler4.4655.92

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 103 new files
Database: 4 new tables, 11 new options
New tables
wp_actionscheduler_logs
wp_actionscheduler_groups
wp_actionscheduler_claims
wp_actionscheduler_actions
New WordPress options
come_back_activation_date
can_compress_scripts
action_scheduler_lock_async-request-runner
widget_theysaidso_widget
action_scheduler_hybrid_store_demarkation
db_upgraded
theysaidso_admin_options
schema-ActionScheduler_StoreSchema
widget_recent-posts
schema-ActionScheduler_LoggerSchema
...

Browser metrics Passed 4 tests

An overview of browser requirements for Come Back!
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲5114.42 ▲0.151.77 ▲0.1642.63 ▼3.89
Dashboard /wp-admin2,203 ▲235.55 ▼0.0383.65 ▼16.8337.59 ▼4.82
Posts /wp-admin/edit.php2,108 ▲81.98 ▼0.0435.99 ▼1.4835.78 ▲1.42
Add New Post /wp-admin/post-new.php1,537 ▲923.00 ▼0.16691.21 ▲10.7751.64 ▼12.95
Media Library /wp-admin/upload.php1,408 ▲54.28 ▲0.20104.83 ▲0.2648.33 ▲0.31
Come Back! /wp-admin/options-general.php?page=come-back1,4085.99126.3965.70
Scheduled Actions /wp-admin/tools.php?page=action-scheduler1,2671.8225.1830.62

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure failed, leaving 4 tables in the database
    • wp_actionscheduler_actions
    • wp_actionscheduler_claims
    • wp_actionscheduler_logs
    • wp_actionscheduler_groups
  • The uninstall procedure has failed, leaving 10 options in the database
    • action_scheduler_lock_async-request-runner
    • action_scheduler_hybrid_store_demarkation
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • schema-ActionScheduler_LoggerSchema
    • can_compress_scripts
    • schema-ActionScheduler_StoreSchema
    • widget_recent-posts
    • theysaidso_admin_options

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)
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 43× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Lock' not found in wp-content/plugins/come-back/wp-content/plugins/action-scheduler/classes/ActionScheduler_OptionLock.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/come-back/wp-content/plugins/action-scheduler/lib/cron-expression/CronExpression_DayOfWeekField.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Action_Scheduler\\Migration\\ActionMigrator' not found in wp-content/plugins/come-back/wp-content/plugins/action-scheduler/classes/migration/DryRun_ActionMigrator.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Abstract_QueueRunner_Deprecated' not found in wp-content/plugins/come-back/wp-content/plugins/action-scheduler/classes/abstracts/ActionScheduler_Abstract_QueueRunner.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Logger' not found in wp-content/plugins/come-back/wp-content/plugins/action-scheduler/classes/data-stores/ActionScheduler_wpCommentLogger.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Abstract_QueueRunner' not found in wp-content/plugins/come-back/wp-content/plugins/action-scheduler/classes/ActionScheduler_QueueRunner.php:6
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/come-back/wp-content/plugins/action-scheduler/classes/abstracts/ActionScheduler_Abstract_ListTable.php on line 4
    • > PHP Fatal error
      Uncaught Error: Interface 'ActionScheduler_Schedule' not found in wp-content/plugins/come-back/wp-content/plugins/action-scheduler/deprecated/ActionScheduler_Schedule_Deprecated.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Abstract_RecurringSchedule' not found in wp-content/plugins/come-back/wp-content/plugins/action-scheduler/classes/schedules/ActionScheduler_IntervalSchedule.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/come-back/wp-content/plugins/action-scheduler/action-scheduler.php:32

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)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: inactive, idle-users, notification

come-back/come-back.php Passed 13 tests

This is the main PHP file of "Come Back!" version 1.3.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
47 characters long description:
Sends email notification to inactive customers.

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 plugin6,633 lines of code in 98 files:
LanguageFilesBlank linesComment linesLines of code
PHP941,6354,6196,353
JSON100163
Markdown237090
JavaScript113127

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity10.07
▷ Minimum class complexity1.00
▷ Maximum class complexity85.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces5
Interfaces3
Traits0
Classes81
▷ Abstract classes1518.52%
▷ Concrete classes6681.48%
▷ Final classes11.52%
Methods606
▷ Static methods6610.89%
▷ Public methods45575.08%
▷ Protected methods13221.78%
▷ Private methods193.14%
Functions28
▷ Named functions2071.43%
▷ Anonymous functions828.57%
Constants34
▷ Global constants12.94%
▷ Class constants3397.06%
▷ Public constants33100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin