Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/wp-donate/wp-donate.php+13
Only variables should be passed by reference
Server metrics [RAM: ▼1.93MB] [CPU: ▼63.81ms] Passed 4 tests
Server-side resources used by WP Donate
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.39 | 4.55 ▼37.24 |
Dashboard /wp-admin | 2.09 ▼1.25 | 6.28 ▼63.03 |
Posts /wp-admin/edit.php | 2.09 ▼1.26 | 5.86 ▼48.55 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.79 | 6.29 ▼106.42 |
Media Library /wp-admin/upload.php | 2.09 ▼1.14 | 5.97 ▼29.76 |
WP Donate /wp-admin/options-general.php?page=wp_donate | 2.09 | 5.93 |
Server storage [IO: ▲2.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 459 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_donate |
wp_donate_setting |
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
donate_db_version |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for WP Donate
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,906 ▲145 | 13.52 ▼1.03 | 9.17 ▲7.39 | 43.43 ▲4.27 |
Dashboard /wp-admin | 2,226 ▲52 | 5.69 ▲0.04 | 88.50 ▼3.69 | 40.01 ▼1.68 |
Posts /wp-admin/edit.php | 2,125 ▲25 | 2.40 ▲0.39 | 35.25 ▼2.71 | 33.17 ▲2.05 |
Add New Post /wp-admin/post-new.php | 1,549 ▲21 | 22.23 ▼0.88 | 687.34 ▲78.79 | 55.68 ▲2.10 |
Media Library /wp-admin/upload.php | 1,428 ▲25 | 4.33 ▲0.15 | 100.70 ▼0.83 | 41.54 ▼3.40 |
WP Donate /wp-admin/options-general.php?page=wp_donate | 886 | 1.94 | 34.79 | 22.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% 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
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/wp-donate/wp-donate.php+13
Only variables should be passed by reference
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_donate
- wp_donate_setting
- The uninstall procedure has failed, leaving 7 options in the database
- donate_db_version
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=wp_donate
- > Notice in wp-content/plugins/wp-donate/wp-donate.php+13
Only variables should be passed by reference
- > GET request to /wp-admin/options-general.php?page=wp_donate
- > Deprecated in wp-content/plugins/wp-donate/includes/donate-function.php+201
Array and string offset access syntax with curly braces is deprecated
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 take a closer look at the following
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-donate/stripe/vendor/stripe/stripe-php/update_certs.php
- > /wp-content/plugins/wp-donate/stripe/vendor/stripe/stripe-php/examples/oauth.php
- > /wp-content/plugins/wp-donate/stripe/vendor/stripe/stripe-php/build.php
- 372× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/wp-donate/stripe/vendor/stripe/stripe-php/lib/Service/ExchangeRateService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\TestCase' not found in wp-content/plugins/wp-donate/stripe/vendor/stripe/stripe-php/tests/Stripe/ApplePayDomainTest.php:9
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/wp-donate/stripe/vendor/stripe/stripe-php/lib/TaxRate.php:33
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/wp-donate/stripe/vendor/stripe/stripe-php/lib/Service/Identity/VerificationSessionService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\TestCase' not found in wp-content/plugins/wp-donate/stripe/vendor/stripe/stripe-php/tests/Stripe/OrderReturnTest.php:9
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/wp-donate/stripe/vendor/stripe/stripe-php/lib/Service/Issuing/CardholderService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/wp-donate/stripe/vendor/stripe/stripe-php/lib/Service/WebhookEndpointService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/wp-donate/stripe/vendor/stripe/stripe-php/lib/Service/TaxCodeService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\TestCase' not found in wp-content/plugins/wp-donate/stripe/vendor/stripe/stripe-php/tests/Stripe/Service/PaymentMethodServiceTest.php:9
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\TestCase' not found in wp-content/plugins/wp-donate/stripe/vendor/stripe/stripe-php/tests/Stripe/Service/ReviewServiceTest.php:9
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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: There are too many tags (18 tag instead of maximum 10)
- Screenshots: Add a description for screenshot #4 in wp-donate/assets to your readme.txt
wp-donate/wp-donate.php 92% from 13 tests
The entry point to "WP Donate" version 2.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Git Repository: Please do not include Git repositories in your plugin
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Please make sure to remedy the following
- For security reasons, never distribute binary or executable files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/wp-donate/stripe/vendor/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 | 417 | 4,532 | 11,367 | 24,621 |
Markdown | 5 | 716 | 0 | 1,199 |
JavaScript | 4 | 191 | 146 | 1,157 |
CSS | 4 | 120 | 21 | 779 |
JSON | 5 | 3 | 0 | 142 |
YAML | 3 | 28 | 7 | 100 |
XML | 3 | 0 | 0 | 67 |
make | 1 | 8 | 0 | 23 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
Average class complexity | 2.46 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 1.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 26 | |
Interfaces | 9 | |
Traits | 9 | |
Classes | 384 | |
▷ Abstract classes | 10 | 2.60% |
▷ Concrete classes | 374 | 97.40% |
▷ Final classes | 165 | 44.12% |
Methods | 2,047 | |
▷ Static methods | 183 | 8.94% |
▷ Public methods | 1,886 | 92.13% |
▷ Protected methods | 107 | 5.23% |
▷ Private methods | 54 | 2.64% |
Functions | 45 | |
▷ Named functions | 16 | 35.56% |
▷ Anonymous functions | 29 | 64.44% |
Constants | 947 | |
▷ Global constants | 12 | 1.27% |
▷ Class constants | 935 | 98.73% |
▷ Public constants | 935 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.26MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 91.22KB | 36.00KB | ▼ 60.54% |
screenshot-4.png | 66.09KB | 19.55KB | ▼ 70.42% |
stripe/vendor/stripe/stripe-php/tests/data/test.png | 0.09KB | 0.09KB | 0.00% |
screenshot-1.png | 57.75KB | 15.61KB | ▼ 72.97% |
screenshot-2.png | 51.87KB | 19.66KB | ▼ 62.09% |