Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼7.06ms] 75% from 4 tests
A check of server-side resources used by Paypal Donation
The following require your attention
- CPU: Total CPU usage must kept under 500.00ms (currently 1,729.06ms on /wp-admin/options-general.php?page=paypal-donation/paypal-donation.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.00 ▼6.65 |
Dashboard /wp-admin | 3.33 ▲0.02 | 45.38 ▼2.72 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 45.96 ▼3.83 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 87.32 ▼15.05 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.94 ▲1.47 |
Paypal Donation /wp-admin/options-general.php?page=paypal-donation/paypal-donation.php | 4.02 | 1,729.06 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_buffercode_paypal_donation_info |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Paypal Donation: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.26 ▼1.33 | 1.69 ▲0.05 | 39.12 ▼3.27 |
Dashboard /wp-admin | 2,207 ▲16 | 5.83 ▼0.06 | 101.92 ▼5.92 | 40.10 ▼2.48 |
Posts /wp-admin/edit.php | 2,090 ▼2 | 2.06 ▲0.05 | 39.54 ▼3.98 | 38.03 ▲3.26 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.22 ▼0.11 | 659.18 ▼9.63 | 52.57 ▼6.54 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.17 ▼0.04 | 94.88 ▼7.62 | 43.58 ▼2.08 |
Paypal Donation /wp-admin/options-general.php?page=paypal-donation/paypal-donation.php | 1,029 | 1.92 | 25.27 | 28.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_buffercode_paypal_donation_info
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 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/paypal-donation/paypal-donation.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (PayPal Donation below 40 percentage status message), #2 (PayPal Donation between 41 to 75 percentage status message), #3 (PayPal Donation above 75 percentage status message), #4 (PayPal Donation Option page), #5 (PayPal Donation widget page)
paypal-donation/paypal-donation.php Passed 13 tests
The principal PHP file in "Paypal Donation" v. 1.4 is loaded by WordPress automatically on each request
127 characters long description:
This PayPal Donation WordPress Plugin gives high level of flexible to admin to share some of the real information for donation.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected293 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 46 | 15 | 274 |
JavaScript | 1 | 5 | 1 | 19 |
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.24 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 26.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 7.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
3 PNG files occupy 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/1.png | 34.39KB | 13.93KB | ▼ 59.50% |
images/3.png | 37.04KB | 10.69KB | ▼ 71.12% |
images/2.png | 42.83KB | 16.29KB | ▼ 61.97% |