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 gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼7.50ms] Passed 4 tests
Server-side resources used by Digital Goods for WooCommerce Checkout
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.90 ▲0.72 |
Dashboard /wp-admin | 3.34 ▼0.00 | 46.15 ▼14.23 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 47.07 ▼0.33 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 83.37 ▼9.96 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 31.50 ▼5.48 |
Server storage [IO: ▲4.46MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 221 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Digital Goods for WooCommerce Checkout
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲81 | 14.17 ▼0.20 | 1.94 ▲0.37 | 43.64 ▲3.14 |
Dashboard /wp-admin | 2,208 ▲31 | 5.52 ▼0.15 | 85.31 ▼11.40 | 39.06 ▲1.83 |
Posts /wp-admin/edit.php | 2,093 ▼10 | 1.98 ▲0.03 | 34.76 ▼5.97 | 33.88 ▼2.46 |
Add New Post /wp-admin/post-new.php | 1,540 ▲14 | 23.36 ▼0.19 | 649.84 ▼45.80 | 57.65 ▲2.85 |
Media Library /wp-admin/upload.php | 1,416 ▲16 | 4.15 ▼0.05 | 94.07 ▼17.89 | 42.24 ▼5.89 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: Please a description for screenshot #4 in woo-checkout-for-digital-goods/assets to your readme.txt
woo-checkout-for-digital-goods/woo-checkout-for-digital-goods.php 92% from 13 tests
The main PHP file in "Digital Goods for WooCommerce Checkout" ver. 3.7.2 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Requires at least: Required version does not match the one declared in readme.txt ("5.0" instead of "4.5")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin37,006 lines of code in 164 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 134 | 8,287 | 17,883 | 35,019 |
PO File | 5 | 551 | 681 | 1,348 |
CSS | 18 | 24 | 36 | 341 |
JavaScript | 6 | 50 | 74 | 292 |
SVG | 1 | 0 | 0 | 6 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
The following items need your attention
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 79.03 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 58 | |
▷ Abstract classes | 2 | 3.45% |
▷ Concrete classes | 56 | 96.55% |
▷ Final classes | 0 | 0.00% |
Methods | 1,317 | |
▷ Static methods | 201 | 15.26% |
▷ Public methods | 912 | 69.25% |
▷ Protected methods | 17 | 1.29% |
▷ Private methods | 388 | 29.46% |
Functions | 117 | |
▷ Named functions | 116 | 99.15% |
▷ Anonymous functions | 1 | 0.85% |
Constants | 151 | |
▷ Global constants | 104 | 68.87% |
▷ Class constants | 47 | 31.13% |
▷ Public constants | 47 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 1.05MB with 0.64MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/getting-started/Getting_Started_04.png | 153.84KB | 45.22KB | ▼ 70.60% |
admin/images/woo-digital-goods-checkout-icon.png | 8.57KB | 3.12KB | ▼ 63.56% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
admin/images/getting-started/Getting_Started_01.png | 272.23KB | 95.85KB | ▼ 64.79% |
admin/images/getting-started/Getting_Started_03.png | 426.96KB | 149.75KB | ▼ 64.93% |