93% e-commerce-mailcheck

Code Review | WP Cart Mailcheck

WordPress plugin WP Cart Mailcheck scored 93% from 54 tests.

About plugin

  • Plugin page: e-commerce-mailcheck
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.5
  • WordPress version: 5.8.1
  • First release: Mar 26, 2012
  • Latest release: Aug 3, 2020
  • Number of updates: 31
  • Update frequency: every 98.5 days
  • Top authors: leewillis77 (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active / 9,234 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

Server-side resources used by WP Cart Mailcheck
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0142.19 ▲8.89
Dashboard /wp-admin3.06 ▲0.0151.71 ▲4.00
Posts /wp-admin/edit.php3.12 ▲0.0148.71 ▲3.90
Add New Post /wp-admin/post-new.php5.42 ▼0.0189.23 ▼571.14
Media Library /wp-admin/upload.php3.01 ▲0.0135.31 ▲5.75

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 27 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for WP Cart Mailcheck
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,812 ▲21616.69 ▲1.2116.73 ▲8.0450.17 ▲5.06
Dashboard /wp-admin2,966 ▲325.88 ▼0.03139.33 ▼15.04112.00 ▼4.50
Posts /wp-admin/edit.php2,739 ▼02.71 ▼0.0265.50 ▼3.1289.62 ▲5.24
Add New Post /wp-admin/post-new.php1,683 ▼1,95318.50 ▲3.54403.05 ▼103.60108.05 ▼5.12
Media Library /wp-admin/upload.php1,807 ▼05.04 ▲0.01154.24 ▼4.29108.12 ▼8.93

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 successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
  • 6× 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/e-commerce-mailcheck/wp-cart-mailcheck.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/e-commerce-mailcheck/wp-cart-mailcheck-wpec.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/e-commerce-mailcheck/wp-cart-mailcheck-woo.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/e-commerce-mailcheck/wp-cart-mailcheck-shopp.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/e-commerce-mailcheck/wp-cart-mailcheck-edd.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/e-commerce-mailcheck/wp-cart-mailcheck-jigoshop.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === e-commerce-mailcheck === )
  • Screenshots: These screenshots do not have images: #1 (WP e-Commerce email checking), #2 (WooCommerce email checking), #3 (Jigoshop email checking)
Please take inspiration from this readme.txt

e-commerce-mailcheck/wp-cart-mailcheck.php 92% from 13 tests

The main PHP file in "WP Cart Mailcheck" ver. 1.0.5 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("e-commerce-mailcheck.php" instead of "wp-cart-mailcheck.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin332 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript123322225
PHP6401279
JSON10023
CSS2005

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity2.60
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png7.92KB4.41KB▼ 44.31%
screenshot-2.png8.92KB4.07KB▼ 54.32%
screenshot-3.png8.40KB4.25KB▼ 49.44%