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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.67ms] Passed 4 tests
An overview of server-side resources used by Forestcoin Payment Gateway for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.58 ▲1.65 |
Dashboard /wp-admin | 3.32 ▲0.02 | 41.80 ▼2.86 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 43.84 ▼3.99 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 85.42 ▼10.00 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 34.53 ▼1.84 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Forestcoin Payment Gateway for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.72 ▲0.72 | 1.79 ▲0.15 | 39.26 ▼1.69 |
Dashboard /wp-admin | 2,195 ▲15 | 5.57 ▼0.05 | 81.64 ▼6.90 | 39.38 ▼1.58 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.04 | 40.23 ▼0.72 | 39.76 ▲6.75 |
Add New Post /wp-admin/post-new.php | 1,526 ▼10 | 23.06 ▲4.76 | 601.13 ▼8.43 | 59.38 ▲1.99 |
Media Library /wp-admin/upload.php | 1,397 ▲3 | 4.22 ▼0.02 | 98.02 ▼14.18 | 41.38 ▼7.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Please take a closer look at the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wc-forestcoin-payment-gateway/admin/partials/wc-fc-payment-gateway-admin-display.php
- > /wp-content/plugins/wc-forestcoin-payment-gateway/public/partials/wc-fc-payment-gateway-public-display.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/wc-forestcoin-payment-gateway/woocommerce/class-wc-fc-wc-payment-gateway.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wc-forestcoin-payment-gateway/woocommerce/wc-fc-payment-gateway-settings-page.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
- Screenshots: A description for screenshot #1 is missing in wc-forestcoin-payment-gateway/assets to your readme.txt
wc-forestcoin-payment-gateway/wc-fc-payment-gateway.php 85% from 13 tests
This is the main PHP file of "Forestcoin Payment Gateway for WooCommerce" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- 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
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wc-forestcoin-payment-gateway.php" instead of "wc-fc-payment-gateway.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
Everything looks great! No dangerous files found in this plugin1,699 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 330 | 687 | 1,325 |
JavaScript | 4 | 299 | 85 | 271 |
CSS | 2 | 64 | 10 | 103 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 106.00 |
Average method complexity | 4.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 63 | |
▷ Static methods | 13 | 20.63% |
▷ Public methods | 46 | 73.02% |
▷ Protected methods | 1 | 1.59% |
▷ Private methods | 16 | 25.40% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 20 | |
▷ Global constants | 20 | 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.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/ic_fc_logo_green.png | 4.61KB | 3.07KB | ▼ 33.47% |
public/img/fc-logo.png | 6.33KB | 2.34KB | ▼ 63.01% |
public/img/app-demo.png | 38.06KB | 16.10KB | ▼ 57.70% |
admin/img/ic_tether_logo_green.png | 2.95KB | 2.34KB | ▼ 20.70% |
admin/img/fc-logo.png | 6.33KB | 2.34KB | ▼ 63.01% |