Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼4.41ms] Passed 4 tests
Analyzing server-side resources used by OPEN-BRAIN Gateway for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 38.30 ▼4.03 |
Dashboard /wp-admin | 3.42 ▲0.11 | 46.64 ▼1.06 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 46.12 ▼1.13 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 84.67 ▼8.51 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 32.53 ▼3.97 |
Server storage [IO: ▲0.62MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for OPEN-BRAIN Gateway for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.73 ▼0.95 | 1.75 ▲0.06 | 40.14 ▼8.26 |
Dashboard /wp-admin | 2,206 ▲18 | 5.80 ▲0.86 | 100.65 ▼6.94 | 40.81 ▼1.96 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 1.97 ▼0.04 | 37.57 ▼2.81 | 34.97 ▼1.63 |
Add New Post /wp-admin/post-new.php | 1,534 ▼8 | 23.38 ▲4.86 | 630.97 ▼3.25 | 52.81 ▼2.35 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.20 ▼0.04 | 95.81 ▼5.99 | 41.10 ▼4.43 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
Please fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/open-brain-gateway/index.php
- > /wp-content/plugins/open-brain-gateway/class-gateway-hp.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: No descriptions were found for these screenshots #1, #2 in open-brain-gateway/assets to your readme.txt
open-brain-gateway/index.php 85% from 13 tests
The entry point to "OPEN-BRAIN Gateway for WooCommerce" version 4.0.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("open-brain-gateway.php" instead of "index.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 370 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin559 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 12 | 28 | 559 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 64.00 |
▷ Minimum class complexity | 64.00 |
▷ Maximum class complexity | 64.00 |
Average method complexity | 8.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.58MB with 0.34MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/screenshot-1.png | 356.82KB | 144.79KB | ▼ 59.42% |
assets/images/screenshot-2.png | 230.35KB | 93.68KB | ▼ 59.33% |
assets/images/logo.png | 5.40KB | 2.17KB | ▼ 59.82% |