Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.86ms] Passed 4 tests
This is a short check of server-side resources used by PAYable Payment Gateway for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.98 ▼3.17 |
Dashboard /wp-admin | 3.32 ▲0.01 | 49.73 ▼1.65 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.08 ▲0.25 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 79.72 ▼22.86 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.90 ▲4.99 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for PAYable 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 ▲3 | 14.43 ▲0.08 | 1.71 ▼0.10 | 48.23 ▲4.98 |
Dashboard /wp-admin | 2,192 ▲21 | 5.49 ▼0.19 | 97.69 ▲0.38 | 41.03 ▼2.73 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▼0.00 | 33.55 ▼0.88 | 36.83 ▲1.56 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.35 ▲0.08 | 667.29 ▲30.28 | 52.29 ▼10.02 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.22 ▲0.04 | 97.87 ▲2.97 | 40.91 ▼4.59 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/payable-payment-gateway-for-woocommerce/includes/class-wc-gateway-payable.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Activate the “PAYable Payment Gateway for WooCommerce” Plugin available in the WooCommerce Installed Plugins page), #2 (Enable the “PAYable Online” as the Payment Method in WooCommerce Payment Methods page), #3 (Modify the configurations for the PAYable Payment Gateway for WooCommerce plugin and enter the details provided by PAYable), #4 (PAYable Online will be displayed as a Payment Method to the Customer in the Checkout Page)
payable-payment-gateway-for-woocommerce/payable.php 85% from 13 tests
The main PHP file in "PAYable Payment Gateway for WooCommerce" ver. 1.1.4 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("payable-payment-gateway-for-woocommerce.php" instead of "payable.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin4,344 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 0 | 10 | 2,332 |
PHP | 4 | 335 | 208 | 1,178 |
JavaScript | 3 | 10 | 5 | 834 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 58.00 |
Average method complexity | 3.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 4 | 18.18% |
▷ Public methods | 21 | 95.45% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.55% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
2 PNG files occupy 0.05MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/payment-method.png | 24.14KB | 3.14KB | ▼ 87.00% |
includes/logo.png | 26.63KB | 4.82KB | ▼ 81.91% |