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
Installer ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼1.32ms] Passed 4 tests
Analyzing server-side resources used by Donations via PayPal
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 47.45 ▲0.72 |
Dashboard /wp-admin | 3.48 ▲0.17 | 52.34 ▲2.55 |
Posts /wp-admin/edit.php | 3.59 ▲0.24 | 55.43 ▲6.07 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 90.87 ▼6.59 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 35.71 ▼1.96 |
PayPal Donations /wp-admin/options-general.php?page=paypal-donations-options | 3.38 | 34.09 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 45 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_paypal_donations |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Donations via PayPal
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.72 ▲0.13 | 2.25 ▲0.46 | 42.52 ▲2.22 |
Dashboard /wp-admin | 2,202 ▲25 | 5.56 ▼0.03 | 86.19 ▼2.94 | 37.77 ▼0.80 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 2.01 ▲0.05 | 34.61 ▼6.38 | 39.83 ▲1.48 |
Add New Post /wp-admin/post-new.php | 1,540 ▲14 | 18.12 ▼4.92 | 617.47 ▼47.99 | 78.21 ▲20.03 |
Media Library /wp-admin/upload.php | 1,407 ▲13 | 4.21 ▲0.02 | 104.32 ▲2.04 | 40.44 ▼6.12 |
PayPal Donations /wp-admin/options-general.php?page=paypal-donations-options | 1,333 | 1.71 | 28.98 | 37.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method PayPalDonations::uninstall() should not be called statically
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/paypal-donations/views/paypal-button.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/paypal-donations/paypal_utility.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/paypal-donations/src/PayPalDonations/Widget.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/paypal-donations/views/admin.php:19
- > PHP Notice
Undefined variable: title_id in wp-content/plugins/paypal-donations/views/widget-form.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/paypal-donations/paypal_utility.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/paypal-donations/views/widget-form.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add a description for screenshot #2 in paypal-donations/assets to your readme.txt
paypal-donations/paypal-donations.php 92% from 13 tests
This is the main PHP file of "Donations via PayPal" version 1.9.10, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 208 characters long)
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
No dangerous file extensions were detected2,614 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 16 | 596 | 852 | 1,436 |
PHP | 9 | 133 | 197 | 1,153 |
JavaScript | 1 | 0 | 0 | 13 |
CSS | 1 | 3 | 0 | 12 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 14.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 2.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 4 | 8.70% |
▷ Public methods | 43 | 93.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 6.52% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 6 | 100.00% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin