Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.07ms] Passed 4 tests
An overview of server-side resources used by BlockBee Cryptocurrency Payment Gateway
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 39.95 ▼1.63 |
Dashboard /wp-admin | 3.33 ▲0.03 | 50.30 ▼6.94 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 50.88 ▲4.31 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 84.71 ▼11.70 |
Media Library /wp-admin/upload.php | 3.26 ▲0.02 | 33.16 ▼4.01 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by BlockBee Cryptocurrency Payment Gateway
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲35 | 14.34 ▼0.02 | 1.77 ▲0.12 | 44.63 ▼0.77 |
Dashboard /wp-admin | 2,202 ▲25 | 5.58 ▲0.03 | 86.43 ▼12.44 | 39.51 ▼6.99 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.99 ▼0.04 | 41.29 ▲2.19 | 38.21 ▲1.17 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 23.15 ▲0.16 | 718.62 ▲50.97 | 65.01 ▲14.01 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.20 ▼0.03 | 108.18 ▼10.80 | 46.00 ▼1.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/blockbee-cryptocurrency-payment-gateway/controllers/BlockBee.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/blockbee-cryptocurrency-payment-gateway/define.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/blockbee-cryptocurrency-payment-gateway/define.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Tags: You are using too many tags: 16 tag instead of maximum 10
- Requires at least: Version not formatted correctly
blockbee-cryptocurrency-payment-gateway/BlockBee.php 85% from 13 tests
This is the main PHP file of "BlockBee Cryptocurrency Payment Gateway" version 1.0.18, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Requires at least: Required version number should only contain digits separated by dots (ex. "7.0" instead of "5")
- Main file name: The principal plugin file should be the same as the plugin slug ("blockbee-cryptocurrency-payment-gateway.php" instead of "BlockBee.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin3,907 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 301 | 37 | 1,534 |
PO File | 4 | 444 | 474 | 1,473 |
CSS | 1 | 92 | 0 | 509 |
JavaScript | 1 | 46 | 0 | 178 |
Markdown | 1 | 62 | 0 | 151 |
SVG | 3 | 0 | 0 | 62 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 90.50 |
▷ Minimum class complexity | 44.00 |
▷ Maximum class complexity | 137.00 |
Average method complexity | 5.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 9 | 23.08% |
▷ Public methods | 36 | 92.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 7.69% |
Functions | 12 | |
▷ Named functions | 10 | 83.33% |
▷ Anonymous functions | 2 | 16.67% |
Constants | 3 | |
▷ Global constants | 3 | 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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
static/files/blockbee_logo.png | 12.48KB | 6.40KB | ▼ 48.73% |