68% zeta-abandoned-cart

Code Review | Zeta Abandoned Cart

WordPress plugin Zeta Abandoned Cart scored68%from 54 tests.

About plugin

  • Plugin page: zeta-abandoned-cart
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1
  • WordPress version: 6.3.1
  • First release: Nov 10, 2022
  • Latest release: Nov 10, 2022
  • Number of updates: 6
  • Update frequency: every 0.3 days
  • Top authors: zetasolutionsonline (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /154 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Zeta Abandoned Cart
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0044.43 ▼2.07
Dashboard /wp-admin3.31 ▲0.0053.04 ▲0.48
Posts /wp-admin/edit.php3.36 ▲0.0053.06 ▼1.11
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.12 ▼7.34
Media Library /wp-admin/upload.php3.23 ▲0.0038.26 ▼4.28
Dashboard /wp-admin/admin.php?page=zac-dashboard3.0024.12
Settings /wp-admin/admin.php?page=zac-settings3.0027.25

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 24 new files
Database: 2 new tables, 6 new options
New tables
wp_zac_abandoned_carts
wp_zac_email_templates
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Zeta Abandoned Cart
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲6614.37 ▼0.262.21 ▲0.1249.63 ▲5.78
Dashboard /wp-admin2,195 ▲185.63 ▲0.0283.16 ▼3.7541.42 ▼0.67
Posts /wp-admin/edit.php2,100 ▼31.98 ▲0.0040.01 ▲4.1738.25 ▲0.74
Add New Post /wp-admin/post-new.php1,528 ▲223.25 ▲0.17687.99 ▲50.4358.72 ▲8.87
Media Library /wp-admin/upload.php1,400 ▼34.11 ▼0.10113.58 ▲6.9948.98 ▲5.87
Dashboard /wp-admin/admin.php?page=zac-dashboard280.420.113.86
Settings /wp-admin/admin.php?page=zac-settings280.420.073.93

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
The following items require your attention
  • Zombie tables detected upon uninstall: 2 tables
    • wp_zac_email_templates
    • wp_zac_abandoned_carts
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/zeta-abandoned-cart/includes/class-zac-list-table.php:22
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/zeta-abandoned-cart/admin/partials/dashboard.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_referer() in wp-content/plugins/zeta-abandoned-cart/admin/partials/view-cart.php:14

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=zac-dashboard
    • > Network (severe)
    wp-admin/admin.php?page=zac-dashboard - Failed to load resource: the server responded with a status of 403 (Forbidden)
    • > GET request to /wp-admin/admin.php?page=zac-settings
    • > Network (severe)
    wp-admin/admin.php?page=zac-settings - Failed to load resource: the server responded with a status of 403 (Forbidden)

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: cart abandonment, order recovery, abandoned cart, follow up emails, cart recovery

zeta-abandoned-cart/zeta-abandoned-cart.php 92% from 13 tests

"Zeta Abandoned Cart" version 1.0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 147 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,719 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP133579231,478
CSS299141
JavaScript42057100

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity10.00
▷ Minimum class complexity1.00
▷ Maximum class complexity59.00
Average method complexity1.98
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods83
▷ Static methods1113.25%
▷ Public methods7691.57%
▷ Protected methods00.00%
▷ Private methods78.43%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants20
▷ Global constants20100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin