Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- This plugin did not install gracefully
- > Notice in wp-content/plugins/lifeline-donation/vendor/webinane/webinane-commerce/includes/Classes/Webinane.php+263
Trying to access array offset on value of type bool
Server metrics [RAM: ▲1.00MB] [CPU: ▲2.29ms] Passed 4 tests
This is a short check of server-side resources used by Lifeline Donation
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.27 ▲0.81 | 55.46 ▲11.20 |
Dashboard /wp-admin | 4.92 ▲1.61 | 66.24 ▲9.70 |
Posts /wp-admin/edit.php | 4.99 ▲1.63 | 68.65 ▲20.57 |
Add New Post /wp-admin/post-new.php | 5.83 ▼0.06 | 64.19 ▼25.59 |
Media Library /wp-admin/upload.php | 4.92 ▲1.70 | 46.66 ▲13.85 |
Donations /wp-admin/edit.php?post_type=orders | 4.97 | 50.24 |
Add New /wp-admin/post-new.php?post_type=cause | 5.82 | 56.99 |
Add New /wp-admin/post-new.php?post_type=project | 5.82 | 57.71 |
All Projects /wp-admin/edit.php?post_type=project | 4.97 | 45.41 |
Lifeline Donation /wp-admin/admin.php?page=wp-commerce-settings | 4.90 | 58.27 |
Category /wp-admin/edit-tags.php?taxonomy=project_cat&post_type=project | 4.92 | 46.83 |
Dashboard /wp-admin/admin.php?page=wp-commerce-dashboard | 4.90 | 45.15 |
Categories /wp-admin/edit-tags.php?taxonomy=cause_cat&post_type=cause | 4.92 | 47.47 |
All Causes /wp-admin/edit.php?post_type=cause | 4.97 | 47.46 |
Extensions /wp-admin/admin.php?page=wp-commerce-extensions | 4.90 | 46.60 |
Server storage [IO: ▲10.83MB] [DB: ▲0.13MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 1,605 new files
Database: 7 new tables, 15 new options
New tables |
---|
wp_wpcommerce_customer_meta |
wp_wpcommerce_order_items |
wp_wpcommerce_sessions |
wp_wpcommerce_customers |
wp_wpcommerce_log |
wp_wpcommerce_payment_tokenmeta |
wp_wpcommerce_payment_tokens |
New WordPress options |
---|
wpcm_user_data |
_wpcommerce_settings |
theysaidso_admin_options |
widget_wi_urgent_cause |
widget_wi_urgent_campaigns |
widget_wi_donor_of_month |
widget_wi_top_donors |
can_compress_scripts |
widget_recent-comments |
widget_wi_donors_list |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Lifeline Donation
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,507 ▲772 | 22.69 ▲8.39 | 53.74 ▲51.64 | 46.08 ▼5.69 |
Dashboard /wp-admin | 2,709 ▲524 | 9.08 ▲4.01 | 190.65 ▲76.30 | 55.69 ▲4.19 |
Posts /wp-admin/edit.php | 2,542 ▲453 | 6.73 ▲4.77 | 110.02 ▲73.83 | 37.88 ▲2.77 |
Add New Post /wp-admin/post-new.php | 6,581 ▲5,048 | 22.38 ▼0.62 | 985.51 ▲281.66 | 38.24 ▼23.77 |
Media Library /wp-admin/upload.php | 1,724 ▲339 | 7.97 ▲3.70 | 140.98 ▲29.67 | 47.08 ▼2.23 |
Donations /wp-admin/edit.php?post_type=orders | 1,558 | 6.66 | 93.18 | 30.68 |
Add New /wp-admin/post-new.php?post_type=cause | 6,935 | 25.05 | 995.85 | 105.98 |
Add New /wp-admin/post-new.php?post_type=project | 6,852 | 24.53 | 855.50 | 62.20 |
All Projects /wp-admin/edit.php?post_type=project | 1,569 | 6.55 | 92.26 | 30.04 |
Lifeline Donation /wp-admin/admin.php?page=wp-commerce-settings | 5,872 | 29.71 | 138.54 | 59.84 |
Category /wp-admin/edit-tags.php?taxonomy=project_cat&post_type=project | 1,718 | 7.29 | 85.97 | 30.38 |
Dashboard /wp-admin/admin.php?page=wp-commerce-dashboard | 1,670 | 8.76 | 134.41 | 101.40 |
Categories /wp-admin/edit-tags.php?taxonomy=cause_cat&post_type=cause | 1,715 | 7.29 | 81.91 | 31.80 |
All Causes /wp-admin/edit.php?post_type=cause | 1,569 | 6.59 | 88.68 | 28.10 |
Extensions /wp-admin/admin.php?page=wp-commerce-extensions | 1,530 | 8.59 | 127.76 | 26.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.13MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie tables detected upon uninstall: 7 tables
- wp_wpcommerce_payment_tokenmeta
- wp_wpcommerce_payment_tokens
- wp_wpcommerce_order_items
- wp_wpcommerce_customers
- wp_wpcommerce_log
- wp_wpcommerce_sessions
- wp_wpcommerce_customer_meta
- The uninstall procedure has failed, leaving 15 options in the database
- widget_recent-comments
- widget_wi_urgent_campaigns
- can_compress_scripts
- wpcm_user_data
- _wpcommerce_settings
- widget_wi_top_donors
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- ...
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=project
- > User deprecated in wp-includes/functions.php+5828
Hook block_categories is deprecated since version 5.8.0! Use block_categories_all instead.
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
The following issues need your attention
- 24× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/lifeline-donation/shortcodes/output/wi_donation_parallax4.php
- > /wp-content/plugins/lifeline-donation/shortcodes/output/wi_donation_campaigns4.php
- > /wp-content/plugins/lifeline-donation/vendor/webinane/webinane-commerce/templates/admin/settings.php
- > /wp-content/plugins/lifeline-donation/shortcodes/output/wi_donation_campaigns1.php
- > /wp-content/plugins/lifeline-donation/vendor/webinane/webinane-commerce/templates/emails/layouts/template2.php
- > /wp-content/plugins/lifeline-donation/shortcodes/output/wi_donation_parallax2.php
- > /wp-content/plugins/lifeline-donation/shortcodes/output/wi_donation_campaigns2.php
- > /wp-content/plugins/lifeline-donation/shortcodes/output/wi_donation_template.php
- > /wp-content/plugins/lifeline-donation/shortcodes/output/wi_donation_campaigns5.php
- > /wp-content/plugins/lifeline-donation/vendor/illuminate/pagination/resources/views/semantic-ui.blade.php
- 854× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\Core\\PPXmlMessage' not found in wp-content/plugins/lifeline-donation/vendor/paypal/merchant-sdk-php/lib/PayPal/EBLBaseComponents/GetBillingAgreementCustomerDetailsResponseDetailsType.php:9
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\Core\\PPXmlMessage' not found in wp-content/plugins/lifeline-donation/vendor/paypal/merchant-sdk-php/lib/PayPal/EBLBaseComponents/UpdateRecurringPaymentsProfileRequestDetailsType.php:9
- > PHP Fatal error
Trait 'Rakit\\Validation\\Traits\\TranslationsTrait' not found in wp-content/plugins/lifeline-donation/vendor/rakit/validation/src/Validator.php on line 5
- > PHP Fatal error
Trait 'Carbon\\Traits\\Localization' not found in wp-content/plugins/lifeline-donation/vendor/nesbot/carbon/src/Carbon/Traits/Options.php on line 26
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lifeline-donation/blocks/parallax.php:61
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\Core\\PPBaseService' not found in wp-content/plugins/lifeline-donation/vendor/paypal/merchant-sdk-php/lib/PayPal/Service/PayPalAPIInterfaceServiceService.php:112
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\Core\\PPXmlMessage' not found in wp-content/plugins/lifeline-donation/vendor/paypal/merchant-sdk-php/lib/PayPal/PayPalAPI/MassPayReq.php:9
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\PayPalAPI\\DoExpressCheckoutPaymentResponseType' not found in wp-content/plugins/lifeline-donation/vendor/paypal/merchant-sdk-php/lib/PayPal/PayPalAPI/DoUATPExpressCheckoutPaymentResponseType.php:7
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\Core\\PPXmlMessage' not found in wp-content/plugins/lifeline-donation/vendor/paypal/merchant-sdk-php/lib/PayPal/EBLBaseComponents/DoReferenceTransactionRequestDetailsType.php:9
- > PHP Fatal error
Trait 'Carbon\\Traits\\Cast' not found in wp-content/plugins/lifeline-donation/vendor/nesbot/carbon/src/Carbon/Traits/Mutability.php on line 21
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-commerce-settings
- > Console-api (severe) in wp-content/plugins/lifeline-donation/vendor/webinane/webinane-commerce/assets/js/common/vue.js?ver=1696258781+633:16
[Vue warn]: Unknown custom element: \u003Ccomponent> - did you register the component correctly? For recursive components, make sure to provide the \"name\" option.\n\nfound in\n\n---> \u003CElRadioGroup> at packages/radio/src/radio-group.vue\n \u003CElFormItem> at packages/form/src/form-item.vue\n \u003CFields>\n \u003CElCol>\n \u003CElRow>\n \u003CElForm> at packages/form/src/form.vue\n \u003CFields>\n \u003CElTabPane> at packages/tabs/src/tab-pane.vue\n \u003CElTabs> at packages/tabs/src/tabs.vue\n \u003CElTabPane> at packages/tabs/src/tab-pane.vue\n \u003CElTabs> at packages/tabs/src/tabs.vue\n \u003CSettings>\n \u003CRoot>
- > GET request to /wp-admin/admin.php?page=wp-commerce-settings
- > Network (severe)
index.php/wp-json/webinane-commerce/v1/countries/null/states - Failed to load resource: the server responded with a status of 400 (Bad Request)
Optimizations
Plugin configuration 93% 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
Attributes that require attention:
- Screenshots: A description for screenshot #6 is required in lifeline-donation/assets to your readme.txt
lifeline-donation/lifeline-donation.php 92% from 13 tests
The entry point to "Lifeline Donation" version 1.2.6 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 429 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin128,835 lines of code in 1,488 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,223 | 19,689 | 62,377 | 87,828 |
CSS | 37 | 1,686 | 229 | 15,543 |
JavaScript | 42 | 1,344 | 1,901 | 12,659 |
JSON | 162 | 5 | 0 | 8,646 |
XSD | 3 | 92 | 48 | 2,803 |
Markdown | 7 | 194 | 0 | 455 |
HTML | 2 | 28 | 0 | 411 |
SVG | 5 | 1 | 7 | 301 |
Blade | 5 | 11 | 19 | 136 |
XML | 1 | 0 | 0 | 46 |
YAML | 1 | 0 | 0 | 7 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 158)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 7.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 337.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 158.00 |
Code structure | ||
---|---|---|
Namespaces | 130 | |
Interfaces | 127 | |
Traits | 56 | |
Classes | 900 | |
▷ Abstract classes | 30 | 3.33% |
▷ Concrete classes | 870 | 96.67% |
▷ Final classes | 32 | 3.68% |
Methods | 6,397 | |
▷ Static methods | 1,107 | 17.30% |
▷ Public methods | 5,147 | 80.46% |
▷ Protected methods | 1,050 | 16.41% |
▷ Private methods | 200 | 3.13% |
Functions | 627 | |
▷ Named functions | 248 | 39.55% |
▷ Anonymous functions | 379 | 60.45% |
Constants | 183 | |
▷ Global constants | 22 | 12.02% |
▷ Class constants | 161 | 87.98% |
▷ Public constants | 157 | 97.52% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
37 PNG files occupy 0.73MB with 0.40MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/2cr.png | 2.92KB | 0.24KB | ▼ 91.69% |
assets/images/bg-hands.png | 622.77KB | 170.18KB | ▼ 72.67% |
assets/images/paypal-icon.png | 2.03KB | 1.22KB | ▼ 40.12% |
vendor/webinane/webinane-commerce/assets/images/icons/menu-icon4.png | 1.61KB | 1.06KB | ▼ 34.12% |
vendor/webinane/webinane-commerce/assets/images/offline-icon.png | 1.40KB | 0.91KB | ▼ 34.98% |