Benchmarks
Plugin footprint 83% 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: ▲0.02MB] [CPU: ▼5.83ms] Passed 4 tests
Analyzing server-side resources used by Donation Form Block for Stripe
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 43.91 ▲0.40 |
Dashboard /wp-admin | 3.34 ▼0.01 | 50.17 ▼13.24 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.99 ▲3.80 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 84.95 ▼13.31 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.13 ▲2.83 |
Server storage [IO: ▲1.67MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 46 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Donation Form Block for Stripe
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.61 ▼0.91 | 1.95 ▲0.31 | 44.12 ▲4.25 |
Dashboard /wp-admin | 2,200 ▲12 | 5.79 ▼0.10 | 101.88 ▼8.48 | 40.49 ▼6.87 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.03 ▼0.02 | 36.74 ▲0.49 | 35.89 ▲1.41 |
Add New Post /wp-admin/post-new.php | 6,191 ▲4,672 | 20.11 ▼3.04 | 945.13 ▲338.80 | 39.56 ▼23.36 |
Media Library /wp-admin/upload.php | 1,379 ▼12 | 4.20 ▲0.00 | 98.00 ▼2.79 | 41.59 ▼2.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/donation-block-for-stripe-by-givewp/donation-block-for-stripe.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: donation, block, stripe, fundraise, donate
donation-block-for-stripe-by-givewp/donation-block-for-stripe.php 77% from 13 tests
The primary PHP file in "Donation Form Block for Stripe" version 1.3.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- 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: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("donation-block-for-stripe-by-givewp.php" instead of "donation-block-for-stripe.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,570 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 229 | 467 | 1,053 |
Sass | 2 | 62 | 24 | 294 |
JSON | 4 | 0 | 0 | 114 |
SVG | 10 | 0 | 0 | 105 |
CSS | 1 | 0 | 0 | 2 |
JavaScript | 3 | 0 | 1 | 2 |
PHP code Passed 2 tests
Analyzing 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.42 |
Average class complexity | 11.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 3.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 59 | |
▷ Static methods | 23 | 38.98% |
▷ Public methods | 54 | 91.53% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 8.47% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin