90% woocommerce-local-pickup-time-select

Code Review | WooCommerce Local Pickup Time Select

WordPress plugin WooCommerce Local Pickup Time Select scored90%from 54 tests.

About plugin

  • Plugin page: woocommerce-local...
  • Plugin version: 1.4.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.0.1
  • WordPress version: 6.3.1
  • First release: May 2, 2014
  • Latest release: Aug 3, 2022
  • Number of updates: 53
  • Update frequency: every 56.9 days
  • Top authors: tnolte (52.83%)mjbanks (41.51%)ndigitals (9.43%)

Code review

54 tests

User reviews

9 reviews

Install metrics

1,000+ active /25,379 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by WooCommerce Local Pickup Time Select
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0045.08 ▼0.54
Dashboard /wp-admin3.31 ▲0.0050.25 ▼5.63
Posts /wp-admin/edit.php3.36 ▲0.0051.11 ▲0.63
Add New Post /wp-admin/post-new.php5.89 ▲0.0096.88 ▲3.97
Media Library /wp-admin/upload.php3.23 ▲0.0036.39 ▼2.23

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WooCommerce Local Pickup Time Select
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.001.71 ▼0.0441.64 ▼5.37
Dashboard /wp-admin2,192 ▲145.49 ▼0.1690.30 ▼26.5841.30 ▼2.98
Posts /wp-admin/edit.php2,097 ▼32.13 ▲0.1539.52 ▼3.9536.74 ▲0.10
Add New Post /wp-admin/post-new.php1,526 ▼023.67 ▲0.58703.50 ▲9.3771.05 ▲15.85
Media Library /wp-admin/upload.php1,403 ▼04.26 ▲0.0896.98 ▼6.1242.30 ▼0.47

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: e-commerce, ecommerce, shipping, checkout fields, wordpress ecommerce...

woocommerce-local-pickup-time-select/woocommerce-local-pickup-time.php 92% from 13 tests

The principal PHP file in "WooCommerce Local Pickup Time Select" v. 1.4.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("woocommerce-local-pickup-time-select.php" instead of "woocommerce-local-pickup-time.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
Everything looks great! No dangerous files found in this plugin1,635 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP8333872910
PO File2199238524
YAML213682
Markdown157075
XML10444

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.34
Average class complexity30.00
▷ Minimum class complexity6.00
▷ Maximum class complexity67.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods58
▷ Static methods813.79%
▷ Public methods5391.38%
▷ Protected methods00.00%
▷ Private methods58.62%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants250.00%
▷ Class constants250.00%
▷ Public constants2100.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