Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- The plugin did not install without errors
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
Server metrics [RAM: ▲0.15MB] [CPU: ▼12.05ms] Passed 4 tests
This is a short check of server-side resources used by Dynamic Donations
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.27 ▲0.81 | 43.85 ▲2.25 |
Dashboard /wp-admin | 4.19 ▲0.88 | 49.89 ▼0.44 |
Posts /wp-admin/edit.php | 4.24 ▲0.88 | 51.17 ▲2.89 |
Add New Post /wp-admin/post-new.php | 3.99 ▼1.89 | 39.67 ▼52.89 |
Media Library /wp-admin/upload.php | 4.05 ▲0.82 | 39.37 ▲5.74 |
Server storage [IO: ▲3.40MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 524 new files
Database: 4 new tables, 7 new options
New tables |
---|
dydo_subscriptions |
dydo_onetime_donations |
dydo_gateways |
dydo_subscription_donations |
New WordPress options |
---|
dydo_options |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Dynamic Donations
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,081 ▲294 | 16.69 ▲2.34 | 178.26 ▲176.14 | 108.41 ▲64.52 |
Dashboard /wp-admin | 2,230 ▲56 | 5.57 ▼0.08 | 86.36 ▼13.96 | 37.23 ▼6.39 |
Posts /wp-admin/edit.php | 2,137 ▲37 | 2.03 ▲0.01 | 36.58 ▼2.21 | 34.40 ▼2.35 |
Add New Post /wp-admin/post-new.php | 1,539 ▲8 | 23.31 ▲0.39 | 652.36 ▲19.59 | 58.20 ▲6.98 |
Media Library /wp-admin/upload.php | 1,437 ▲43 | 4.19 ▼0.06 | 97.04 ▼0.95 | 43.56 ▲2.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 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
- The uninstall procedure failed, leaving 4 tables in the database
- dydo_gateways
- dydo_subscriptions
- dydo_onetime_donations
- dydo_subscription_donations
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- dydo_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/dynamic-donations/vendor/stripe/stripe-php/build.php
- > /wp-content/plugins/dynamic-donations/vendor/stripe/stripe-php/update_certs.php
- > /wp-content/plugins/dynamic-donations/includes/admin/views/dydo-admin-display.php
- 236× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/dynamic-donations/vendor/stripe/stripe-php/lib/Service/FinancialConnections/SessionService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/dynamic-donations/vendor/stripe/stripe-php/lib/Service/PaymentMethodService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/dynamic-donations/vendor/stripe/stripe-php/lib/BalanceTransaction.php:32
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/dynamic-donations/vendor/stripe/stripe-php/lib/TaxRate.php:32
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Exception\\OAuth\\OAuthErrorException' not found in wp-content/plugins/dynamic-donations/vendor/stripe/stripe-php/lib/Exception/OAuth/InvalidScopeException.php:8
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/dynamic-donations/vendor/stripe/stripe-php/lib/OrderReturn.php:26
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/dynamic-donations/vendor/stripe/stripe-php/lib/Service/Issuing/AuthorizationService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/dynamic-donations/vendor/stripe/stripe-php/lib/Service/AccountService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/dynamic-donations/vendor/stripe/stripe-php/lib/LoginLink.php:12
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/dynamic-donations/vendor/stripe/stripe-php/lib/Service/Issuing/CardholderService.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
8 plugin tags: donations, donate, stripe, recurring donations, recurring...
dynamic-donations/dydo.php 92% from 13 tests
The main file in "Dynamic Donations" v. 1.2.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("dynamic-donations.php" instead of "dydo.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Almost there! Just fix the following issues
- Do not include executable or dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/dynamic-donations/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 | 314 | 2,773 | 11,019 | 12,272 |
JavaScript | 150 | 827 | 245 | 8,970 |
JSON | 5 | 0 | 0 | 3,753 |
CSS | 5 | 417 | 51 | 1,892 |
Markdown | 4 | 697 | 0 | 1,069 |
HTML | 2 | 10 | 18 | 121 |
SVG | 17 | 0 | 0 | 65 |
XML | 1 | 0 | 0 | 31 |
make | 1 | 9 | 0 | 27 |
YAML | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 3.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 85.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 30 | |
Interfaces | 11 | |
Traits | 8 | |
Classes | 274 | |
▷ Abstract classes | 12 | 4.38% |
▷ Concrete classes | 262 | 95.62% |
▷ Final classes | 0 | 0.00% |
Methods | 1,022 | |
▷ Static methods | 231 | 22.60% |
▷ Public methods | 920 | 90.02% |
▷ Protected methods | 34 | 3.33% |
▷ Private methods | 68 | 6.65% |
Functions | 39 | |
▷ Named functions | 25 | 64.10% |
▷ Anonymous functions | 14 | 35.90% |
Constants | 779 | |
▷ Global constants | 17 | 2.18% |
▷ Class constants | 762 | 97.82% |
▷ Public constants | 762 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin