Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.16MB] [CPU: ▲0.72ms] Passed 4 tests
An overview of server-side resources used by FundEngine – Donation and Crowdfunding Platform
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 46.24 ▲5.86 |
Dashboard /wp-admin | 3.44 ▲0.14 | 55.82 ▲2.75 |
Posts /wp-admin/edit.php | 3.56 ▲0.21 | 56.71 ▲6.28 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.29 | 92.52 ▼4.59 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 38.35 ▼1.15 |
Reports /wp-admin/edit.php?post_type=wp-fundraising&page=report | 3.32 | 36.46 |
Categories /wp-admin/edit-tags.php?taxonomy=wfp-categories&post_type=wp-fundraising | 3.36 | 38.31 |
Tags /wp-admin/edit-tags.php?taxonomy=wfp-tags&post_type=wp-fundraising | 3.36 | 45.11 |
Settings /wp-admin/edit.php?post_type=wp-fundraising&page=settings | 3.40 | 37.30 |
Add Campaign /wp-admin/post-new.php?post_type=wp-fundraising | 3.56 | 52.81 |
Donations /wp-admin/edit.php?post_type=wp-fundraising&page=donations | 3.55 | 36.70 |
All Campaigns /wp-admin/edit.php?post_type=wp-fundraising | 3.41 | 40.72 |
Server storage [IO: ▲7.43MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 572 new files
Database: 2 new tables, 8 new options
New tables |
---|
wp_wdp_fundraising_meta |
wp_wdp_fundraising |
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
wfp_general_options_data |
can_compress_scripts |
widget_recent-comments |
wfp_fundraising_version |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for FundEngine – Donation and Crowdfunding Platform
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,065 ▲304 | 14.55 ▲0.26 | 13.77 ▲12.09 | 52.69 ▲12.88 |
Dashboard /wp-admin | 2,294 ▲114 | 5.29 ▼0.40 | 92.81 ▲2.19 | 72.78 ▲34.20 |
Posts /wp-admin/edit.php | 2,219 ▲119 | 2.39 ▲0.37 | 40.27 ▲4.46 | 62.12 ▲21.66 |
Add New Post /wp-admin/post-new.php | 1,637 ▲104 | 23.71 ▲0.59 | 705.64 ▲16.62 | 38.20 ▼17.84 |
Media Library /wp-admin/upload.php | 1,506 ▲106 | 4.88 ▲0.71 | 103.27 ▼12.12 | 81.75 ▲33.10 |
Reports /wp-admin/edit.php?post_type=wp-fundraising&page=report | 1,956 | 3.58 | 40.12 | 67.30 |
Categories /wp-admin/edit-tags.php?taxonomy=wfp-categories&post_type=wp-fundraising | 1,390 | 2.32 | 29.75 | 63.67 |
Tags /wp-admin/edit-tags.php?taxonomy=wfp-tags&post_type=wp-fundraising | 1,371 | 2.63 | 35.30 | 59.99 |
Settings /wp-admin/edit.php?post_type=wp-fundraising&page=settings | 962 | 1.77 | 12.30 | 32.75 |
Add Campaign /wp-admin/post-new.php?post_type=wp-fundraising | 2,863 | 3.69 | 49.48 | 56.99 |
Donations /wp-admin/edit.php?post_type=wp-fundraising&page=donations | 1,335 | 2.23 | 35.57 | 48.71 |
All Campaigns /wp-admin/edit.php?post_type=wp-fundraising | 1,229 | 2.76 | 35.56 | 62.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_wdp_fundraising
- wp_wdp_fundraising_meta
- The uninstall procedure has failed, leaving 8 options in the database
- wfp_fundraising_version
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- wfp_general_options_data
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 15× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/wp-fundraising-donation/views/public/fundraising/single-page/include/partials/amount-in-radio.php
- > /wp-content/plugins/wp-fundraising-donation/apps/payment/autoload.php
- > /wp-content/plugins/wp-fundraising-donation/apps/gallery.php
- > /wp-content/plugins/wp-fundraising-donation/apps/menu.php
- > /wp-content/plugins/wp-fundraising-donation/views/public/donation/include/content/amount-in-radio.php
- > /wp-content/plugins/wp-fundraising-donation/apps/elementor/widgets/listing.php
- > /wp-content/plugins/wp-fundraising-donation/payment-module/views/include/payment-popup-box.php
- > /wp-content/plugins/wp-fundraising-donation/views/public/fundraising/single-page/include/partials/limit_details.php
- > /wp-content/plugins/wp-fundraising-donation/apps/elementor/widgets/donate.php
- > /wp-content/plugins/wp-fundraising-donation/apps/payment/setup.php
- 402× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/wp-fundraising-donation/apps/payment/application/stripe/stripe-php/lib/Service/EventService.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/wp-fundraising-donation/views/admin/fundraising/reports/include/goal-reports.php:3
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/wp-fundraising-donation/views/public/fundraising/single-page/include/partials/amount-in-radio.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/wp-fundraising-donation/apps/payment/application/stripe/stripe-php/lib/Service/BalanceTransactionService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/wp-fundraising-donation/apps/payment/application/stripe/stripe-php/lib/Service/Sigma/ScheduledQueryRunService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/wp-fundraising-donation/apps/payment/application/stripe/stripe-php/lib/Service/Issuing/TransactionService.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/wp-fundraising-donation/views/public/fundraising/dynamic-page/checkout.php:4
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/wp-fundraising-donation/apps/payment/application/stripe/stripe-php/lib/PaymentMethod.php:57
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/wp-fundraising-donation/apps/payment/application/stripe/stripe-php/lib/Subscription.php:56
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/wp-fundraising-donation/views/public/donation/donation-page-short-code.php:18
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=wp-fundraising
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:11743 Uncaught Error: Syntax error, unrecognized expression: .xs-donate-metabox-div > div#038;page=settings
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (fundraisng design), #2 (fundraisng added from backend), #3 (Reward added from backend), #4 (Updates added from backend), #5 (Campaign list from front-end), #6 (User information from front-end), #7 (User address from front-end), #8 (Crowdfunding open from front-end), #9 (Crowdfunding reward from front-end), #10 (simple donate button), #11 (Donation form 1), #12 (Donation form 2), #13 (Donation setup), #14 (Donation level)
- Tags: Please delete some tags, you are using 20 tag instead of maximum 10
wp-fundraising-donation/wp-fundraising.php 77% from 13 tests
Analyzing the main PHP file in "FundEngine – Donation and Crowdfunding Platform" version 1.6.4
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-fundraising-donation.php" instead of "wp-fundraising.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Description: Keep the plugin description shorter than 140 characters (currently 226 characters long)
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Please make sure to remedy the following
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/wp-fundraising-donation/apps/payment/application/stripe/stripe-php/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 466 | 7,994 | 13,774 | 40,302 |
Markdown | 2 | 785 | 0 | 1,550 |
SVG | 8 | 0 | 6 | 1,387 |
Sass | 1 | 87 | 13 | 607 |
JSON | 1 | 0 | 0 | 48 |
XML | 1 | 14 | 50 | 31 |
CSS | 30 | 0 | 17 | 30 |
JavaScript | 23 | 0 | 20 | 24 |
PHP code Passed 2 tests
A short review 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.33 |
Average class complexity | 5.48 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 456.00 |
Average method complexity | 2.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 52 | |
Interfaces | 9 | |
Traits | 10 | |
Classes | 307 | |
▷ Abstract classes | 11 | 3.58% |
▷ Concrete classes | 296 | 96.42% |
▷ Final classes | 1 | 0.34% |
Methods | 1,234 | |
▷ Static methods | 259 | 20.99% |
▷ Public methods | 1,105 | 89.55% |
▷ Protected methods | 56 | 4.54% |
▷ Private methods | 73 | 5.92% |
Functions | 42 | |
▷ Named functions | 18 | 42.86% |
▷ Anonymous functions | 24 | 57.14% |
Constants | 1,128 | |
▷ Global constants | 4 | 0.35% |
▷ Class constants | 1,124 | 99.65% |
▷ Public constants | 1,124 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
14 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/admin/images/menu-icon.png | 1.70KB | 0.95KB | ▼ 43.84% |
views/welcome/image/screenshot-welcome.png | 32.01KB | 12.43KB | ▼ 61.18% |
assets/admin/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.32KB | 0.18KB | ▼ 44.00% |
assets/admin/images/ui-bg_glass_75_dadada_1x400.png | 0.32KB | 0.16KB | ▼ 50.46% |
assets/admin/images/ui-bg_glass_75_e6e6e6_1x400 (1).png | 0.32KB | 0.15KB | ▼ 53.40% |