Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.10MB] [CPU: ▼8.07ms] Passed 4 tests
A check of server-side resources used by PayPal Pay Now, Buy Now, Donation and Cart Buttons Shortcode
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 37.70 ▼3.62 |
Dashboard /wp-admin | 3.42 ▲0.07 | 46.06 ▼13.98 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 47.34 ▼2.38 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.11 | 87.56 ▼12.30 |
Media Library /wp-admin/upload.php | 3.35 ▲0.11 | 36.60 ▲1.74 |
Paypal Button /wp-admin/options-general.php?page=wpdev-paypal-button | 3.32 | 36.79 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 12 new options
New WordPress options |
---|
can_compress_scripts |
wpdev_paypal_button_lang |
wpdev_paypal_button_display_cc |
widget_recent-posts |
widget_recent-comments |
wpdev_paypal_button_currency |
db_upgraded |
widget_theysaidso_widget |
wpdev_paypal_button_size |
wpdev_paypal_button_add_note |
... |
Browser metrics Passed 4 tests
Checking browser requirements for PayPal Pay Now, Buy Now, Donation and Cart Buttons Shortcode
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.16 ▼0.41 | 1.67 ▲0.11 | 41.30 ▲2.37 |
Dashboard /wp-admin | 2,196 ▲22 | 5.51 ▼0.06 | 80.09 ▼5.44 | 37.55 ▼3.25 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.99 ▼0.04 | 33.44 ▼4.22 | 33.09 ▼5.68 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 22.97 ▼0.14 | 670.46 ▼13.02 | 60.28 ▼1.38 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.21 ▼0.09 | 104.12 ▲6.06 | 45.35 ▲0.95 |
Paypal Button /wp-admin/options-general.php?page=wpdev-paypal-button | 1,655 | 5.62 | 146.36 | 42.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 12 options
- widget_recent-comments
- wpdev_paypal_button_display_cc
- db_upgraded
- wpdev_paypal_button_size
- wpdev_paypal_button_add_note
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- wpdev_paypal_button_lang
- wpdev_paypal_button_currency
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/paypal-pay-buy-donation-and-cart-buttons-shortcode/admin-settings.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/paypal-pay-buy-donation-and-cart-buttons-shortcode/admin-settings.php:8
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=wpdev-paypal-button
- > Network (severe)
https://wpdevsnippets.com/plugin-images/icon_thumb_up.png - Failed to load resource: the server responded with a status of 404 ()
- > GET request to /wp-admin/options-general.php?page=wpdev-paypal-button
- > Network (severe)
https://wpdevsnippets.com/plugin-images/icon_wordpress_blue.png - Failed to load resource: the server responded with a status of 404 ()
- > GET request to /wp-admin/options-general.php?page=wpdev-paypal-button
- > Network (severe)
https://wpdevsnippets.com/plugin-images/icon_doc_find.png - Failed to load resource: the server responded with a status of 404 ()
- > GET request to /wp-admin/options-general.php?page=wpdev-paypal-button
- > Network (severe)
https://wpdevsnippets.com/plugin-images/btn_donate.gif - Failed to load resource: the server responded with a status of 404 ()
- > GET request to /wp-admin/options-general.php?page=wpdev-paypal-button
- > Network (severe)
https://wpdevsnippets.com/plugin-images/icon_person_help.png - Failed to load resource: the server responded with a status of 404 ()
- > GET request to /wp-admin/options-general.php?page=wpdev-paypal-button
- > Other (severe) in unknown
chrome-error://chromewebdata/ - Refused to display 'https://developers.google.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Tags: There are too many tags (12 tag instead of maximum 10)
paypal-pay-buy-donation-and-cart-buttons-shortcode/paypal-pay-buy-cart-buttons.php 85% from 13 tests
The main PHP file in "PayPal Pay Now, Buy Now, Donation and Cart Buttons Shortcode" ver. 1.7 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("paypal-pay-buy-donation-and-cart-buttons-shortcode.php" instead of "paypal-pay-buy-cart-buttons.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 154 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin665 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 98 | 26 | 496 |
Markdown | 1 | 65 | 0 | 169 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 25 | |
▷ Named functions | 25 | 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
There are no PNG files in this plugin