Benchmarks
Plugin footprint 83% from 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.04MB] [CPU: ▼2.10ms] Passed 4 tests
Server-side resources used by Stripe Payments by Buy Now Plus - Best WordPress Stripe Credit Card Payments Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 40.38 ▼2.09 |
Dashboard /wp-admin | 3.34 ▲0.04 | 49.18 ▲2.63 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 43.47 ▼1.51 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 87.80 ▼7.42 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 36.32 ▲2.65 |
Buy Now Plus /wp-admin/options-general.php?page=buy-now-plus | 3.22 | 30.78 |
Server storage [IO: ▲0.02MB] [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: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Stripe Payments by Buy Now Plus - Best WordPress Stripe Credit Card Payments Plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 13.24 ▼1.50 | 1.65 ▼0.14 | 44.38 ▲1.12 |
Dashboard /wp-admin | 2,212 ▲24 | 6.01 ▲1.12 | 100.63 ▼5.50 | 43.85 ▼1.69 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.06 ▲0.05 | 32.80 ▼4.95 | 34.29 ▲1.48 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 22.99 ▼0.18 | 618.54 ▼26.78 | 51.72 ▼1.80 |
Media Library /wp-admin/upload.php | 1,394 ▲9 | 4.23 ▲0.11 | 95.58 ▼8.00 | 41.23 ▼0.63 |
Buy Now Plus /wp-admin/options-general.php?page=buy-now-plus | 785 | 2.03 | 23.92 | 25.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=buy-now-plus
- > Notice in wp-content/plugins/buy-now-plus/class-bnp-settings.php+29
Trying to access array offset on value of type bool
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
The following issues need your attention
- 5× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/buy-now-plus/class-bnp-buttons.php
- > /wp-content/plugins/buy-now-plus/views/settings-template.php
- > /wp-content/plugins/buy-now-plus/main.php
- > /wp-content/plugins/buy-now-plus/class-bnp-editor.php
- > /wp-content/plugins/buy-now-plus/class-bnp-settings.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 19 tag instead of maximum 10
buy-now-plus/main.php 92% from 13 tests
"Stripe Payments by Buy Now Plus - Best WordPress Stripe Credit Card Payments Plugin" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("buy-now-plus.php" instead of "main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin238 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 52 | 19 | 159 |
JavaScript | 1 | 9 | 4 | 54 |
CSS | 1 | 1 | 0 | 25 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 3.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 93.75% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 6.25% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/BUY_128X128_white.png | 3.90KB | 2.51KB | ▼ 35.51% |
images/BUY_64X64_white.png | 1.92KB | 1.35KB | ▼ 29.71% |