Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼6.95ms] Passed 4 tests
Server-side resources used by BlueSnap All-in-One Platform
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 36.11 ▼8.74 |
Dashboard /wp-admin | 3.35 ▲0.04 | 45.86 ▲1.90 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 44.55 ▼5.29 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 83.86 ▼13.50 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 33.17 ▼0.27 |
Existing Forms /wp-admin/edit.php?post_type=bls-forms | 3.31 | 34.71 |
Add New /wp-admin/post-new.php?post_type=bls-forms | 3.13 | 33.75 |
BlueSnap settings /wp-admin/options-general.php?page=bls-forms | 3.23 | 33.80 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for BlueSnap All-in-One Platform
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲88 | 13.55 ▼1.20 | 1.75 ▼0.22 | 42.88 ▼2.87 |
Dashboard /wp-admin | 2,237 ▲85 | 4.86 ▼0.82 | 103.69 ▼13.14 | 38.76 ▼3.13 |
Posts /wp-admin/edit.php | 2,120 ▲28 | 2.02 ▼0.02 | 41.71 ▲0.30 | 35.22 ▼1.78 |
Add New Post /wp-admin/post-new.php | 1,560 ▲32 | 23.17 ▲4.90 | 678.02 ▲36.12 | 53.40 ▼15.41 |
Media Library /wp-admin/upload.php | 1,416 ▲28 | 4.13 ▼0.06 | 107.01 ▲0.48 | 46.91 ▲2.46 |
Existing Forms /wp-admin/edit.php?post_type=bls-forms | 1,090 | 1.96 | 30.30 | 29.95 |
Add New /wp-admin/post-new.php?post_type=bls-forms | 2,626 | 3.83 | 65.31 | 42.14 |
BlueSnap settings /wp-admin/options-general.php?page=bls-forms | 923 | 1.71 | 24.33 | 29.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/post-new.php?post_type=bls-forms
- > Notice in wp-content/plugins/bluesnap-payments/includes/class.blf-admin.php+893
Undefined index: bs_fields_nonce
SRP 50% 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
Almost there! Just fix the following items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/bluesnap-payments/includes/shortcodes.php:295
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bluesnap-payments/includes/pluginSettings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bluesnap-payments/includes/postTypes.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: payment, modal forms
bluesnap-payments/bs-forms.php 77% from 13 tests
The main file in "BlueSnap All-in-One Platform" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("bluesnap-payments.php" instead of "bs-forms.php")
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected2,286 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 213 | 151 | 1,713 |
CSS | 1 | 27 | 7 | 306 |
JavaScript | 1 | 33 | 26 | 267 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 40.00 |
▷ Minimum class complexity | 40.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 4.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 16.67% |
Functions | 28 | |
▷ Named functions | 28 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
10 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/AmericanExpress.png | 4.08KB | 2.07KB | ▼ 49.23% |
assets/img/DinersClub.png | 2.40KB | 1.48KB | ▼ 38.50% |
assets/img/JCB.png | 1.87KB | 1.43KB | ▼ 23.41% |
assets/img/Discover.png | 2.72KB | 1.87KB | ▼ 31.27% |
assets/img/Mastercard.png | 1.86KB | 1.34KB | ▼ 27.94% |