Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼291.05ms] Passed 4 tests
A check of server-side resources used by WooCommerce Cash On Pickup
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.02 | 72.96 ▲8.47 |
Dashboard /wp-admin | 3.42 ▲0.01 | 36.23 ▼6.12 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 45.73 ▲1.94 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 107.64 ▼1,161.83 |
Media Library /wp-admin/upload.php | 3.30 ▲0.01 | 37.58 ▲1.83 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce Cash On Pickup
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,795 ▲41 | 15.90 ▲0.13 | 9.67 ▲2.64 | 3.16 ▲0.09 |
Dashboard /wp-admin | 2,895 ▲34 | 6.09 ▼0.06 | 139.10 ▼38.03 | 180.57 ▼14.37 |
Posts /wp-admin/edit.php | 2,685 ▼6 | 3.24 ▼0.00 | 77.70 ▲1.79 | 181.64 ▲2.05 |
Add New Post /wp-admin/post-new.php | 1,674 ▲35 | 22.24 ▲1.97 | 535.63 ▼59.23 | 194.67 ▼26.10 |
Media Library /wp-admin/upload.php | 1,695 ▲3 | 5.50 ▼0.04 | 188.91 ▼15.91 | 222.38 ▼32.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Screenshots: Screenshot #1 (Cash on Pickup settings page) image not found
wc-cash-on-pickup/wc-cash-on-pickup.php Passed 13 tests
The main PHP script in "WooCommerce Cash On Pickup" version 1.6 is automatically included on every request by WordPress
70 characters long description:
A WooCommerce Extension that adds the payment gateway "Cash On Pickup"
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin372 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 77 | 168 | 288 |
PO File | 1 | 27 | 31 | 75 |
XML | 1 | 0 | 0 | 9 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 60.00 |
▷ Minimum class complexity | 60.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 5.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 53.85% |
▷ Protected methods | 1 | 7.69% |
▷ Private methods | 5 | 38.46% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 38.03KB | 16.21KB | ▼ 57.37% |