Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼4.06ms] Passed 4 tests
An overview of server-side resources used by Payment Gateway Stripe for Easy Digital Downloads
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.09 | 44.39 ▼3.19 |
Dashboard /wp-admin | 61.27 ▲57.93 | 11,964,449.00 ▲11,964,395.04 |
Posts /wp-admin/edit.php | 3.54 ▲0.14 | 51.50 ▲1.24 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.08 | 86.25 ▼16.22 |
Media Library /wp-admin/upload.php | 3.35 ▲0.08 | 39.00 ▲1.94 |
Server storage [IO: ▲0.63MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 63 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Payment Gateway Stripe for Easy Digital Downloads
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.38 ▲0.02 | 2.21 ▲0.69 | 44.20 ▲0.52 |
Dashboard /wp-admin | 2,204 ▲24 | 5.59 ▼0.00 | 84.78 ▼3.67 | 44.00 ▼2.69 |
Posts /wp-admin/edit.php | 2,109 ▲9 | 2.00 ▲0.04 | 35.02 ▼1.32 | 35.98 ▼3.43 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.68 ▲0.21 | 672.67 ▼40.64 | 57.80 ▼2.33 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.13 ▼0.07 | 99.67 ▼8.42 | 44.72 ▼1.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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 take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/payment-gateway-stripe-for-easy-digital-downloads/tests/bootstrap.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/payment-gateway-stripe-for-easy-digital-downloads/tests/test-sample.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: edd, stripe, credit card
payment-gateway-stripe-for-easy-digital-downloads/payment-gateway-stripe-for-easy-digital-downloads.php 92% from 13 tests
The main file in "Payment Gateway Stripe for Easy Digital Downloads" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- 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
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin12,736 lines of code in 54 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 4 | 0 | 0 | 10,087 |
PHP | 18 | 354 | 736 | 1,381 |
JavaScript | 7 | 116 | 165 | 585 |
SVG | 18 | 0 | 9 | 332 |
Bourne Shell | 1 | 21 | 11 | 123 |
YAML | 1 | 7 | 0 | 60 |
Markdown | 1 | 23 | 0 | 55 |
XML | 2 | 4 | 12 | 49 |
Sass | 1 | 7 | 0 | 33 |
CSS | 1 | 0 | 0 | 31 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 16.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 1 | 8.33% |
▷ Concrete classes | 11 | 91.67% |
▷ Final classes | 0 | 0.00% |
Methods | 101 | |
▷ Static methods | 18 | 17.82% |
▷ Public methods | 84 | 83.17% |
▷ Protected methods | 9 | 8.91% |
▷ Private methods | 8 | 7.92% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.00% |
Constants | 9 | |
▷ Global constants | 7 | 77.78% |
▷ Class constants | 2 | 22.22% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin