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.02MB] [CPU: ▼290.69ms] Passed 4 tests
An overview of server-side resources used by Charity & Donation for Woocommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 55.50 ▲4.35 |
Dashboard /wp-admin | 3.41 ▲0.00 | 31.47 ▼3.08 |
Posts /wp-admin/edit.php | 3.65 ▲0.00 | 38.76 ▲1.82 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 92.73 ▼1,163.47 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 24.44 ▲1.99 |
Charity & Donation for Woocommerce /wp-admin/admin.php?page=chdntwc-donation-page | 3.10 | 20.11 |
Essential Kit /wp-admin/admin.php?page=chdntwc_kit | 3.10 | 18.07 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 1 new option
New WordPress options |
---|
chdntwc_donation_product |
Browser metrics Passed 4 tests
An overview of browser requirements for Charity & Donation for Woocommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,837 ▲83 | 16.19 ▲0.54 | 5.90 ▼0.10 | 2.10 ▼0.23 |
Dashboard /wp-admin | 2,895 ▲34 | 5.98 ▼0.23 | 120.72 ▼14.90 | 159.79 ▼9.74 |
Posts /wp-admin/edit.php | 2,688 ▼3 | 3.24 ▲0.00 | 65.13 ▼0.35 | 142.98 ▲2.11 |
Add New Post /wp-admin/post-new.php | 1,640 ▼21 | 20.41 ▼2.30 | 414.56 ▼17.50 | 168.79 ▲14.02 |
Media Library /wp-admin/upload.php | 1,730 ▲29 | 5.63 ▲0.14 | 138.41 ▼10.81 | 178.43 ▼8.93 |
Charity & Donation for Woocommerce /wp-admin/admin.php?page=chdntwc-donation-page | 28 | 0.94 | 0.03 | 18.08 |
Essential Kit /wp-admin/admin.php?page=chdntwc_kit | 28 | 0.94 | 0.06 | 18.13 |
Uninstaller [IO: ▲0.09MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 1 option in the database
- chdntwc_donation_product
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
Please take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/charity-donation-for-woocommerce/charity-and-donation-for-woocommerce.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=chdntwc-donation-page
- > Network (severe)
wp-admin/admin.php?page=chdntwc-donation-page - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=chdntwc_kit
- > Network (severe)
wp-admin/admin.php?page=chdntwc_kit - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Contributors: The plugin contributors field is not present
- Screenshots: No descriptions were found for these screenshots #1, #10, #11, #12, #13, #14, #15, #16, #2, #3, #4, #5, #6, #7, #8, #9 in charity-donation-for-woocommerce/assets to your readme.txt
charity-donation-for-woocommerce/charity-and-donation-for-woocommerce.php 85% from 13 tests
The primary PHP file in "Charity & Donation for Woocommerce" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("charity-donation-for-woocommerce.php" instead of "charity-and-donation-for-woocommerce.php")
- Domain Path: The domain path points to a folder that does not exist ("/languages")
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 plugin2,194 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 228 | 17 | 1,658 |
CSS | 2 | 4 | 4 | 410 |
JavaScript | 2 | 19 | 0 | 125 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 28.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 64.00 |
Average method complexity | 4.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 5 | 12.20% |
▷ Public methods | 41 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/star.png | 39.75KB | 10.35KB | ▼ 73.95% |
images/donation-product.png | 23.42KB | 9.19KB | ▼ 60.78% |
images/support.png | 6.44KB | 5.59KB | ▼ 13.09% |
images/review.png | 15.87KB | 11.90KB | ▼ 25.01% |