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: ▲1.09MB] [CPU: ▼3.54ms] Passed 4 tests
A check of server-side resources used by PayPal For Easy Digital Downloads (EDD)
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.46 ▲0.99 | 28.98 ▼8.00 |
Dashboard /wp-admin | 4.43 ▲1.12 | 46.91 ▲1.07 |
Posts /wp-admin/edit.php | 4.46 ▲1.11 | 49.46 ▲3.41 |
Add New Post /wp-admin/post-new.php | 7.14 ▲1.25 | 75.26 ▼10.65 |
Media Library /wp-admin/upload.php | 4.36 ▲1.14 | 40.04 ▲6.68 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for PayPal For Easy Digital Downloads (EDD)
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,899 ▲138 | 13.53 ▼0.84 | 9.03 ▲7.37 | 38.79 ▼3.82 |
Dashboard /wp-admin | 2,213 ▲36 | 4.93 ▼0.65 | 93.54 ▲4.68 | 38.53 ▼1.95 |
Posts /wp-admin/edit.php | 2,105 ▲23 | 2.34 ▲0.36 | 40.36 ▲4.33 | 36.71 ▼0.99 |
Add New Post /wp-admin/post-new.php | 1,546 ▲18 | 23.10 ▼0.21 | 678.92 ▲43.79 | 64.89 ▲3.96 |
Media Library /wp-admin/upload.php | 1,422 ▲28 | 4.26 ▲0.06 | 92.54 ▼5.29 | 42.38 ▼5.70 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% 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
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/pal-for-edd/admin/partials/pal-for-edd-admin-display.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pal-for-edd/public/partials/pal-for-edd-public-display.php:108
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 97% 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 your attention:
- Tags: You are using too many tags: 21 tag instead of maximum 10
pal-for-edd/pal-for-edd.php Passed 13 tests
The main PHP file in "PayPal For Easy Digital Downloads (EDD)" ver. 1.0.6 adds more information about the plugin and also serves as the entry point for this plugin
39 characters long description:
PayPal For Easy Digital Downloads (EDD)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected5,096 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 655 | 630 | 4,485 |
JavaScript | 3 | 88 | 112 | 559 |
CSS | 2 | 0 | 4 | 52 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 59.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 435.00 |
Average method complexity | 5.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 185 | |
▷ Static methods | 3 | 1.62% |
▷ Public methods | 178 | 96.22% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 3.78% |
Functions | 42 | |
▷ Named functions | 42 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/image/button1.png | 8.04KB | 2.70KB | ▼ 66.37% |
public/images/paypal.png | 7.42KB | 3.34KB | ▼ 54.94% |
admin/image/button2.png | 7.52KB | 4.76KB | ▼ 36.65% |