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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.40MB] [CPU: ▼3.62ms] Passed 4 tests
This is a short check of server-side resources used by S2 Donation using Stripe
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.90 ▲0.44 | 39.80 ▼2.76 |
Dashboard /wp-admin | 3.73 ▲0.43 | 57.37 ▲6.86 |
Posts /wp-admin/edit.php | 3.78 ▲0.43 | 47.73 ▼5.80 |
Add New Post /wp-admin/post-new.php | 6.25 ▲0.37 | 87.93 ▼11.69 |
Media Library /wp-admin/upload.php | 3.59 ▲0.36 | 40.19 ▲5.76 |
Donation /wp-admin/admin.php?page=s2-donation | 3.57 | 33.08 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 40 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_s2_donation |
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
s2_donation_db_version |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by S2 Donation using Stripe
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,936 ▲201 | 13.56 ▼0.90 | 4.99 ▲3.33 | 43.89 ▼3.68 |
Dashboard /wp-admin | 2,228 ▲40 | 5.90 ▲0.02 | 113.42 ▼1.07 | 42.82 ▲0.05 |
Posts /wp-admin/edit.php | 2,114 ▲25 | 2.03 ▼0.02 | 39.08 ▼0.74 | 34.23 ▼2.40 |
Add New Post /wp-admin/post-new.php | 1,558 ▲25 | 18.13 ▼5.17 | 633.19 ▼21.13 | 60.71 ▲4.50 |
Media Library /wp-admin/upload.php | 1,407 ▲22 | 4.20 ▼0.04 | 96.41 ▼9.47 | 41.91 ▼1.78 |
Donation /wp-admin/admin.php?page=s2-donation | 978 | 2.09 | 30.08 | 26.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_s2_donation
- Zombie WordPress options were found after uninstall: 7 options
- s2_donation_db_version
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=s2-donation
- > Notice in wp-content/plugins/s2-donation-using-stripe/templates/admin/report-page.php+30
Undefined index: section
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5, #6, #7 in s2-donation-using-stripe/assets to your readme.txt
- Donate link: Please fix this invalid URI: ""
s2-donation-using-stripe/init.php 77% from 13 tests
"S2 Donation using Stripe" version 1.0.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 154 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("s2-donation-using-stripe.php" instead of "init.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin2,400 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 582 | 1,294 | 2,199 |
JavaScript | 4 | 59 | 23 | 112 |
CSS | 5 | 11 | 27 | 89 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 10.80 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 2.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 1 | 6.67% |
▷ Concrete classes | 14 | 93.33% |
▷ Final classes | 0 | 0.00% |
Methods | 106 | |
▷ Static methods | 16 | 15.09% |
▷ Public methods | 102 | 96.23% |
▷ Protected methods | 1 | 0.94% |
▷ Private methods | 3 | 2.83% |
Functions | 21 | |
▷ Named functions | 20 | 95.24% |
▷ Anonymous functions | 1 | 4.76% |
Constants | 15 | |
▷ Global constants | 12 | 80.00% |
▷ Class constants | 3 | 20.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin