Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.28MB] [CPU: ▼1.41ms] Passed 4 tests
This is a short check of server-side resources used by Advanced Forms PayPal Payment Buttons
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.29 | 42.74 ▼4.54 |
Dashboard /wp-admin | 3.58 ▲0.28 | 51.51 ▼4.13 |
Posts /wp-admin/edit.php | 3.70 ▲0.34 | 53.29 ▲3.69 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.28 | 101.63 ▲0.77 |
Media Library /wp-admin/upload.php | 3.50 ▲0.28 | 39.22 ▲2.25 |
Server storage [IO: ▲0.47MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Advanced Forms PayPal Payment Buttons: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 14.18 ▼0.18 | 1.76 ▼0.23 | 40.99 ▼5.02 |
Dashboard /wp-admin | 2,216 ▲36 | 5.55 ▼0.04 | 88.88 ▼8.39 | 41.73 ▲2.25 |
Posts /wp-admin/edit.php | 2,128 ▲28 | 2.18 ▲0.15 | 41.07 ▲2.78 | 35.39 ▼1.62 |
Add New Post /wp-admin/post-new.php | 1,545 ▲9 | 23.05 ▲4.68 | 643.60 ▼9.34 | 54.27 ▼22.99 |
Media Library /wp-admin/upload.php | 1,421 ▲24 | 4.27 ▲0.13 | 102.86 ▼5.51 | 42.98 ▼3.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
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
Good news, no errors were detected
SRP 0% 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
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /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 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
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
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
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
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
advanced-forms-paypal-payment-buttons/advanced-forms-paypal-payment-buttons.php Passed 13 tests
The entry point to "Advanced Forms PayPal Payment Buttons" version 1.0.0 is a PHP file that has certain tags in its header comment area
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
Good job! No executable or dangerous file extensions detected1,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
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
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% |