84% woo-delivery-rider-management

Code Review | Woo Delivery Rider Management

WordPress plugin Woo Delivery Rider Management scored 84% from 54 tests.

About plugin

  • Plugin page: woo-delivery-ride...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.5
  • WordPress version: 6.3.1
  • First release: Apr 8, 2016
  • Latest release: Apr 17, 2016
  • Number of updates: 11
  • Update frequency: every 0.8 days
  • Top authors: nabeelahmed (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 901 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

A check of server-side resources used by Woo Delivery Rider Management
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.22 ▼1.15
Dashboard /wp-admin3.32 ▲0.0147.95 ▲1.63
Posts /wp-admin/edit.php3.37 ▲0.0148.93 ▲2.13
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.91 ▼11.62
Media Library /wp-admin/upload.php3.24 ▲0.0134.18 ▼0.30

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
wcdrm_woocommerce_prompt
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Woo Delivery Rider Management
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.25 ▼0.941.78 ▼0.0945.74 ▼0.13
Dashboard /wp-admin2,210 ▲255.86 ▼0.04100.03 ▼1.4038.32 ▼4.64
Posts /wp-admin/edit.php2,095 ▲61.99 ▼0.0234.96 ▼0.2831.09 ▼1.32
Add New Post /wp-admin/post-new.php1,537 ▲423.22 ▲0.41655.47 ▼32.6163.63 ▲7.06
Media Library /wp-admin/upload.php1,392 ▲44.26 ▲0.04104.57 ▲5.1945.78 ▼0.74

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • wcdrm_woocommerce_prompt
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/woo-delivery-rider-management/includes/class-main.php
    • > /wp-content/plugins/woo-delivery-rider-management/wc-delivery-rider-management.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: delivery rider, delivery, woocommerce, rider, user...

woo-delivery-rider-management/wc-delivery-rider-management.php 92% from 13 tests

Analyzing the main PHP file in "Woo Delivery Rider Management" version 1.0.0
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("woo-delivery-rider-management.php" instead of "wc-delivery-rider-management.php")

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
There were no executable files found in this plugin74 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2373274

PHP code Passed 2 tests

An overview 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.27
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
No PNG images were found in this plugin