Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼8.07ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce Cash On Pickup
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 37.45 ▲2.15 |
Dashboard /wp-admin | 3.32 ▼0.03 | 44.33 ▼16.20 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.30 ▼5.31 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 85.46 ▼10.63 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.11 ▼0.15 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce Cash On Pickup
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.72 ▲0.37 | 1.59 ▼0.26 | 38.50 ▼2.57 |
Dashboard /wp-admin | 2,195 ▲17 | 5.52 ▼0.15 | 83.85 ▼21.86 | 38.11 ▼1.85 |
Posts /wp-admin/edit.php | 2,097 ▼6 | 2.01 ▼0.01 | 38.89 ▼5.10 | 34.55 ▼5.71 |
Add New Post /wp-admin/post-new.php | 1,526 ▼4 | 23.02 ▼0.14 | 692.28 ▲41.75 | 58.03 ▼5.40 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.20 ▲0.10 | 93.60 ▼22.32 | 39.55 ▼9.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: Screenshot #1 (Cash on Pickup settings page) image missing
wc-cash-on-pickup/wc-cash-on-pickup.php Passed 13 tests
The primary PHP file in "WooCommerce Cash On Pickup" version 1.7.0 is used by WordPress to initiate all plugin functionality
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 review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected379 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 83 | 196 | 295 |
PO File | 1 | 27 | 31 | 75 |
XML | 1 | 0 | 0 | 9 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 57.00 |
▷ Minimum class complexity | 57.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 5.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.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 | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.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% |