89% flowhippo-abandoned-cart-recovery

Code Review | FlowHippo Abandoned Cart Recovery

WordPress plugin FlowHippo Abandoned Cart Recovery scored89%from 54 tests.

About plugin

  • Plugin page: flowhippo-abandon...
  • Plugin version: 1.1.9
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 16, 2023
  • Latest release: May 1, 2023
  • Number of updates: 16
  • Update frequency: every 3.2 days
  • Top authors: ajithkumarvm (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /694 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.20ms] Passed 4 tests

Server-side resources used by FlowHippo Abandoned Cart Recovery
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0534.31 ▼8.01
Dashboard /wp-admin3.35 ▲0.0544.05 ▼7.40
Posts /wp-admin/edit.php3.40 ▲0.0546.66 ▼1.15
Add New Post /wp-admin/post-new.php5.93 ▲0.0594.40 ▲3.39
Media Library /wp-admin/upload.php3.28 ▲0.0534.07 ▼0.23

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for FlowHippo Abandoned Cart Recovery
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6814.48 ▲0.131.67 ▼0.2740.08 ▼6.06
Dashboard /wp-admin2,206 ▲185.78 ▼0.0797.97 ▼19.2439.69 ▼4.74
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0739.16 ▲3.2134.91 ▲0.52
Add New Post /wp-admin/post-new.php1,514 ▼717.63 ▼5.45625.74 ▼33.9248.89 ▼8.48
Media Library /wp-admin/upload.php1,385 ▼64.25 ▲0.0197.15 ▼2.8541.01 ▼3.20

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

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)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: abandoned cart, zoko, flowhippo, broadcast, cart recovery...

flowhippo-abandoned-cart-recovery/flowhippo.php 77% from 13 tests

The main PHP script in "FlowHippo Abandoned Cart Recovery" version 1.1.9 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 155 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("flowhippo-abandoned-cart-recovery.php" instead of "flowhippo.php")
  • Requires PHP: Required version does not match the one declared in readme.txt ("7.0" instead of "7.4")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected501 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP45043347
JavaScript111154

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.86MB with 0.65MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png333.09KB69.94KB▼ 79.00%
assets/screenshot-2.png543.69KB151.57KB▼ 72.12%