Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/donate-to-website/donate-to-website.php+65
Trying to get property 'pid' of non-object
Server metrics [RAM: ▲0.01MB] [CPU: ▼304.22ms] Passed 4 tests
This is a short check of server-side resources used by Donate to Website - Collect donations on your website
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.06 | 58.31 ▲3.51 |
Dashboard /wp-admin | 3.45 ▲0.04 | 39.49 ▲0.80 |
Posts /wp-admin/edit.php | 3.67 ▲0.03 | 41.34 ▼2.20 |
Add New Post /wp-admin/post-new.php | 6.91 ▼0.06 | 98.24 ▼1,218.99 |
Media Library /wp-admin/upload.php | 3.32 ▲0.02 | 29.86 ▲3.94 |
Settings /wp-admin/admin.php?page=donate2website_settings | 3.56 | 32.84 |
Donate to Website Plugin /wp-admin/admin.php?page=donate2website | 3.56 | 35.57 |
Server storage [IO: ▲3.49MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 38 new files
Database: 1 new table, 1 new option
New tables |
---|
wp_d2wplugins_settings |
New WordPress options |
---|
my_db_version |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Donate to Website - Collect donations on your website
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,946 ▲192 | 16.33 ▲0.74 | 10.58 ▲4.66 | 3.26 ▲0.46 |
Dashboard /wp-admin | 2,909 ▲48 | 6.26 ▲0.09 | 117.56 ▼19.31 | 163.36 ▼12.52 |
Posts /wp-admin/edit.php | 2,719 ▲25 | 3.24 ▲0.00 | 64.92 ▼1.08 | 143.44 ▼4.69 |
Add New Post /wp-admin/post-new.php | 1,680 ▲19 | 16.39 ▼0.03 | 411.99 ▼15.26 | 165.07 ▼5.19 |
Media Library /wp-admin/upload.php | 1,726 ▲28 | 5.48 ▲0.01 | 145.23 ▼2.37 | 194.08 ▲1.55 |
Settings /wp-admin/admin.php?page=donate2website_settings | 1,298 | 2.39 | 53.59 | 169.94 |
Donate to Website Plugin /wp-admin/admin.php?page=donate2website | 1,289 | 2.50 | 54.88 | 112.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_d2wplugins_settings
- This plugin does not fully uninstall, leaving 1 option in the database
- my_db_version
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=donate2website
- > Notice in wp-content/plugins/donate-to-website/includes/dashboard.php+39
Undefined variable: site_code
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_head() in wp-content/plugins/donate-to-website/includes/settings.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_head() in wp-content/plugins/donate-to-website/includes/dashboard.php:1
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=donate2website
- > Network (severe)
wp-content/plugins/donate-to-website/css/plugins.css?ver=5.9.2 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=donate2website
- > Network (severe)
wp-content/themes/twentytwentytwo/js/jquery.min.js?ver=3.6.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: monetize, donate, blog, loopwi, gateway...
donate-to-website/donate-to-website.php 92% from 13 tests
The main file in "Donate to Website - Collect donations on your website" v. 2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected11,531 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 9 | 22 | 268 | 8,616 |
SVG | 1 | 1 | 3 | 2,624 |
PHP | 3 | 72 | 51 | 275 |
JavaScript | 4 | 1 | 11 | 16 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo.png | 8.35KB | 4.78KB | ▼ 42.77% |
images/logo-light.png | 4.44KB | 3.26KB | ▼ 26.56% |
images/bitnami.css.png | 8.35KB | 4.78KB | ▼ 42.77% |
images/d2w.png | 7.73KB | 4.58KB | ▼ 40.75% |
images/payment-methods.png | 42.08KB | 3.65KB | ▼ 91.32% |