99% woo-local-pickup

Code Review | Woo Local Pickup

WordPress plugin Woo Local Pickup scored 99% from 54 tests.

About plugin

  • Plugin page: woo-local-pickup
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Jul 18, 2017
  • Latest release: Oct 16, 2018
  • Number of updates: 7
  • Update frequency: every 65.0 days
  • Top authors: jaisswetanka (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

500+ active / 4,606 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Woo Local Pickup
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1235.22 ▲13.26
Dashboard /wp-admin3.06 ▲0.0037.38 ▼8.78
Posts /wp-admin/edit.php3.11 ▲0.0043.86 ▲0.50
Add New Post /wp-admin/post-new.php5.42 ▼0.0289.71 ▼586.30
Media Library /wp-admin/upload.php3.00 ▲0.0032.48 ▲1.05

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Woo Local Pickup
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.82 ▲0.319.03 ▼1.5448.12 ▼0.16
Dashboard /wp-admin2,970 ▲335.94 ▲0.00144.21 ▼6.93111.34 ▲5.76
Posts /wp-admin/edit.php2,739 ▼02.72 ▼0.0166.29 ▼9.3195.33 ▼31.35
Add New Post /wp-admin/post-new.php1,615 ▼5721.10 ▲2.29305.22 ▼97.79107.61 ▼18.19
Media Library /wp-admin/upload.php1,807 ▲565.02 ▲0.01158.45 ▼4.23115.26 ▼5.98

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: A description for screenshot #0 is required in woo-local-pickup/assets to your readme.txt
  • Requires at least: Version not formatted correctly
You can look at the official readme.txt

woo-local-pickup/woo-local-pickup.php 92% from 13 tests

"Woo Local Pickup" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 163 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin355 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP5135205298
PO File19957

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity13.50
▷ Minimum class complexity6.00
▷ Maximum class complexity21.00
Average method complexity1.96
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods25
▷ Static methods728.00%
▷ Public methods2080.00%
▷ Protected methods00.00%
▷ Private methods520.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot.png62.93KB27.55KB▼ 56.21%