Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/wp-smart-paypal-payment-or-donation-accept/wp-smart-paypal-payment-or-donation-accept.php+135
Function create_function() is deprecated
Server metrics [RAM: ▼1.94MB] [CPU: ▼53.90ms] Passed 4 tests
A check of server-side resources used by WordPress Smart Paypal Payment or Donation Accept
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.05 ▼1.41 | 4.43 ▼38.12 |
Dashboard /wp-admin | 2.07 ▼1.23 | 5.30 ▼46.74 |
Posts /wp-admin/edit.php | 2.07 ▼1.28 | 5.98 ▼42.66 |
Add New Post /wp-admin/post-new.php | 2.07 ▼3.81 | 7.03 ▼88.07 |
Media Library /wp-admin/upload.php | 2.07 ▼1.16 | 4.84 ▼26.40 |
WP Smart Payment /wp-admin/options-general.php?page=wp_sppd_settings | 2.07 | 5.92 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 37 new options
New WordPress options |
---|
wp_sppd_payment_option_3 |
can_compress_scripts |
wp_sppd_desc |
wp_sppd_payment_option_8 |
wp_sppd_payment_option_price_5 |
widget_wp_sppd_plugin |
wp_sppd_payment_option_6 |
wp_sppd_amount |
wp_sppd_payment_option_2 |
wp_sppd_payment_option_1 |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for WordPress Smart Paypal Payment or Donation Accept
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,891 ▲156 | 13.56 ▼0.73 | 5.62 ▲3.95 | 43.45 ▼3.61 |
Dashboard /wp-admin | 2,210 ▲22 | 4.86 ▼1.02 | 108.55 ▲5.82 | 39.32 ▼6.83 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.03 ▲0.05 | 39.20 ▲2.65 | 33.78 ▼2.41 |
Add New Post /wp-admin/post-new.php | 1,542 ▲28 | 23.35 ▲5.74 | 784.35 ▲112.24 | 66.91 ▲14.22 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.20 ▲0.01 | 99.45 ▼7.07 | 43.89 ▲0.20 |
WP Smart Payment /wp-admin/options-general.php?page=wp_sppd_settings | 1,282 | 1.71 | 25.47 | 28.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/wp-smart-paypal-payment-or-donation-accept/wp-smart-paypal-payment-or-donation-accept.php+135
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_wp_sppd_plugin
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=wp_sppd_settings
- > Deprecated in wp-content/plugins/wp-smart-paypal-payment-or-donation-accept/wp-smart-paypal-payment-or-donation-accept.php+135
Function create_function() is deprecated
- > GET request to /wp-admin/options-general.php?page=wp_sppd_settings
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in wp_sppd_plugin is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/options-general.php?page=wp_sppd_settings
- > Notice in wp-content/plugins/wp-smart-paypal-payment-or-donation-accept/includes/page-options.php+54
Undefined variable: error_found
- > GET request to /wp-admin/options-general.php?page=wp_sppd_settings
- > Notice in wp-content/plugins/wp-smart-paypal-payment-or-donation-accept/includes/page-options.php+62
Undefined variable: success
SRP 0% 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 take a closer look at the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-smart-paypal-payment-or-donation-accept/includes/page-options.php
- > /wp-content/plugins/wp-smart-paypal-payment-or-donation-accept/includes/options.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/wp-smart-paypal-payment-or-donation-accept/includes/options.php:4
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=wp_sppd_settings
- > Network (severe)
var/www/wordpress/wp-content/plugins/wp-smart-paypal-payment-or-donation-accept/js/wp_sppd_script.js - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Tags: There are too many tags (11 tag instead of maximum 10)
wp-smart-paypal-payment-or-donation-accept/wp-smart-paypal-payment-or-donation-accept.php 92% from 13 tests
The entry point to "WordPress Smart Paypal Payment or Donation Accept" version 1.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 217 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected430 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 39 | 19 | 365 |
JavaScript | 2 | 2 | 0 | 61 |
CSS | 2 | 0 | 0 | 4 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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
3 PNG files occupy 0.27MB with 0.14MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/banner-772x250.png | 223.90KB | 131.99KB | ▼ 41.05% |
images/screenshot-2.png | 12.75KB | 5.77KB | ▼ 54.75% |
images/screenshot-1.png | 40.77KB | 18.17KB | ▼ 55.42% |