Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/goalcoin-payments-for-woocommerce/wcgoal-utils.php+744
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼1.65MB] [CPU: ▼49.04ms] Passed 4 tests
Analyzing server-side resources used by Goalcoin Payments for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.34 ▼1.12 | 5.70 ▼33.78 |
Dashboard /wp-admin | 2.36 ▼0.95 | 7.47 ▼42.41 |
Posts /wp-admin/edit.php | 2.36 ▼1.00 | 6.88 ▼36.74 |
Add New Post /wp-admin/post-new.php | 2.36 ▼3.53 | 6.75 ▼83.24 |
Media Library /wp-admin/upload.php | 2.36 ▼0.87 | 7.75 ▼29.62 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_wcgoal_goal_addresses |
wp_wcgoal_goal_uuid |
New WordPress options |
---|
can_compress_scripts |
WCGOAL-Settings |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Goalcoin Payments for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲105 | 14.77 ▲0.16 | 1.94 ▲0.06 | 40.69 ▲0.34 |
Dashboard /wp-admin | 2,221 ▲30 | 4.92 ▼0.99 | 97.20 ▼2.22 | 96.22 ▲53.33 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 2.03 ▼0.01 | 33.60 ▼0.30 | 34.50 ▼0.16 |
Add New Post /wp-admin/post-new.php | 1,535 ▲14 | 23.11 ▼0.04 | 768.82 ▲110.70 | 47.81 ▼6.22 |
Media Library /wp-admin/upload.php | 1,403 ▲18 | 4.18 ▼0.22 | 95.38 ▼3.78 | 67.41 ▲18.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/goalcoin-payments-for-woocommerce/wcgoal-utils.php+744
Array and string offset access syntax with curly braces is deprecated
- Zombie tables were found after uninstall: 2 tables
- wp_wcgoal_goal_uuid
- wp_wcgoal_goal_addresses
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- widget_theysaidso_widget
- WCGOAL-Settings
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/goalcoin-payments-for-woocommerce/wcgoal-goalcoin-gateway.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: bitcoin plugin, goalcoins, plugin, bitcoins, accept goalcoin...
goalcoin-payments-for-woocommerce/goalcoingtw-woocommerce.php 85% from 13 tests
The entry point to "Goalcoin Payments for WooCommerce" version 1.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 159 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("goalcoin-payments-for-woocommerce.php" instead of "goalcoingtw-woocommerce.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
There were no executable files found in this plugin2,073 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 487 | 633 | 2,073 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 29.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 6.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 53 | |
▷ Named functions | 53 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 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
6 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 16.24KB | 11.43KB | ▼ 29.58% |
images/goal_buyitnow_32x.png | 8.58KB | 2.81KB | ▼ 67.30% |
images/goalcoin_16x.png | 3.62KB | 0.94KB | ▼ 73.91% |
images/icon.png | 0.68KB | 0.83KB | 0.00% |
assets/screenshot-1.png | 11.60KB | 5.52KB | ▼ 52.43% |