Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.28MB] [CPU: ▼0.02ms] Passed 4 tests
Server-side resources used by Gestpay for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.28 | 38.71 ▲1.49 |
Dashboard /wp-admin | 3.58 ▲0.27 | 47.74 ▼1.31 |
Posts /wp-admin/edit.php | 3.69 ▲0.34 | 50.82 ▲4.40 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 85.24 ▼4.66 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 39.19 ▲7.01 |
Server storage [IO: ▲0.50MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 51 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Gestpay for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲61 | 14.21 ▼0.06 | 1.73 ▼0.06 | 35.98 ▼4.08 |
Dashboard /wp-admin | 2,203 ▲26 | 5.52 ▼0.13 | 84.70 ▼5.18 | 38.86 ▲0.94 |
Posts /wp-admin/edit.php | 2,114 ▲11 | 1.94 ▼0.09 | 35.35 ▼1.95 | 37.91 ▲1.28 |
Add New Post /wp-admin/post-new.php | 1,378 ▼158 | 17.29 ▼1.16 | 531.15 ▼102.34 | 83.68 ▲21.29 |
Media Library /wp-admin/upload.php | 1,411 ▲11 | 4.14 ▼0.04 | 102.39 ▼2.01 | 42.73 ▼2.27 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
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
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 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
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/gestpay-for-woocommerce/inc/gestpay-pro-payment-types.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 14 tag instead of maximum 10
gestpay-for-woocommerce/gestpay-for-woocommerce.php 85% from 13 tests
"Gestpay for WooCommerce" version 20221130...'s primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("4.0.1" instead of "3.0")
- Version: The version number should be digits and periods (ex. "1.0.3" instead of "20221130...")
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
No dangerous file extensions were detected4,525 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 1,234 | 1,298 | 4,103 |
CSS | 2 | 30 | 10 | 207 |
PO File | 1 | 67 | 0 | 148 |
JavaScript | 2 | 12 | 28 | 37 |
SVG | 1 | 5 | 0 | 30 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 29.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 130.00 |
Average method complexity | 4.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 155 | |
▷ Static methods | 29 | 18.71% |
▷ Public methods | 135 | 87.10% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 20 | 12.90% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 13 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/delete.png | 0.20KB | 0.22KB | 0.00% |
images/unchecked.png | 3.13KB | 0.83KB | ▼ 73.67% |
images/MyBank_logo_positive.png | 6.46KB | 3.91KB | ▼ 39.46% |
images/gestpay-logo.png | 2.02KB | 1.34KB | ▼ 33.72% |
images/checked.png | 3.51KB | 1.07KB | ▼ 69.62% |