Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/paypal-link-sale/widget.php+93
Function create_function() is deprecated
Server metrics [RAM: ▼1.94MB] [CPU: ▼52.92ms] Passed 4 tests
A check of server-side resources used by Paypal Sell Link Ads
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.04 ▼1.42 | 4.45 ▼35.58 |
Dashboard /wp-admin | 2.06 ▼1.24 | 6.29 ▼42.12 |
Posts /wp-admin/edit.php | 2.06 ▼1.29 | 5.45 ▼42.26 |
Add New Post /wp-admin/post-new.php | 2.06 ▼3.82 | 5.16 ▼91.73 |
Media Library /wp-admin/upload.php | 2.06 ▼1.17 | 4.87 ▼30.46 |
Paypal Link Sale /wp-admin/admin.php?page=ppls-stats | 2.06 | 5.41 |
Settings /wp-admin/admin.php?page=ppls-settings | 2.06 | 6.05 |
Server storage [IO: ▲0.30MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 18 new files
Database: 2 new tables, 14 new options
New tables |
---|
wp_pplsorders |
wp_pplsipn |
New WordPress options |
---|
ppls_size |
ppls_term |
ppls_price |
ppls_total |
can_compress_scripts |
ppls_currency |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
Paypal Sell Link Ads: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,881 ▲120 | 14.46 ▲0.08 | 1.86 ▲0.19 | 47.60 ▲4.98 |
Dashboard /wp-admin | 2,262 ▲82 | 5.58 ▼0.07 | 96.02 ▲8.76 | 80.26 ▲35.76 |
Posts /wp-admin/edit.php | 2,132 ▲35 | 2.00 ▼0.02 | 35.05 ▼2.02 | 34.24 ▲1.21 |
Add New Post /wp-admin/post-new.php | 1,573 ▲47 | 22.88 ▼0.35 | 706.18 ▲27.67 | 48.93 ▼10.37 |
Media Library /wp-admin/upload.php | 1,437 ▲34 | 4.20 ▼0.01 | 93.43 ▼9.12 | 64.71 ▲21.88 |
Paypal Link Sale /wp-admin/admin.php?page=ppls-stats | 856 | 1.65 | 23.29 | 24.86 |
Settings /wp-admin/admin.php?page=ppls-settings | 980 | 2.18 | 26.01 | 23.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/paypal-link-sale/widget.php+93
Function create_function() is deprecated
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wp_pplsipn
- wp_pplsorders
- The uninstall procedure has failed, leaving 14 options in the database
- widget_recent-comments
- theysaidso_admin_options
- ppls_price
- ppls_size
- can_compress_scripts
- widget_recent-posts
- ppls_term
- widget_ppls_widget
- ppls_email
- db_upgraded
- ...
Smoke tests 50% 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
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ppls-settings
- > Deprecated in wp-content/plugins/paypal-link-sale/widget.php+93
Function create_function() is deprecated
SRP 50% 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
The following issues need your attention
- 10× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/paypal-link-sale/pages/form.php:2
- > PHP Notice
Undefined variable: pp_url in wp-content/plugins/paypal-link-sale/ipn.php on line 28
- > PHP Fatal error
Uncaught Error: Call to undefined function bloginfo() in wp-content/plugins/paypal-link-sale/pages/thankyou.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/paypal-link-sale/paypal-link-sale.php:83
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/paypal-link-sale/widget.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/paypal-link-sale/admin-menu.php:164
- > PHP Notice
Undefined variable: wpdb in wp-content/plugins/paypal-link-sale/pages/payment.php on line 4
- > PHP Notice
Undefined index: ppls_id in wp-content/plugins/paypal-link-sale/pages/payment.php on line 2
- > PHP Notice
Undefined variable: wpdb in wp-content/plugins/paypal-link-sale/pages/form.php on line 2
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/paypal-link-sale/pages/payment.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Tags: You are using too many tags: 19 tag instead of maximum 10
paypal-link-sale/paypal-link-sale.php 92% from 13 tests
The primary PHP file in "Paypal Sell Link Ads" version 1.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected826 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 10 | 57 | 565 |
PO File | 1 | 60 | 80 | 145 |
CSS | 2 | 1 | 0 | 104 |
JavaScript | 1 | 1 | 1 | 12 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
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 | 13 | |
▷ Named functions | 13 | 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
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/paypal.png | 1.09KB | 0.89KB | ▼ 18.50% |