Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.79MB] [CPU: ▼33.26ms] Passed 4 tests
An overview of server-side resources used by Donation Block For PayPal
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.14 | 46.01 ▼0.20 |
Dashboard /wp-admin | 3.16 ▼0.18 | 28.13 ▼40.15 |
Posts /wp-admin/edit.php | 3.17 ▼0.20 | 39.37 ▼9.18 |
Add New Post /wp-admin/post-new.php | 3.16 ▼2.73 | 25.89 ▼75.70 |
Media Library /wp-admin/upload.php | 3.16 ▼0.07 | 22.83 ▼8.01 |
Donatione Record /wp-admin/admin.php?page=pdb_list | 3.17 | 25.59 |
Setting /wp-admin/admin.php?page=pdb_setting | 3.17 | 25.10 |
Server storage [IO: ▲0.55MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 43 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_pdb_paypal_doantion_block |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Donation Block For PayPal: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,238 ▲477 | 21.75 ▲7.80 | 12.79 ▲10.99 | 42.17 ▼0.22 |
Dashboard /wp-admin | 2,434 ▲260 | 11.23 ▲5.70 | 266.87 ▲174.02 | 44.84 ▲3.36 |
Posts /wp-admin/edit.php | 2,356 ▲256 | 11.09 ▲9.15 | 92.19 ▲54.35 | 32.52 ▼6.52 |
Add New Post /wp-admin/post-new.php | 6,506 ▲4,980 | 28.66 ▲5.52 | 816.70 ▲173.85 | 39.74 ▼17.48 |
Media Library /wp-admin/upload.php | 1,660 ▲260 | 11.67 ▲7.50 | 157.02 ▲62.33 | 75.21 ▲28.46 |
Donatione Record /wp-admin/admin.php?page=pdb_list | 1,205 | 11.29 | 102.97 | 60.47 |
Setting /wp-admin/admin.php?page=pdb_setting | 1,360 | 10.74 | 88.32 | 34.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
- Zombie tables detected upon uninstall: 1 table
- wp_pdb_paypal_doantion_block
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=pdb_setting
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
SRP 0% 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 fix the following
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/donations-block/public/partials/donations-block-public-display.php
- > /wp-content/plugins/donations-block/public/ajax-submit.php
- > /wp-content/plugins/donations-block/admin/partials/donations-block-admin-display.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/donations-block/admin/class-donations-block-admin.php:635
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: You are using too many tags: 11 tag instead of maximum 10
donations-block/donations-block.php Passed 13 tests
This is the main PHP file of "Donation Block For PayPal" version 2.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
80 characters long description:
Create your own PayPal block as many as you want as per your need in simple way.
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
Everything looks great! No dangerous files found in this plugin1,379 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 156 | 533 | 694 |
JavaScript | 5 | 33 | 63 | 550 |
CSS | 3 | 5 | 10 | 96 |
SVG | 11 | 0 | 0 | 39 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 4.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 1.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 2 | 6.90% |
▷ Public methods | 24 | 82.76% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.24% |
Functions | 7 | |
▷ Named functions | 7 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/total-donation.png | 2.19KB | 1.22KB | ▼ 44.50% |
public/images/Group 72.png | 28.27KB | 9.15KB | ▼ 67.64% |