Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼7.35ms] Passed 4 tests
An overview of server-side resources used by WP Paypal Donate
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 35.19 ▼7.05 |
Dashboard /wp-admin | 3.37 ▲0.07 | 42.84 ▼5.07 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 45.65 ▼3.95 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 86.34 ▼11.74 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.34 ▼5.52 |
WP Paypal Donate /wp-admin/options-general.php?page=wpd-settings | 3.29 | 32.23 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
wpd-saved-forms |
Browser metrics Passed 4 tests
WP Paypal Donate: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 14.48 ▼0.06 | 1.81 ▼0.10 | 44.69 ▼2.02 |
Dashboard /wp-admin | 2,212 ▲24 | 4.84 ▼1.06 | 108.84 ▲1.14 | 38.83 ▼3.49 |
Posts /wp-admin/edit.php | 2,095 ▲3 | 2.04 ▲0.04 | 42.32 ▲5.51 | 35.27 ▲1.42 |
Add New Post /wp-admin/post-new.php | 1,519 ▼14 | 23.29 ▲0.14 | 610.04 ▼41.67 | 59.65 ▼3.02 |
Media Library /wp-admin/upload.php | 1,397 ▲12 | 4.15 ▼0.06 | 98.92 ▼3.04 | 42.52 ▼1.31 |
WP Paypal Donate /wp-admin/options-general.php?page=wpd-settings | 1,347 | 2.26 | 29.24 | 35.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- wpd-saved-forms
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
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)
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=wpd-settings
- > Notice in wp-content/plugins/wp-paypal-donate/views/settings.php+198
Undefined index: return
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_posts() in wp-content/plugins/wp-paypal-donate/views/settings.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/wp-paypal-donate/views/forms-selector.php:19
- > PHP Notice
Undefined variable: savedForms in wp-content/plugins/wp-paypal-donate/views/forms-selector.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-paypal-donate/wp-paypal-donate.php:21
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=wpd-settings
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at Object.pagesdropdown (/wp-content/plugins/wp-paypal-donate/assets/admin/js/wp-paypal-donate.js?ver=3.5.2:12:30)\n at Object.init (/wp-content/plugins/wp-paypal-donate/assets/admin/js/wp-paypal-donate.js?ver=3.5.2:7:17)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/wp-paypal-donate/assets/admin/js/wp-paypal-donate.js?ver=3.5.2:33:11)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/options-general.php?page=wpd-settings
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).live is not a function
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: donate, wordpress donations, donations, paypal form, paypal
wp-paypal-donate/wp-paypal-donate.php Passed 13 tests
"WP Paypal Donate" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
58 characters long description:
receive donations with your paypal account in a few steps!
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin573 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 98 | 32 | 501 |
JavaScript | 2 | 12 | 0 | 59 |
Markdown | 1 | 8 | 0 | 12 |
CSS | 1 | 0 | 8 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 36.00 |
▷ Minimum class complexity | 36.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.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 | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
There are no PNG files in this plugin