99% abandoned-cart-and-search-box-tracking

Code Review | WC Missing Cart Handling & Order SMS Handling

WordPress plugin WC Missing Cart Handling & Order SMS Handling scored 99% from 54 tests.

About plugin

  • Plugin page: abandoned-cart-an...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.2
  • WordPress version: 5.9.2
  • First release: Sep 4, 2019
  • Latest release: Sep 10, 2019
  • Number of updates: 17
  • Update frequency: every 0.4 days
  • Top authors: hitstacks (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 454 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼303.53ms] Passed 4 tests

A check of server-side resources used by WC Missing Cart Handling & Order SMS Handling
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0454.21 ▲6.71
Dashboard /wp-admin3.45 ▲0.0432.96 ▼0.17
Posts /wp-admin/edit.php3.67 ▲0.0437.82 ▼0.25
Add New Post /wp-admin/post-new.php6.91 ▼0.0692.50 ▼1,211.57
Media Library /wp-admin/upload.php3.33 ▲0.0323.92 ▼2.13

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for WC Missing Cart Handling & Order SMS Handling
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,815 ▲6116.14 ▲0.116.42 ▲0.482.51 ▼0.31
Dashboard /wp-admin2,912 ▲516.18 ▼0.03115.05 ▼18.78177.96 ▲16.60
Posts /wp-admin/edit.php2,709 ▲183.12 ▼0.1263.40 ▲0.51143.39 ▲4.34
Add New Post /wp-admin/post-new.php1,682 ▼7019.37 ▼2.48381.84 ▼68.60209.61 ▲54.12
Media Library /wp-admin/upload.php1,716 ▲155.54 ▲0.02123.96 ▼13.03202.25 ▲18.86

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
1 plugin tags: asdjkasd

abandoned-cart-and-search-box-tracking/abandonedcartsearchtracking.php 77% from 13 tests

The principal PHP file in "WC Missing Cart Handling & Order SMS Handling" v. 1.1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("abandoned-cart-and-search-box-tracking.php" instead of "abandonedcartsearchtracking.php")
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin374 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP35520374

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods240.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin