58% push-monkey-light-woocommerce

Code Review | Push Monkey Light and Abandoned Cart for WooCommerce

WordPress plugin Push Monkey Light and Abandoned Cart for WooCommerce scored 58% from 54 tests.

About plugin

  • Plugin page: push-monkey-light...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.9.1
  • WordPress version: 5.8.1
  • First release: Jan 17, 2018
  • Latest release: Jan 17, 2018
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: pushmonkey (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 548 total downloads

Benchmarks

Plugin footprint 48% from 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.30MB] [CPU: ▼168.11ms] Passed 4 tests

Server-side resources used by Push Monkey Light and Abandoned Cart for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.10 ▲0.3832.94 ▲6.73
Dashboard /wp-admin3.40 ▲0.3451.82 ▲4.79
Posts /wp-admin/edit.php3.45 ▲0.3447.77 ▲0.90
Add New Post /wp-admin/post-new.php5.70 ▲0.2690.32 ▼681.53
Media Library /wp-admin/upload.php3.28 ▲0.2736.83 ▲3.41
Settings /wp-admin/admin.php?page=pm-light-woocommerce3.2931.64
Push Monkey Lite + WooCommerce /wp-admin/admin.php?page=pm-light-woocommerce-main-config3.3034.00

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 228 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Push Monkey Light and Abandoned Cart for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,909 ▲31317.48 ▲1.9510.01 ▼0.9238.14 ▼10.00
Dashboard /wp-admin3,152 ▲2187.88 ▲1.68165.28 ▲15.85120.52 ▲15.65
Posts /wp-admin/edit.php2,950 ▲2113.84 ▲1.1282.36 ▲17.55106.60 ▲18.03
Add New Post /wp-admin/post-new.php1,710 ▲21024.31 ▲5.79284.23 ▼89.36102.95 ▼9.96
Media Library /wp-admin/upload.php2,013 ▲2036.54 ▲1.51150.48 ▲8.87131.07 ▲10.95
Settings /wp-admin/admin.php?page=pm-light-woocommerce1,4483.0167.89116.70
Push Monkey Lite + WooCommerce /wp-admin/admin.php?page=pm-light-woocommerce-main-config1,4483.1667.77113.51

Uninstaller [IO: ▲5.17MB] [DB: ▲0.00MB] 25% 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
  • This plugin cannot be uninstalled
    • > Warning in wp-content/plugins/push-monkey-light-woocommerce/uninstall.php+16
    require_once(wp-content/plugins/push-monkey-light-woocommerce/../models/class-push-monkey-light-woocommerce-review-notice.php): failed to open stream: No such file or directory
  • The plugin did not uninstall correctly, leaving 228 files (5.17MB) in the plugin directory
    • (new file) css/animate/animate.min.css
    • (new file) css/animate/animate.css
    • (new file) css/additional.css
    • (new file) css/bootstrap/bootstrap.min.css
    • (new file) assets/icon-128x128.png
    • (new file) css/bootstrap/bootstrap_3.3.2.min.css
    • (new file) assets/icon-256x256.png
    • (new file) css/bootstrap/bootstrap_3.3.1.min.css
    • (new file) assets/manifest.json
    • (new file) css/blueimp/blueimp-gallery.min.css
    • ...
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • recovery_mode_email_last_sent

Smoke tests 50% 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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 fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/push-monkey-light-woocommerce/templates/pages/service_worker.php
  • 18× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined variable: pluginPath in wp-content/plugins/push-monkey-light-woocommerce/templates/pages/settings/parts/header.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/push-monkey-light-woocommerce/templates/messages/push-monkey-light-woocommerce-upsell-notice.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/push-monkey-light-woocommerce/templates/pages/settings/statistics.php:4
    • > PHP Notice
      Undefined variable: plan_name in wp-content/plugins/push-monkey-light-woocommerce/templates/pages/settings/parts/header.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/push-monkey-light-woocommerce/templates/pages/settings/parts/log-in.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/push-monkey-light-woocommerce/templates/messages/push-monkey-light-woocommerce-big-expiration-notice.php:2
    • > PHP Notice
      Undefined variable: signed_in in wp-content/plugins/push-monkey-light-woocommerce/templates/pages/settings/statistics.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/push-monkey-light-woocommerce/templates/pages/settings/main.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/push-monkey-light-woocommerce/templates/messages/push-monkey-light-woocommerce-review-notice.php:3
    • > PHP Notice
      Undefined variable: signed_in in wp-content/plugins/push-monkey-light-woocommerce/templates/pages/settings/woo-info.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tags: You are using too many tags: 23 tag instead of maximum 10
You can look at the official readme.txt

push-monkey-light-woocommerce/push-monkey-light-woocommerce.php 92% from 13 tests

This is the main PHP file of "Push Monkey Light and Abandoned Cart for WooCommerce" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 411 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected37,048 lines of code in 119 files:
LanguageFilesBlank linesComment linesLines of code
CSS581,41977723,133
JavaScript3144226810,285
PHP214725431,757
SVG500944
Markdown21280557
LESS15715358
JSON10014

PHP code Passed 2 tests

This is a very shot review of 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.24
Average class complexity20.25
▷ Minimum class complexity1.00
▷ Maximum class complexity98.00
Average method complexity2.88
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods82
▷ Static methods11.22%
▷ Public methods82100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants00.00%
▷ Class constants12100.00%
▷ Public constants12100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
77 PNG files occupy 0.57MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/jquery/ui-bg_highlight-soft_75_ffe45c_1x100.png0.39KB0.21KB▼ 45.64%
img/default/plugin-big-expiration-notice.png2.62KB1.92KB▼ 26.80%
img/default/plugin-feature-image-filter.png2.35KB1.39KB▼ 40.91%
img/jstree/32px.png3.05KB2.88KB▼ 5.58%
img/default/bootstrap-colorpicker/alpha.png3.19KB1.68KB▼ 47.45%