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.30MB] [CPU: ▼2.74ms] Passed 4 tests
An overview of server-side resources used by PayPlug for WooCommerce (Official)
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.31 | 34.34 ▼6.14 |
Dashboard /wp-admin | 3.61 ▲0.30 | 46.59 ▼0.81 |
Posts /wp-admin/edit.php | 3.66 ▲0.30 | 48.16 ▲3.50 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.30 | 90.76 ▼4.09 |
Media Library /wp-admin/upload.php | 3.53 ▲0.30 | 33.30 ▲0.07 |
Server storage [IO: ▲9.97MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 929 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_woocommerce_payplug_lock |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for PayPlug for WooCommerce (Official)
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲34 | 14.22 ▼0.12 | 1.60 ▼0.16 | 39.91 ▼5.67 |
Dashboard /wp-admin | 2,201 ▲21 | 5.61 ▲0.01 | 87.76 ▼11.11 | 38.28 ▼4.34 |
Posts /wp-admin/edit.php | 2,107 ▲10 | 1.95 ▲0.01 | 40.97 ▲4.05 | 36.05 ▲3.89 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.14 ▼0.10 | 665.80 ▲33.19 | 61.12 ▲9.56 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.19 ▲0.03 | 101.15 ▲6.31 | 42.06 ▼0.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/payplug/assets/images/integrated/index.php
- 77× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Payplug\\PayplugWoocommerce\\Gateway\\PayplugGateway' not found in wp-content/plugins/payplug/src/Controller/ApplePay.php:11
- > PHP Fatal error
Uncaught Error: Class 'Payplug\\Exception\\PayplugException' not found in wp-content/plugins/payplug/vendor/payplug/payplug-php/lib/Payplug/Exception/ConfigurationException.php:7
- > PHP Fatal error
Uncaught Error: Class 'Payplug\\PayplugWoocommerce\\Controller\\PayplugGenericGateway' not found in wp-content/plugins/payplug/src/Gateway/PPRO/Satispay.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/payplug/vendor/payplug/payplug-php/tests/unit_tests/Resource/PaymentAuthorizationTest.php:9
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/payplug/vendor/payplug/payplug-php/tests/unit_tests/Resource/OneySimulationResourceTest.php:10
- > PHP Fatal error
Uncaught Error: Class 'Payplug\\Resource\\APIResource' not found in wp-content/plugins/payplug/vendor/payplug/payplug-php/lib/Payplug/Resource/Refund.php:8
- > PHP Fatal error
Uncaught Error: Class 'Payplug\\Exception\\PayplugException' not found in wp-content/plugins/payplug/vendor/payplug/payplug-php/lib/Payplug/Exception/DependencyException.php:7
- > PHP Fatal error
Uncaught Error: Class 'Payplug\\Exception\\HttpException' not found in wp-content/plugins/payplug/vendor/payplug/payplug-php/lib/Payplug/Exception/UnexpectedAPIResponseException.php:7
- > PHP Fatal error
Uncaught Error: Class 'Payplug\\Resource\\APIResource' not found in wp-content/plugins/payplug/vendor/payplug/payplug-php/lib/Payplug/Resource/OneySimulationResource.php:9
- > PHP Fatal error
Uncaught Error: Class 'Payplug\\Resource\\APIResource' not found in wp-content/plugins/payplug/vendor/payplug/payplug-php/lib/Payplug/Resource/PaymentPaymentFailure.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Tags: There are too many tags (16 tag instead of maximum 10)
- Screenshots: These screenshots lack descriptions #3, #4 in payplug/assets to your readme.txt
payplug/payplug.php Passed 13 tests
"PayPlug for WooCommerce (Official)" version 2.6.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
92 characters long description:
The online payment solution combining simplicity and first-rate support to boost your sales.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected101,035 lines of code in 842 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 699 | 4,299 | 11,328 | 92,982 |
SVG | 106 | 0 | 5 | 3,419 |
PO File | 3 | 876 | 300 | 1,849 |
JSON | 4 | 1 | 0 | 1,141 |
JavaScript | 8 | 70 | 39 | 667 |
CSS | 9 | 19 | 2 | 531 |
make | 1 | 28 | 6 | 143 |
Markdown | 3 | 53 | 0 | 109 |
reStructuredText | 3 | 60 | 70 | 91 |
YAML | 1 | 10 | 0 | 55 |
Python | 1 | 68 | 160 | 30 |
XML | 1 | 0 | 0 | 13 |
INI | 1 | 0 | 0 | 3 |
HTML | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 12.03 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 369.00 |
Average method complexity | 2.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.00 |
Code structure | ||
---|---|---|
Namespaces | 23 | |
Interfaces | 12 | |
Traits | 0 | |
Classes | 135 | |
▷ Abstract classes | 5 | 3.70% |
▷ Concrete classes | 130 | 96.30% |
▷ Final classes | 0 | 0.00% |
Methods | 1,020 | |
▷ Static methods | 212 | 20.78% |
▷ Public methods | 920 | 90.20% |
▷ Protected methods | 75 | 7.35% |
▷ Private methods | 25 | 2.45% |
Functions | 106 | |
▷ Named functions | 5 | 4.72% |
▷ Anonymous functions | 101 | 95.28% |
Constants | 109 | |
▷ Global constants | 8 | 7.34% |
▷ Class constants | 101 | 92.66% |
▷ Public constants | 101 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
37 PNG files occupy 0.76MB with 0.46MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/Oney3x.png | 4.91KB | 4.93KB | 0.00% |
assets/img/logos_schemes_installment_2_default.85b94ced.png | 8.33KB | 3.32KB | ▼ 60.16% |
assets/img/logos_schemes_installment_4_gb.8f408211.png | 8.21KB | 3.33KB | ▼ 59.51% |
assets/images/lg-3xoney-disabled.png | 10.35KB | 0.82KB | ▼ 92.10% |
assets/images/lg-step3-oney.png | 7.42KB | 0.72KB | ▼ 90.27% |