Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼1.78ms] Passed 4 tests
Server-side resources used by PayPal Digital Downloads
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 41.80 ▲2.29 |
Dashboard /wp-admin | 3.40 ▲0.10 | 50.29 ▼1.59 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 44.43 ▼6.70 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 94.79 ▼1.12 |
Media Library /wp-admin/upload.php | 3.32 ▲0.10 | 36.10 ▲2.97 |
Digital Downloads /wp-admin/options-general.php?page=easy-paypal-digital-download | 3.29 | 30.65 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
wpepdd_my_plugin_notice_shown |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
wpepdd_settingsoptions |
Browser metrics Passed 4 tests
An overview of browser requirements for PayPal Digital Downloads
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲102 | 13.29 ▼1.11 | 2.42 ▲0.72 | 39.53 ▼9.08 |
Dashboard /wp-admin | 2,210 ▲22 | 5.79 ▼0.10 | 99.98 ▲1.71 | 39.01 ▼3.40 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▼0.04 | 37.74 ▼2.53 | 32.36 ▼2.70 |
Add New Post /wp-admin/post-new.php | 1,627 ▲113 | 23.08 ▲5.55 | 664.53 ▼27.66 | 65.03 ▼1.83 |
Media Library /wp-admin/upload.php | 1,386 ▲1 | 4.15 ▲0.02 | 95.72 ▼15.74 | 42.56 ▼1.87 |
Digital Downloads /wp-admin/options-general.php?page=easy-paypal-digital-download | 1,353 | 2.07 | 33.69 | 39.84 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- wpepdd_settingsoptions
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Please fix the following
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/easy-paypal-digital-downloads/include/paypalfunctions.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/easy-paypal-digital-downloads/include/paypalfunctions.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/easy-paypal-digital-downloads/include/paypalfunctions.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/easy-paypal-digital-downloads/paypal-digital-downloads.php:139
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/easy-paypal-digital-downloads/include/cancel.php:3
- > 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 96% from 29 tests
readme.txt Passed 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
5 plugin tags: downloads, digital downloads, paypal, digital goods, shop
easy-paypal-digital-downloads/paypal-digital-downloads.php 92% from 13 tests
"PayPal Digital Downloads" version 1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("easy-paypal-digital-downloads.php" instead of "paypal-digital-downloads.php")
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
Success! There were no dangerous files found in this plugin871 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 463 | 54 | 871 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 22 | |
▷ Named functions | 22 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin