Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.86ms] Passed 4 tests
This is a short check of server-side resources used by PayPro Gateways - WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 43.59 ▼2.88 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.81 ▼12.01 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.22 ▼5.60 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 105.03 ▼10.96 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.55 ▼2.32 |
Server storage [IO: ▲0.61MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 51 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for PayPro Gateways - WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.30 ▼0.28 | 2.00 ▼0.19 | 46.13 ▼0.70 |
Dashboard /wp-admin | 2,198 ▲24 | 5.65 ▼0.03 | 91.91 ▼7.24 | 40.92 ▼5.71 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▲0.00 | 40.82 ▲2.86 | 34.82 ▼2.37 |
Add New Post /wp-admin/post-new.php | 1,554 ▲23 | 18.22 ▼4.93 | 610.73 ▼32.23 | 61.72 ▲8.62 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.20 ▼0.05 | 97.75 ▼10.40 | 45.92 ▼0.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% 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
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 18 tag instead of maximum 10
paypro-gateways-woocommerce/paypro-gateways-woocommerce.php Passed 13 tests
The entry point to "PayPro Gateways - WooCommerce" version 1.3.3 is a PHP file that has certain tags in its header comment area
88 characters long description:
With this plugin you easily add all PayPro payment gateways to your WooCommerce webshop.
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
These items require your attention
- Do not include executable or dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/paypro-gateways-woocommerce/vendor/paypro/paypro-php-v1/data/ca-bundle.crt
- ☣ wp-content/plugins/paypro-gateways-woocommerce/includes/paypro/api/ca-bundle.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 30 | 340 | 440 | 1,453 |
PO File | 1 | 46 | 49 | 121 |
JSON | 2 | 0 | 0 | 73 |
Markdown | 1 | 15 | 0 | 27 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 7.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 1 | 4.35% |
▷ Concrete classes | 22 | 95.65% |
▷ Final classes | 0 | 0.00% |
Methods | 123 | |
▷ Static methods | 15 | 12.20% |
▷ Public methods | 111 | 90.24% |
▷ Protected methods | 7 | 5.69% |
▷ Private methods | 5 | 4.07% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ Public constants | 5 | 100.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
9 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/paypro_wc_gateway_mistercash.png | 4.66KB | 1.58KB | ▼ 66.01% |
assets/images/paypro_wc_gateway_mastercard.png | 3.68KB | 2.24KB | ▼ 39.23% |
assets/images/paypro_wc_gateway_idealqr.png | 1.10KB | 1.04KB | ▼ 5.16% |
assets/images/paypro_wc_gateway_banktransfer.png | 2.94KB | 1.82KB | ▼ 38.17% |
assets/images/paypro_wc_gateway_visa.png | 1.28KB | 1.31KB | 0.00% |