Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼8.46ms] Passed 4 tests
This is a short check of server-side resources used by WooCommerce Payment Gateway - Inspire
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 35.35 ▼3.29 |
Dashboard /wp-admin | 3.33 ▲0.02 | 44.71 ▼5.33 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.34 ▼1.96 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 82.54 ▼23.24 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.43 ▲0.34 |
Server storage [IO: ▲1.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for WooCommerce Payment Gateway - Inspire
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,896 ▲134 | 13.41 ▼0.75 | 7.49 ▲5.82 | 39.94 ▼1.63 |
Dashboard /wp-admin | 2,198 ▲24 | 5.57 ▲0.04 | 84.26 ▼10.62 | 38.48 ▼3.90 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.03 ▲0.02 | 38.91 ▼1.47 | 37.65 ▲0.81 |
Add New Post /wp-admin/post-new.php | 1,526 ▼10 | 23.11 ▼0.13 | 624.65 ▼15.69 | 55.88 ▼16.51 |
Media Library /wp-admin/upload.php | 1,394 ▼3 | 4.20 ▲0.02 | 98.59 ▼2.85 | 41.12 ▼1.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/woocommerce-payment-gateway/gateway-inspire.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
woocommerce-payment-gateway/gateway-inspire.php 85% from 13 tests
"WooCommerce Payment Gateway - Inspire" version 2.1.25's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("woocommerce-payment-gateway.php" instead of "gateway-inspire.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin1,081 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 292 | 337 | 1,045 |
JavaScript | 2 | 69 | 5 | 36 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 45.50 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 133.00 |
Average method complexity | 5.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 1 | 2.78% |
▷ Public methods | 34 | 94.44% |
▷ Protected methods | 2 | 5.56% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 0.94MB with 0.39MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/mastercard.png | 0.81KB | 0.63KB | ▼ 22.18% |
images/banner-1544x500.png | 685.15KB | 437.22KB | ▼ 36.19% |
images/icon-256x256.png | 34.89KB | 14.89KB | ▼ 57.32% |
images/banner-772x250.png | 218.82KB | 135.37KB | ▼ 38.14% |
images/icon-128x128.png | 14.72KB | 6.73KB | ▼ 54.24% |