84% woo-laundry-pickup-delivery-service

Code Review | Laundry pickup & delivery Service for WooCommerce

WordPress plugin Laundry pickup & delivery Service for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: woo-laundry-picku...
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.1.1
  • WordPress version: 6.3.1
  • First release: Oct 12, 2018
  • Latest release: Nov 17, 2022
  • Number of updates: 20
  • Update frequency: every 74.9 days
  • Top authors: mdalabar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /2,868 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.21MB] [CPU: ▼0.77ms] Passed 4 tests

Server-side resources used by Laundry pickup & delivery Service for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2148.04 ▲7.75
Dashboard /wp-admin3.51 ▲0.2056.91 ▲7.64
Posts /wp-admin/edit.php3.62 ▲0.2648.30 ▼0.54
Add New Post /wp-admin/post-new.php6.11 ▲0.2286.32 ▼10.36
Media Library /wp-admin/upload.php3.43 ▲0.2034.61 ▲0.20
Holiday settings /wp-admin/admin.php?page=byconsolewoospd_holiday_settings3.4034.86
WCLaundry Service /wp-admin/admin.php?page=byclaundryservice_settings3.4033.36

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 47 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Laundry pickup & delivery Service for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,977 ▲22014.83 ▲0.278.59 ▲6.3044.09 ▼2.26
Dashboard /wp-admin2,244 ▲535.88 ▲0.07112.57 ▲6.5742.17 ▼4.88
Posts /wp-admin/edit.php2,133 ▲442.75 ▲0.7241.73 ▲4.1632.02 ▼2.44
Add New Post /wp-admin/post-new.php1,546 ▲1223.56 ▲0.53699.87 ▲54.1038.21 ▼12.84
Media Library /wp-admin/upload.php1,432 ▲445.23 ▲1.06101.96 ▲0.5441.79 ▼3.78
Holiday settings /wp-admin/admin.php?page=byconsolewoospd_holiday_settings6,2483.1675.2226.09
WCLaundry Service /wp-admin/admin.php?page=byclaundryservice_settings1,0872.6332.6222.48

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

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

SRP 50% from 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
Please fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-laundry-pickup-delivery-service/inc/byconsolewclaundryservice_holiday-setting.php:259
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-laundry-pickup-delivery-service/inc/byconsolewclaundryservice_admin.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: laundry plugin, pickup delivery, woocommerce laundry service, woocommerce laundromat, laundry pickup delivery...

woo-laundry-pickup-delivery-service/ByConsoleWCLaundryService.php 85% from 13 tests

Analyzing the main PHP file in "Laundry pickup & delivery Service for WooCommerce" version 1.0.3
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 500 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-laundry-pickup-delivery-service.php" instead of "ByConsoleWCLaundryService.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin17,535 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript63,3162,26715,065
CSS7115921,535
PHP4917102935

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity29.00
▷ Minimum class complexity29.00
▷ Maximum class complexity29.00
Average method complexity5.67
▷ Minimum method complexity1.00
▷ Maximum method complexity8.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%
Functions30
▷ Named functions30100.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
27 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-bg_glass_65_ffffff_1x400.png0.20KB0.09KB▼ 57.49%
css/images/ui-bg_flat_0_aaaaaa_40x100.png0.21KB0.08KB▼ 58.96%
css/images/ui-icons_a83300_256x240.png4.44KB4.17KB▼ 6.02%
css/images/ui-bg_highlight-soft_80_eeeeee_1x100.png0.27KB0.13KB▼ 51.45%
css/images/ui-icons_4b8e0b_256x240.png4.44KB4.17KB▼ 6.02%