Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.81ms] Passed 4 tests
Server-side resources used by Greenpay Payment Gateway
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 35.76 ▼7.76 |
Dashboard /wp-admin | 3.34 ▲0.03 | 47.99 ▼4.23 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.01 ▼0.99 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 90.58 ▼5.42 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.53 ▼1.82 |
Server storage [IO: ▲1.81MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 59 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Greenpay Payment Gateway
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲10 | 14.27 ▼0.44 | 1.54 ▼0.39 | 36.73 ▼6.74 |
Dashboard /wp-admin | 2,202 ▲24 | 5.58 ▼0.14 | 94.49 ▼18.93 | 42.92 ▼3.90 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 2.01 ▲0.07 | 39.94 ▲1.81 | 37.48 ▲5.11 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 23.52 ▲0.43 | 600.48 ▼43.82 | 52.48 ▼6.50 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.29 ▲0.13 | 97.93 ▼0.81 | 44.59 ▼1.72 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
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 no errors were found, this is by no means 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 fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/greenpay-payment-gateway/includes/greenpay-misc.php:14
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/greenpay-payment-gateway/includes/admin/token_migration-settings.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
These attributes need your attention:
- Screenshots: A description for screenshot #4 is missing in greenpay-payment-gateway/assets to your readme.txt
greenpay-payment-gateway/greenpay-payment-gateway.php Passed 13 tests
Analyzing the main PHP file in "Greenpay Payment Gateway" version 3.3.6
48 characters long description:
Take card payments on your store using Greenpay.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin24,385 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 19,374 |
PHP | 18 | 561 | 1,021 | 3,201 |
PO File | 2 | 448 | 570 | 1,126 |
JavaScript | 3 | 70 | 47 | 374 |
Markdown | 1 | 53 | 0 | 124 |
CSS | 3 | 24 | 1 | 108 |
SVG | 7 | 0 | 3 | 63 |
XML | 1 | 4 | 2 | 15 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 34.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 140.00 |
Average method complexity | 4.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 125 | |
▷ Static methods | 11 | 8.80% |
▷ Public methods | 118 | 94.40% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 5.60% |
Functions | 27 | |
▷ Named functions | 27 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 10 | 90.91% |
▷ Class constants | 1 | 9.09% |
▷ Public constants | 1 | 100.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
6 PNG files occupy 0.54MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/screenshot-1.png | 121.92KB | 35.86KB | ▼ 70.59% |
assets/images/tasa-cero.png | 28.56KB | 28.59KB | 0.00% |
assets/images/screenshot-2.png | 101.07KB | 32.43KB | ▼ 67.91% |
assets/images/screenshot-4.png | 103.86KB | 34.03KB | ▼ 67.24% |
assets/images/icon-256x256.png | 5.64KB | 4.05KB | ▼ 28.19% |