Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼8.76ms] Passed 4 tests
Server-side resources used by GNU Taler Payment Gateway for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 36.45 ▼8.48 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.88 ▼4.18 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.89 ▼3.64 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.53 ▼18.73 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.29 ▲1.46 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for GNU Taler Payment Gateway for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.26 ▼1.30 | 1.78 ▼0.52 | 40.80 ▼1.78 |
Dashboard /wp-admin | 2,206 ▲18 | 4.80 ▼0.10 | 105.07 ▼5.04 | 39.80 ▼6.64 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.06 ▲0.06 | 41.75 ▲0.53 | 37.10 ▲1.83 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 22.95 ▲5.48 | 593.50 ▼98.26 | 48.24 ▼13.04 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.21 ▲0.02 | 100.81 ▼0.24 | 40.30 ▼4.74 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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
The following issues need your attention
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/gnu-taler-payment-for-woocommerce/class-wc-gnutaler-gateway.php on line 47
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/gnu-taler-payment-for-woocommerce/class-wc-gnutaler-gateway.php on line 47
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/gnu-taler-payment-for-woocommerce/class-wc-gnutaler-gateway.php on line 47
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: payment gateway, woocommerce, e-commerce, taler
gnu-taler-payment-for-woocommerce/class-wc-gnutaler-gateway.php 85% from 13 tests
The main file in "GNU Taler Payment Gateway for WooCommerce" v. 0.9.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("gnu-taler-payment-for-woocommerce.php" instead of "class-wc-gnutaler-gateway.php")
- Requires at least: Required version does not match the one declared in readme.txt ("5.1" instead of "2.2")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected760 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 74 | 270 | 760 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 69.00 |
▷ Minimum class complexity | 69.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 4.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 47.62% |
▷ Protected methods | 1 | 4.76% |
▷ Private methods | 10 | 47.62% |
Functions | 2 | |
▷ Named functions | 2 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/taler.png | 86.45KB | 39.86KB | ▼ 53.89% |