Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- Install procedure had errors
- > Error in wp-content/plugins/rapyd-payments/includes/abstracts/abstract-wc-rapyd-payment-gateway.php+13
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/rapyd-payments/includes/abstracts/abstract-wc-rapyd-payment-gateway.php:13
Stack trace:
#0 wp-content/plugins/rapyd-payments/rapyd-payments-plugin-for-woocommerce.php(47): require_once()
#1 wp-includes/class-wp-hook.php(310): rapyd_activate()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/includes/plugin.php(693): do_action()
Server metrics [RAM: ▼0.02MB] [CPU: ▼2.37ms] Passed 4 tests
A check of server-side resources used by Rapyd Payment Extension for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.00 | 45.34 ▼0.73 |
Dashboard /wp-admin | 3.57 ▼0.07 | 65.20 ▼0.52 |
Posts /wp-admin/edit.php | 3.68 ▲0.00 | 51.07 ▲1.47 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.00 | 84.89 ▼9.69 |
Media Library /wp-admin/upload.php | 3.49 ▲0.00 | 41.57 ▲5.48 |
Server storage [IO: ▲1.70MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 58 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Rapyd Payment Extension for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.35 ▲0.05 | 2.12 ▲0.51 | 44.44 ▲3.39 |
Dashboard /wp-admin | 2,192 ▲12 | 5.58 ▼0.09 | 93.28 ▼2.28 | 40.02 ▼3.00 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.01 ▼0.01 | 33.58 ▼5.58 | 34.70 ▼3.48 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 17.61 ▼0.17 | 695.88 ▼11.73 | 59.26 ▲4.20 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.24 ▼0.03 | 100.01 ▼9.63 | 45.00 ▲1.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files
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 Passed 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
4 plugin tags: bank transfer bank redirect, cash, credit card, ewallet
rapyd-payments/rapyd-payments-plugin-for-woocommerce.php 77% from 13 tests
The main file in "Rapyd Payment Extension for WooCommerce" v. 1.1.8 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:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Requires at least: The required version number did not match the one declared in readme.txt ("5.2" instead of "4.4")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("rapyd-payments.php" instead of "rapyd-payments-plugin-for-woocommerce.php")
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
Good job! No executable or dangerous file extensions detected3,413 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 18 | 738 | 918 | 2,383 |
PHP | 11 | 183 | 54 | 851 |
JavaScript | 1 | 23 | 0 | 179 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 11.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 80.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 1 | 12.50% |
▷ Concrete classes | 7 | 87.50% |
▷ Final classes | 0 | 0.00% |
Methods | 60 | |
▷ Static methods | 2 | 3.33% |
▷ Public methods | 57 | 95.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 5.00% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 32 | |
▷ Global constants | 7 | 21.88% |
▷ Class constants | 25 | 78.12% |
▷ Public constants | 25 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 1.40MB with 0.81MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 148.16KB | 42.02KB | ▼ 71.64% |
assets/icon-128x128.png | 7.90KB | 3.94KB | ▼ 50.15% |
assets/screenshot-3.png | 32.71KB | 12.53KB | ▼ 61.68% |
assets/icon-255x128.png | 12.93KB | 6.76KB | ▼ 47.71% |
assets/screenshot-1.png | 230.69KB | 95.84KB | ▼ 58.45% |