78% recoverexit-for-woocommerce

Code Review | Recover Exit For WooCommerce

WordPress plugin Recover Exit For WooCommerce scored78%from 54 tests.

About plugin

  • Plugin page: recoverexit-for-w...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 6.3.1
  • First release: Oct 16, 2021
  • Latest release: Mar 17, 2022
  • Number of updates: 7
  • Update frequency: every 21.7 days
  • Top authors: plasmatizemedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /461 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

Server-side resources used by Recover Exit For WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0239.45 ▲0.59
Dashboard /wp-admin3.33 ▲0.0344.95 ▼4.89
Posts /wp-admin/edit.php3.38 ▲0.0346.68 ▼2.90
Add New Post /wp-admin/post-new.php5.92 ▲0.0481.54 ▼16.23
Media Library /wp-admin/upload.php3.25 ▲0.0234.72 ▼0.07
RecoverExit /wp-admin/admin.php?page=recoverexit-for-woocommerce3.2239.04
Bulk Add Coupons /wp-admin/admin.php?page=recover-exit-gen-coupons3.2234.90
Help & License /wp-admin/admin.php?page=recover-exit-help-license3.2235.35
Template Editor /wp-admin/admin.php?page=recover-exit-template-editor3.2645.29
Statistics /wp-admin/admin.php?page=recover-exit-stats3.2031.63
Settings /wp-admin/admin.php?page=recover-exit-settings3.2331.92
Feedback /wp-admin/admin.php?page=recover-exit-feedback3.2334.87

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 43 new files
Database: no new tables, 11 new options
New WordPress options
theysaidso_admin_options
RecoverExitFirstTimer
can_compress_scripts
widget_theysaidso_widget
RecoverExitSettings
db_upgraded
widget_recent-posts
randomrecoverexitcheck
RE_Total_Counter
widget_recent-comments
...

Browser metrics Passed 4 tests

An overview of browser requirements for Recover Exit For WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,853 ▲11813.31 ▼0.911.59 ▼0.0837.98 ▼2.45
Dashboard /wp-admin2,259 ▲684.85 ▼0.22109.16 ▲7.0040.07 ▼4.38
Posts /wp-admin/edit.php2,142 ▲532.03 ▲0.0333.96 ▼6.0334.31 ▼0.78
Add New Post /wp-admin/post-new.php1,557 ▲4323.21 ▲5.69660.24 ▲36.7261.74 ▲6.19
Media Library /wp-admin/upload.php1,444 ▲534.20 ▲0.0396.78 ▼5.8040.44 ▼4.62
RecoverExit /wp-admin/admin.php?page=recoverexit-for-woocommerce9072.0329.0240.32
Bulk Add Coupons /wp-admin/admin.php?page=recover-exit-gen-coupons9052.0324.3238.45
Help & License /wp-admin/admin.php?page=recover-exit-help-license4,60552.171,404.3938.61
Template Editor /wp-admin/admin.php?page=recover-exit-template-editor7241.148.8526.32
Statistics /wp-admin/admin.php?page=recover-exit-stats8431.147.3321.33
Settings /wp-admin/admin.php?page=recover-exit-settings1,2052.0325.2945.95
Feedback /wp-admin/admin.php?page=recover-exit-feedback8482.1527.6437.27

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 11 options in the database
    • randomrecoverexitcheck
    • RecoverExitSettings
    • RE_conversion_Counter
    • widget_recent-comments
    • can_compress_scripts
    • RecoverExitFirstTimer
    • widget_recent-posts
    • RE_Total_Counter
    • db_upgraded
    • theysaidso_admin_options
    • ...

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=recover-exit-template-editor
    • > Error in wp-content/uploads/RecoverExit/templates/BlackNYellow [Premium].php+9
    Uncaught Error: Call to undefined function wc_get_page_permalink() in wp-content/uploads/RecoverExit/templates/BlackNYellow [Premium].php:9
    Stack trace:
    #0 wp-content/plugins/recoverexit-for-woocommerce/admin_area.php(1001): include()
    #1 wp-includes/class-wp-hook.php(310): recover_exit_template_editor()
    #2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #3 wp-includes/plugin.php(517): WP_Hook->do_action()
    #4 wp-admin/admin.php(259): do_action()
    #5 {main}
    thrown
    • > GET request to /wp-admin/admin.php?page=recover-exit-stats
    • > Error in wp-content/uploads/RecoverExit/templates/BlackNYellow [Premium].php+9
    Uncaught Error: Call to undefined function wc_get_page_permalink() in wp-content/uploads/RecoverExit/templates/BlackNYellow [Premium].php:9
    Stack trace:
    #0 wp-content/plugins/recoverexit-for-woocommerce/admin_area.php(303): include()
    #1 wp-includes/class-wp-hook.php(310): recover_exit_stats()
    #2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #3 wp-includes/plugin.php(517): WP_Hook->do_action()
    #4 wp-admin/admin.php(259): do_action()
    #5 {main}
    thrown

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
Please take a closer look at the following
  • 2× 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/recoverexit-for-woocommerce/includes/functions.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wc_get_page_permalink() in wp-content/plugins/recoverexit-for-woocommerce/assets/feedbacktemplate/feedback.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed: You can look at the official readme.txt

recoverexit-for-woocommerce/recoverexit_woocommerce.php 92% from 13 tests

"Recover Exit For WooCommerce" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("recoverexit-for-woocommerce.php" instead of "recoverexit_woocommerce.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
There were no executable files found in this plugin3,185 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP218733402,468
CSS361555
JavaScript2269162

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
16 compressed PNG files occupy 0.05MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/tick.png1.02KB0.53KB▼ 48.00%
assets/images/settings.png5.23KB5.54KB0.00%
assets/images/feedback.png3.60KB3.87KB0.00%
assets/images/template-editor.png1.33KB1.37KB0.00%
assets/images/gold-star.png1.57KB1.31KB▼ 16.41%