Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼1.11ms] Passed 4 tests
Analyzing server-side resources used by Beanstream for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 43.93 ▲4.62 |
Dashboard /wp-admin | 3.34 ▲0.03 | 56.36 ▲3.06 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.90 ▼2.79 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 86.31 ▼8.93 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 39.37 ▲4.23 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Beanstream for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.33 ▼0.02 | 1.71 ▼0.25 | 44.13 ▲2.24 |
Dashboard /wp-admin | 2,192 ▲12 | 5.57 ▼0.05 | 84.31 ▼3.92 | 38.78 ▼0.79 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.02 ▼0.05 | 39.00 ▼2.35 | 35.19 ▼3.24 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.12 ▲0.03 | 741.49 ▲31.65 | 65.33 ▲7.05 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.17 ▲0.00 | 112.52 ▲6.71 | 47.90 ▲3.55 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (The standard credit card form on the checkout page.), #2 (Beanstream admin settings)
beanstream-gateway-for-woocommerce/beanstream-for-woocommerce.php 92% from 13 tests
"Beanstream for WooCommerce" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("beanstream-gateway-for-woocommerce.php" instead of "beanstream-for-woocommerce.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin443 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 119 | 249 | 424 |
Markdown | 1 | 5 | 0 | 11 |
CSS | 1 | 2 | 0 | 8 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 3.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 25 | |
▷ Static methods | 4 | 16.00% |
▷ Public methods | 18 | 72.00% |
▷ Protected methods | 6 | 24.00% |
▷ Private methods | 1 | 4.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
3 PNG files occupy 0.10MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 53.28KB | 26.12KB | ▼ 50.97% |
assets/images/credits.png | 6.19KB | 3.36KB | ▼ 45.68% |
screenshot-1.png | 43.51KB | 16.81KB | ▼ 61.36% |