Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲4.02MB] [CPU: ▲19.38ms] Passed 4 tests
Analyzing server-side resources used by Total Donations
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.81 ▲3.34 | 56.46 ▲17.30 |
Dashboard /wp-admin | 7.54 ▲4.24 | 74.29 ▲23.60 |
Posts /wp-admin/edit.php | 7.60 ▲4.24 | 67.97 ▲16.62 |
Add New Post /wp-admin/post-new.php | 10.16 ▲4.27 | 118.54 ▲20.00 |
Media Library /wp-admin/upload.php | 7.46 ▲4.24 | 69.79 ▲35.05 |
Campaigns /wp-admin/admin.php?page=migla_campaign_page | 7.44 | 62.69 |
Customize Theme /wp-admin/admin.php?page=migla_donation_custom_theme | 7.44 | 62.75 |
Email Settings /wp-admin/admin.php?page=migla_donation_settings_page | 7.44 | 62.76 |
Front End and Securities /wp-admin/admin.php?page=migla_donation_front_settings_page | 7.44 | 58.48 |
Stripe Settings /wp-admin/admin.php?page=migla_stripe_setting_page | 7.47 | 64.49 |
Form Options /wp-admin/admin.php?page=migla_donation_form_options_page | 7.47 | 110.83 |
Paypal Settings /wp-admin/admin.php?page=migla_donation_paypal_settings_page | 7.47 | 72.92 |
Online Donations /wp-admin/admin.php?page=migla_reports_page | 7.45 | 56.61 |
Total Donations /wp-admin/admin.php?page=migla_donation_menu_page | 7.44 | 71.32 |
Help /wp-admin/admin.php?page=migla_donation_help | 7.44 | 56.47 |
Server storage [IO: ▲5.74MB] [DB: ▲0.03MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 295 new files
Database: 12 new tables, 8 new options
New tables |
---|
wp_migla_email |
wp_migla_form_meta |
wp_migla_form_field |
wp_migla_campaign |
wp_migla_languages |
wp_migla_form |
wp_migla_options |
wp_migla_client_log |
wp_migla_donation |
wp_migla_redirect |
... |
New WordPress options |
---|
widget_totaldonations_bar_widget |
widget_totaldonations_circle_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Total Donations
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,090 ▲329 | 16.41 ▲2.04 | 178.23 ▲176.46 | 47.71 ▲7.29 |
Dashboard /wp-admin | 2,302 ▲122 | 5.83 ▲0.18 | 88.17 ▼8.50 | 87.96 ▲47.07 |
Posts /wp-admin/edit.php | 2,224 ▲124 | 2.43 ▲0.47 | 35.83 ▼7.32 | 38.63 ▼3.87 |
Add New Post /wp-admin/post-new.php | 1,784 ▲249 | 21.16 ▲3.05 | 586.27 ▼72.18 | 35.77 ▼38.75 |
Media Library /wp-admin/upload.php | 1,517 ▲117 | 4.40 ▲0.25 | 96.17 ▼12.48 | 85.52 ▲41.15 |
Campaigns /wp-admin/admin.php?page=migla_campaign_page | 1,257 | 2.75 | 41.16 | 90.72 |
Customize Theme /wp-admin/admin.php?page=migla_donation_custom_theme | 3,366 | 3.63 | 84.94 | 107.29 |
Email Settings /wp-admin/admin.php?page=migla_donation_settings_page | 1,374 | 2.66 | 39.26 | 65.36 |
Front End and Securities /wp-admin/admin.php?page=migla_donation_front_settings_page | 1,254 | 2.59 | 31.89 | 57.63 |
Stripe Settings /wp-admin/admin.php?page=migla_stripe_setting_page | 1,577 | 3.67 | 48.18 | 44.71 |
Form Options /wp-admin/admin.php?page=migla_donation_form_options_page | 2,768 | 2.55 | 35.80 | 53.32 |
Paypal Settings /wp-admin/admin.php?page=migla_donation_paypal_settings_page | 1,493 | 3.66 | 47.06 | 48.02 |
Online Donations /wp-admin/admin.php?page=migla_reports_page | 1,067 | 2.40 | 36.51 | 68.31 |
Total Donations /wp-admin/admin.php?page=migla_donation_menu_page | 1,355 | 3.30 | 112.31 | 74.52 |
Help /wp-admin/admin.php?page=migla_donation_help | 962 | 2.19 | 29.71 | 34.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.03MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 12 tables in the database
- wp_migla_options
- wp_migla_email_meta
- wp_migla_client_log
- wp_migla_languages
- wp_migla_redirect
- wp_migla_campaign
- wp_migla_donation
- wp_migla_form_field
- wp_migla_form
- wp_migla_form_meta
- ...
- The uninstall procedure has failed, leaving 8 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_totaldonations_bar_widget
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_totaldonations_circle_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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 fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/total-donations/gateways/stripe/stripe-php-6.43.0/update_certs.php
- > /wp-content/plugins/total-donations/gateways/stripe/stripe-php-6.43.0/build.php
- 104× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/total-donations/gateways/stripe/stripe-php-6.43.0/lib/AlipayAccount.php:13
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/total-donations/gateways/stripe/stripe-php-6.43.0/lib/Coupon.php:26
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/total-donations/gateways/stripe/stripe-php-6.43.0/lib/Review.php:25
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/total-donations/gateways/stripe/stripe-php-6.43.0/lib/OrderReturn.php:20
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\StripeObject' not found in wp-content/plugins/total-donations/gateways/stripe/stripe-php-6.43.0/lib/OrderItem.php:18
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/total-donations/gateways/stripe/stripe-php-6.43.0/lib/BalanceTransaction.php:25
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Error\\Base' not found in wp-content/plugins/total-donations/gateways/stripe/stripe-php-6.43.0/lib/Error/Idempotency.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/total-donations/gateways/stripe/stripe-php-6.43.0/lib/BitcoinReceiver.php:13
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/total-donations/gateways/stripe/stripe-php-6.43.0/lib/ExchangeRate.php:10
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/total-donations/gateways/stripe/stripe-php-6.43.0/lib/Terminal/ConnectionToken.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Tags: You are using too many tags: 17 tag instead of maximum 10
total-donations/migla-donations.php 85% from 13 tests
Analyzing the main PHP file in "Total Donations" version 3.0.8
Please take the time to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("total-donations.php" instead of "migla-donations.php")
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 fix the following items
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/total-donations/gateways/stripe/stripe-php-6.43.0/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 27 | 7,566 | 11,204 | 31,917 |
PHP | 169 | 5,443 | 3,719 | 25,099 |
CSS | 11 | 756 | 193 | 4,960 |
PO File | 2 | 902 | 1,126 | 1,937 |
Sass | 13 | 23 | 24 | 1,256 |
LESS | 13 | 23 | 33 | 1,247 |
Markdown | 2 | 301 | 0 | 681 |
SVG | 1 | 0 | 0 | 520 |
JSON | 1 | 0 | 0 | 37 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 11.87 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 195.00 |
Average method complexity | 3.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 64.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 2 | |
Traits | 7 | |
Classes | 149 | |
▷ Abstract classes | 7 | 4.70% |
▷ Concrete classes | 142 | 95.30% |
▷ Final classes | 0 | 0.00% |
Methods | 657 | |
▷ Static methods | 192 | 29.22% |
▷ Public methods | 610 | 92.85% |
▷ Protected methods | 19 | 2.89% |
▷ Private methods | 28 | 4.26% |
Functions | 76 | |
▷ Named functions | 74 | 97.37% |
▷ Anonymous functions | 2 | 2.63% |
Constants | 509 | |
▷ Global constants | 9 | 1.77% |
▷ Class constants | 500 | 98.23% |
▷ Public constants | 500 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
24 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/back_disabled.png | 1.33KB | 0.60KB | ▼ 55.11% |
assets/images/circle-right-text-right.png | 4.20KB | 1.38KB | ▼ 67.05% |
assets/images/circle-left-text-left.png | 4.10KB | 1.41KB | ▼ 65.74% |
assets/images/details_open.png | 0.86KB | 0.80KB | ▼ 6.92% |
assets/images/circle-no-html-1.png | 4.00KB | 1.28KB | ▼ 68.02% |