90% woowup-abandoned-cart

Code Review | Woowup Abandoned Cart

WordPress plugin Woowup Abandoned Cart scored90%from 54 tests.

About plugin

  • Plugin page: woowup-abandoned-...
  • Plugin version: 1.1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-5.8
  • WordPress version: 6.3.1
  • First release: May 6, 2021
  • Latest release: Jan 13, 2022
  • Number of updates: 14
  • Update frequency: every 18.1 days
  • Top authors: kevinwoowup (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /438 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
Install script ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼2.76ms] Passed 4 tests

Server-side resources used by Woowup Abandoned Cart
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1134.84 ▼11.56
Dashboard /wp-admin3.41 ▲0.1149.18 ▲4.77
Posts /wp-admin/edit.php3.53 ▲0.1747.66 ▲2.42
Add New Post /wp-admin/post-new.php5.99 ▲0.1193.56 ▼0.22
Media Library /wp-admin/upload.php3.34 ▲0.1136.23 ▼1.66
WoowUp /wp-admin/admin.php?page=woowup-abandonedcart-woocommerce3.3032.27

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: 2 new tables, 7 new options
New tables
wp_woowup_abandonedcart_woocommerce_table
wp_woowup_abandonedcartrecovery_woocommerce_table
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
woowupApikey
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Woowup Abandoned Cart
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2814.72 ▲0.351.89 ▲0.1439.61 ▼0.18
Dashboard /wp-admin2,198 ▲185.57 ▼0.0490.12 ▲2.6440.86 ▲1.27
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0238.96 ▲4.5337.34 ▼0.22
Add New Post /wp-admin/post-new.php1,526 ▼223.29 ▲0.32602.84 ▼62.0057.97 ▲1.36
Media Library /wp-admin/upload.php1,400 ▼04.24 ▲0.0496.22 ▼21.0839.80 ▼10.16
WoowUp /wp-admin/admin.php?page=woowup-abandonedcart-woocommerce8312.0023.8725.44

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: api, cart abandonment, woowup, crm, woocommerce

woowup-abandoned-cart/woowup-abandonedcart-woocommerce.php 92% from 13 tests

"Woowup Abandoned Cart" version 1.1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("woowup-abandoned-cart.php" instead of "woowup-abandonedcart-woocommerce.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected581 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP73419581

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity12.20
▷ Minimum class complexity3.00
▷ Maximum class complexity30.00
Average method complexity2.46
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
Methods36
▷ Static methods925.00%
▷ Public methods2980.56%
▷ Protected methods00.00%
▷ Private methods719.44%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants12
▷ Global constants12100.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
No PNG files were detected