Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.26MB] [CPU: ▼301.49ms] Passed 4 tests
A check of server-side resources used by Advanced Forms PayPal Payment Buttons
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.86 ▲0.35 | 56.03 ▲5.77 |
Dashboard /wp-admin | 3.69 ▲0.28 | 40.18 ▲6.90 |
Posts /wp-admin/edit.php | 3.92 ▲0.28 | 39.02 ▼3.85 |
Add New Post /wp-admin/post-new.php | 7.15 ▲0.18 | 93.96 ▼1,209.74 |
Media Library /wp-admin/upload.php | 3.57 ▲0.27 | 25.26 ▲1.85 |
Server storage [IO: ▲0.47MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Advanced Forms PayPal Payment Buttons: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,793 ▲71 | 15.91 ▲0.25 | 6.13 ▲0.18 | 2.22 ▼0.26 |
Dashboard /wp-admin | 2,923 ▲65 | 6.13 ▼0.02 | 121.90 ▼13.73 | 156.02 ▼4.82 |
Posts /wp-admin/edit.php | 2,716 ▲28 | 3.36 ▼0.00 | 63.78 ▲3.36 | 139.95 ▲5.54 |
Add New Post /wp-admin/post-new.php | 1,683 ▲22 | 16.04 ▼0.16 | 441.99 ▲23.49 | 153.65 ▼0.27 |
Media Library /wp-admin/upload.php | 1,726 ▲28 | 5.49 ▼0.02 | 143.21 ▲4.40 | 191.15 ▲9.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
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 fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/advanced-forms-paypal-payment-buttons/public/partials/advanced-forms-paypal-payment-buttons-public-redirect.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/advanced-forms-paypal-payment-buttons/admin/partials/advanced-forms-paypal-payment-buttons-admin-display.php:16
- > PHP Notice
Undefined variable: form in wp-content/plugins/advanced-forms-paypal-payment-buttons/public/partials/advanced-forms-paypal-payment-buttons-public-redirect.php on line 25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
advanced-forms-paypal-payment-buttons/advanced-forms-paypal-payment-buttons.php Passed 13 tests
The main file in "Advanced Forms PayPal Payment Buttons" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
90 characters long description:
Create PayPal Payment Buttons with the power of Advanced Forms and Advanced Custom Fields.
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
Success! There were no dangerous files found in this plugin1,941 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 225 | 589 | 1,904 |
CSS | 1 | 0 | 6 | 35 |
Markdown | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 6.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 2 | 6.90% |
▷ Public methods | 22 | 75.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 24.14% |
Functions | 5 | |
▷ Named functions | 5 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128x128.png | 4.19KB | 2.41KB | ▼ 42.52% |
assets/icon-256x256.png | 8.68KB | 4.20KB | ▼ 51.59% |