84% pepro-delivery-stages-for-woocommerce

Code Review | PeproDev Delivery Stages for WooCommerce

WordPress plugin PeproDev Delivery Stages for WooCommerce scored 84% from 54 tests.

About plugin

  • Plugin page: pepro-delivery-st...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 5.9.2
  • First release: Oct 9, 2020
  • Latest release: Jan 26, 2022
  • Number of updates: 11
  • Update frequency: every 43.0 days
  • Top authors: peprodev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 266 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼0.02MB] [CPU: ▼308.12ms] Passed 4 tests

Server-side resources used by PeproDev Delivery Stages for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0154.86 ▼0.69
Dashboard /wp-admin3.41 ▲0.0031.13 ▲0.04
Posts /wp-admin/edit.php3.65 ▲0.0034.40 ▼2.84
Add New Post /wp-admin/post-new.php6.88 ▼0.09102.25 ▼1,228.99
Media Library /wp-admin/upload.php3.30 ▲0.0029.09 ▲3.49

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 42 new files
Database: no new tables, 2 new options
New WordPress options
ppwcss-data
ppwcss-clearunistall

Browser metrics Passed 4 tests

This is an overview of browser requirements for PeproDev Delivery Stages for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲915.30 ▼0.825.67 ▼0.492.27 ▼0.35
Dashboard /wp-admin2,892 ▲346.21 ▲0.09133.36 ▲3.51223.60 ▼23.19
Posts /wp-admin/edit.php2,691 ▼03.23 ▼0.0061.77 ▼3.92207.61 ▲63.36
Add New Post /wp-admin/post-new.php1,668 ▼4018.09 ▼2.21419.99 ▼42.77156.78 ▼57.44
Media Library /wp-admin/upload.php1,701 ▲125.55 ▲0.01138.43 ▲2.16199.36 ▼63.55

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 did not uninstall successfully, leaving 2 options in the database
    • ppwcss-data
    • ppwcss-clearunistall

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/pepro-delivery-stages-for-woocommerce/pepro-wc-delivery-stages.php
    • > /wp-content/plugins/pepro-delivery-stages-for-woocommerce/include/class-setting.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: tracking, delivery status, delivery, shipping tracking, shipping...

pepro-delivery-stages-for-woocommerce/pepro-wc-delivery-stages.php 92% from 13 tests

The main file in "PeproDev Delivery Stages for WooCommerce" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("pepro-delivery-stages-for-woocommerce.php" instead of "pepro-wc-delivery-stages.php")

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
Everything looks great! No dangerous files found in this plugin4,054 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript21711311,465
CSS4196101,137
PHP237251965
PO File1137141419
SVG174063
Markdown1204
HTML1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity48.00
▷ Minimum class complexity6.00
▷ Maximum class complexity90.00
Average method complexity4.03
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods32
▷ Static methods515.62%
▷ Public methods3196.88%
▷ Protected methods00.00%
▷ Private methods13.12%
Functions5
▷ Named functions120.00%
▷ Anonymous functions480.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin